mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 469331 - [SeaMonkey] test_bug458898.html fails, make the width test function always ok on Windows, r=dbaron
This commit is contained in:
parent
a855c51d33
commit
5f8c1f03e4
@ -24,12 +24,13 @@ var win = window.openDialog("data:text/html,<div style='height:200px; width:100p
|
||||
|
||||
// doesn't succeed on SeaMonkey currently, see bug 469331
|
||||
// mark it todo there instead
|
||||
var testfunc = (navigator.userAgent.match(/ SeaMonkey\//)) ? todo : ok;
|
||||
var testfunc_h = (navigator.userAgent.match(/ SeaMonkey\//)) ? todo : ok;
|
||||
var testfunc_w = (navigator.userAgent.match(/Windows/)) ? ok : testfunc_h;
|
||||
|
||||
function loaded() {
|
||||
win.sizeToContent();
|
||||
testfunc(win.innerWidth >= 100, "innerWidth");
|
||||
testfunc(win.innerHeight >= 200, "innerHeight");
|
||||
testfunc_w(win.innerWidth >= 100, "innerWidth");
|
||||
testfunc_h(win.innerHeight >= 200, "innerHeight");
|
||||
win.close();
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user