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.)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=699592
5 -->
6 <head>
7 <title>Test for nsIDOMUtils::isInheritedProperty</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <pre id="test">
13 <script type="application/javascript">
15 function do_test() {
16 var utils = SpecialPowers.Cc["@mozilla.org/inspector/dom-utils;1"]
17 .getService(SpecialPowers.Ci.inIDOMUtils);
19 is(utils.isInheritedProperty("font-size"), true, "font-size is inherited.");
21 is(utils.isInheritedProperty("min-width"), false, "min-width is not inherited.");
23 is(utils.isInheritedProperty("font"), true, "shorthand font property is inherited.");
25 is(utils.isInheritedProperty("border"), false, "shorthand border property not inherited.");
26 is(utils.isInheritedProperty("garbage"), false, "Unknown property isn't inherited.");
28 SimpleTest.finish();
29 }
31 SimpleTest.waitForExplicitFinish();
32 addLoadEvent(do_test);
35 </script>
36 </pre>
37 </body>
38 </html>