mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ fixed broken unit test
This commit is contained in:
parent
b2cdae5bb4
commit
735726ec57
@ -67,17 +67,19 @@ function test() {
|
|||||||
width: box.width,
|
width: box.width,
|
||||||
height: box.height
|
height: box.height
|
||||||
})
|
})
|
||||||
|
.html('<div class="thumb" /><div class="tab-title" />')
|
||||||
.appendTo('body');
|
.appendTo('body');
|
||||||
|
|
||||||
is($div.width(), box.width, 'widths match');
|
is($div.width(), box.width, 'widths match');
|
||||||
is($div.height(), box.height, 'heights match');
|
is($div.height(), box.height, 'heights match');
|
||||||
|
|
||||||
var tabItem = new TabItem($div.get(0), new TabStub());
|
var tabItem = new TabItem($div.get(0), new TabStub());
|
||||||
box = tabItem.getBounds();
|
box = new Rect(20, 20, 200, 200);
|
||||||
tabItem.setBounds(box);
|
tabItem.setBounds(box);
|
||||||
ok(box.equals(tabItem.getBounds(), 'set/get match'));
|
ok(box.equals(tabItem.getBounds()), 'set/get match');
|
||||||
tabItem.reloadBounds();
|
tabItem.reloadBounds();
|
||||||
ok(box.equals(tabItem.getBounds(), 'reload match'));
|
var box2 = tabItem.getBounds();
|
||||||
|
ok(box.equals(box2), 'reload match');
|
||||||
|
|
||||||
// ___ done
|
// ___ done
|
||||||
Utils.log('unit tests done', testsRun, (testsFailed ? testsFailed + ' tests failed!!' : ''));
|
Utils.log('unit tests done', testsRun, (testsFailed ? testsFailed + ' tests failed!!' : ''));
|
||||||
|
Loading…
Reference in New Issue
Block a user