зеркало из https://github.com/mozilla/pjs.git
bug 469331 - [SeaMonkey] test_bug458898.html fails, make the width test function always ok on Windows, r=dbaron
This commit is contained in:
Родитель
1441d77293
Коммит
0ddf8e1d6f
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче