mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
f6b64e2bc1
commit
7c56d72997
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user