Skip to content

Commit

Permalink
Bug 471959 - [SeaMonkey] test_bug458898.html reports incorrect innerW…
Browse files Browse the repository at this point in the history
…idth/innerHeight; (Av1) Revert workaround from bug 469331, now that the underlying m-c bug is fixed.

r=dbaron a=(test only).
  • Loading branch information
Serge Gautherie committed Feb 2, 2011
1 parent 0d9bd9c commit 2eb420d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions layout/base/tests/test_bug458898.html
Expand Up @@ -23,16 +23,11 @@
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();
}
Expand Down

0 comments on commit 2eb420d

Please sign in to comment.