Thu, 15 Jan 2015 21:03:48 +0100
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=505515 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 505515</title> |
michael@0 | 8 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 10 | <style type="text/css"> |
michael@0 | 11 | |
michael@0 | 12 | #display { color: black; background: white; } |
michael@0 | 13 | #display:first-line { color: blue; } |
michael@0 | 14 | |
michael@0 | 15 | </style> |
michael@0 | 16 | </head> |
michael@0 | 17 | <body onload="run()"> |
michael@0 | 18 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=505515">Mozilla Bug 505515</a> |
michael@0 | 19 | <p id="display" style="width: 30em">This <span id="sp">is</span> some text in which the first line is in a different color.</p> |
michael@0 | 20 | <pre id="test"> |
michael@0 | 21 | <script type="application/javascript"> |
michael@0 | 22 | |
michael@0 | 23 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 24 | |
michael@0 | 25 | /** Test for Bug 505515 **/ |
michael@0 | 26 | |
michael@0 | 27 | function run() { |
michael@0 | 28 | var p = document.getElementById("display"); |
michael@0 | 29 | var span = document.getElementById("sp"); |
michael@0 | 30 | |
michael@0 | 31 | isnot(span.offsetWidth, 0, |
michael@0 | 32 | "span should have width (and we flushed layout)"); |
michael@0 | 33 | is(getComputedStyle(span, "").color, "rgb(0, 0, 0)", |
michael@0 | 34 | "span should be black"); |
michael@0 | 35 | is(getComputedStyle(p, "").color, "rgb(0, 0, 0)", |
michael@0 | 36 | "p should be black too"); |
michael@0 | 37 | |
michael@0 | 38 | SimpleTest.finish(); |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | </script> |
michael@0 | 42 | </pre> |
michael@0 | 43 | </body> |
michael@0 | 44 | </html> |