From 735726ec57f092284d8f47308066a260f95efff3 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 15 Jun 2010 17:14:41 -0700 Subject: [PATCH] + fixed broken unit test --- browser/base/content/tabcandy/app/test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/browser/base/content/tabcandy/app/test.js b/browser/base/content/tabcandy/app/test.js index 00bd83b2615..7e38a1ac5b1 100644 --- a/browser/base/content/tabcandy/app/test.js +++ b/browser/base/content/tabcandy/app/test.js @@ -67,17 +67,19 @@ function test() { width: box.width, height: box.height }) + .html('
') .appendTo('body'); is($div.width(), box.width, 'widths match'); is($div.height(), box.height, 'heights match'); var tabItem = new TabItem($div.get(0), new TabStub()); - box = tabItem.getBounds(); + box = new Rect(20, 20, 200, 200); tabItem.setBounds(box); - ok(box.equals(tabItem.getBounds(), 'set/get match')); + ok(box.equals(tabItem.getBounds()), 'set/get match'); tabItem.reloadBounds(); - ok(box.equals(tabItem.getBounds(), 'reload match')); + var box2 = tabItem.getBounds(); + ok(box.equals(box2), 'reload match'); // ___ done Utils.log('unit tests done', testsRun, (testsFailed ? testsFailed + ' tests failed!!' : ''));