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

This commit is contained in:
Jonathan Kew 2012-10-16 20:41:20 +01:00
parent f6b64e2bc1
commit 7c56d72997

View File

@ -29,8 +29,10 @@ SimpleTest.waitForFocus(function() {
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;