layout/style/test/test_bug635286.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=635286
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <title>Test for Bug 635286</title>
michael@0 8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
michael@0 9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
michael@0 11 <style type="text/css">
michael@0 12 div { background: transparent; }
michael@0 13 :-moz-any(#case1.before) { background: gray; }
michael@0 14 #case2:not(.after) { background: gray; }
michael@0 15 :-moz-any(#case3:not(.after)) { background: gray; }
michael@0 16 #case4:not(:-moz-any(.after)) { background: gray; }
michael@0 17 </style>
michael@0 18 </head>
michael@0 19 <body>
michael@0 20 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=635286">Mozilla Bug 635286</a>
michael@0 21 <div id="case1" class="before">case1, :-moz-any()</div>
michael@0 22 <div id="case2" class="before">case2, :not()</div>
michael@0 23 <div id="case3" class="before">case3, :not() in :-moz-any()</div>
michael@0 24 <div id="case4" class="before">case4, :-moz-any() in :not()</div>
michael@0 25 <pre id="test">
michael@0 26 <script class="testbody" type="text/javascript">
michael@0 27
michael@0 28 /** Test for Bug 635286 **/
michael@0 29
michael@0 30 window.addEventListener("load", function() {
michael@0 31 var cases = Array.slice(document.getElementsByTagName("div"));
michael@0 32 cases.forEach(function(aCase, aIndex) {
michael@0 33 aCase.className = "after";
michael@0 34 });
michael@0 35 window.setTimeout(function() {
michael@0 36 cases.forEach(function(aCase, aIndex) {
michael@0 37 is(window.getComputedStyle(aCase, null)
michael@0 38 .getPropertyValue("background-color"),
michael@0 39 "transparent",
michael@0 40 aCase.textContent);
michael@0 41 });
michael@0 42 SimpleTest.finish();
michael@0 43 }, 1);
michael@0 44 }, false);
michael@0 45
michael@0 46 SimpleTest.waitForExplicitFinish();
michael@0 47
michael@0 48 </script>
michael@0 49 </pre>
michael@0 50 </body>
michael@0 51 </html>

mercurial