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.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 02 Feb 2011 06:31:48 +0100
changeset 61771 1c2d53a2dcfb5c347564c51fc021fb656f1f95f8
parent 61770 a55b45fb3d7c3753c4e240ccd2f239795abec46d
child 61772 9dad67994e828eafb3813a4443d6dce3d0b57bec
child 61786 fd83b4d3892580aa06852dc086f377f427e9614b
push id18481
push usersgautherie.bz@free.fr
push dateWed, 02 Feb 2011 05:32:19 +0000
treeherdermozilla-central@1c2d53a2dcfb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs471959, 458898, 469331
milestone2.0b11pre
first release with
nightly linux32
1c2d53a2dcfb / 4.0b11pre / 20110202030356 / files
nightly linux64
1c2d53a2dcfb / 4.0b11pre / 20110202030356 / files
nightly mac
1c2d53a2dcfb / 4.0b11pre / 20110202030356 / files
nightly win32
1c2d53a2dcfb / 4.0b11pre / 20110202030356 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
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).
layout/base/tests/test_bug458898.html
--- a/layout/base/tests/test_bug458898.html
+++ b/layout/base/tests/test_bug458898.html
@@ -18,26 +18,21 @@ https://bugzilla.mozilla.org/show_bug.cg
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 SimpleTest.waitForExplicitFinish();
 // This should be rewritten as a chrome test
 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();
 }
 
 win.addEventListener("load", loaded, false);
 
 </script>
 </pre>