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