mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 471959 - [SeaMonkey] test_bug458898.html reports incorrect innerWidth/innerHeight; (Av1) Revert workaround from bug 469331, now that the underlying m-c bug is fixed.
r=dbaron a=(test only).
This commit is contained in:
parent
0d9bd9c404
commit
2eb420d816
@ -23,16 +23,11 @@ SimpleTest.waitForExplicitFinish();
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var win = window.openDialog("data:text/html,<div style='height:200px; width:100px;'>");
|
||||
|
||||
// doesn't succeed on SeaMonkey currently, see bug 469331
|
||||
// mark it todo there instead
|
||||
var testfunc_h = (navigator.userAgent.match(/ SeaMonkey\//)) ? todo : ok;
|
||||
var testfunc_w = (navigator.userAgent.match(/Windows/)) ? ok : testfunc_h;
|
||||
|
||||
function loaded() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
win.sizeToContent();
|
||||
testfunc_w(win.innerWidth >= 100, "innerWidth: " + win.innerWidth + " >= 100 ?");
|
||||
testfunc_h(win.innerHeight >= 200, "innerHeight: " + win.innerHeight + " >= 200 ?");
|
||||
ok(win.innerWidth >= 100, "innerWidth: " + win.innerWidth + " >= 100 ?");
|
||||
ok(win.innerHeight >= 200, "innerHeight: " + win.innerHeight + " >= 200 ?");
|
||||
win.close();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user