[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:
Xavier Morel 2012-08-01 14:59:10 +02:00
parent 9df99e1ca5
commit acaec8b582
1 changed files with 3 additions and 1 deletions

View File

@ -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");