Bug 1089417 patch 9 - Add mochitest that exercises case of clearing rule cascades twice. r=heycam
authorL. David Baron <dbaron@dbaron.org>
Mon, 19 Jan 2015 00:49:56 -0800
changeset 224466 f86a9dfe3be5ef62d5a716451b8ef8e4b4c15785
parent 224465 0d0cdc390be2927fdd2981329efb9ccdab4fc15b
child 224467 1e26b3a0731cdd3ed6360c135d5b068dfa2db189
push id54241
push userdbaron@mozilla.com
push dateMon, 19 Jan 2015 08:50:12 +0000
treeherdermozilla-inbound@1e26b3a0731c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1089417
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1089417 patch 9 - Add mochitest that exercises case of clearing rule cascades twice. r=heycam I've tested that this test fails with the current state of the tree (i.e., without patch 10).
layout/style/test/test_bug1089417.html
--- a/layout/style/test/test_bug1089417.html
+++ b/layout/style/test/test_bug1089417.html
@@ -19,16 +19,23 @@ https://bugzilla.mozilla.org/show_bug.cg
     var fwin = f.contentWindow;
     var fdoc = f.contentDocument;
 
     f.height = "400";
     fdoc.getElementById("s").disabled = false;
     is(fwin.getComputedStyle(fdoc.documentElement).backgroundColor,
        "rgb(0, 128, 0)",
        "media query change should have restyled");
+
+    f.height = "200";
+    fdoc.getElementById("s").disabled = true;
+    fdoc.getElementById("s").disabled = false;
+    todo_is(fwin.getComputedStyle(fdoc.documentElement).backgroundColor,
+       "rgb(255, 0, 0)",
+       "media query change should have restyled");
     SimpleTest.finish();
   }
 
   </script>
 </head>
 <body onload="run()">
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1089417">Mozilla Bug 1089417</a>
 <div id="display">