[FIX] Widget test: was changed to always have a root element for backwards fuckery reasons
bzr revid: xmo@openerp.com-20120801125910-x6obdnlx2oi5e3kw
This commit is contained in:
parent
9df99e1ca5
commit
acaec8b582
|
@ -86,9 +86,11 @@ $(document).ready(function () {
|
|||
test('no template, default', function () {
|
||||
var w = new (instance.web.Widget.extend({ }));
|
||||
|
||||
ok(!w.$element, "should not initially have a root element");
|
||||
var $original = w.$element;
|
||||
ok($original, "should initially have a root element");
|
||||
w.renderElement();
|
||||
ok(w.$element, "should have generated a root element");
|
||||
ok($original !== w.$element, "should have generated a new root element");
|
||||
strictEqual(w.$element, w.$element, "should provide $element alias");
|
||||
ok(w.$element.is(w.el), "should provide raw DOM alias");
|
||||
|
||||
|
|
Loading…
Reference in New Issue