bug 794038 pt 1.4 - fix typo in test_window_open_units.html so that it correctly checks both horizontal and vertical dimensions. r=roc
authorJonathan Kew <jkew@mozilla.com>
Tue, 16 Oct 2012 20:41:20 +0100
changeset 110464 4915cfb82b42e72792218d42a9838205588f46df
parent 110463 303f9562beebb06601dff6d9aa9debf7dbae5f25
child 110465 430a6d608f0feacfbf991af8aa470b1db395532c
push id1157
push userphilringnalda@gmail.com
push dateSat, 20 Oct 2012 05:15:32 +0000
treeherderfx-team@0c34dd4742b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs794038
milestone19.0a1
bug 794038 pt 1.4 - fix typo in test_window_open_units.html so that it correctly checks both horizontal and vertical dimensions. r=roc
embedding/test/test_window_open_units.html
--- a/embedding/test/test_window_open_units.html
+++ b/embedding/test/test_window_open_units.html
@@ -24,18 +24,20 @@ SimpleTest.waitForExplicitFinish();
 
 SimpleTest.waitForFocus(function() {
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
   viewer.fullZoom = 2;
 
   var p = window;
   var w = window.open("about:blank", "", "width=200,height=100");
   SimpleTest.waitForFocus(function() {
-    ok(w.innerWidth <= 402 && w.innerWidth >= 398, "width should be around twice what was requested");
-    ok(w.innerHeight <= 202 && w.innerWidth >= 198, "height should be around twice what was requested");
+    ok(w.innerWidth <= 402 && w.innerWidth >= 398,
+       "width (" + w.innerWidth + ") should be around twice what was requested (200)");
+    ok(w.innerHeight <= 202 && w.innerHeight >= 198,
+       "height (" + w.innerHeight + ") should be around twice what was requested (100)");
 
     netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
     viewer.fullZoom = 1;
     w.close();
     SimpleTest.finish();
   }, w, true);
 }, window, false);