bug 469331 - [SeaMonkey] test_bug458898.html fails, make the width test function always ok on Windows, r=dbaron

This commit is contained in:
Robert Kaiser 2008-12-23 16:03:25 +01:00
parent a855c51d33
commit 5f8c1f03e4

View File

@ -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();
}