layout/style/test/test_bug517224.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.)

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=517224
     5 -->
     6 <head>
     7   <title>Test for Bug 517224</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   <script type="application/ecmascript" src="bug517224.sjs?reset"></script>
    11   <style type="text/css">
    13   p#display { background: url(bug517224.sjs?image); }
    14   p#display { background-image: none; }
    16   </style>
    17 </head>
    18 <body>
    19 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=517224">Mozilla Bug 517224</a>
    20 <p id="display">Element with overridden background</p>
    21 <pre id="test">
    22 <script type="application/javascript">
    24 /** Test for Bug 517224 **/
    26 // Test that we don't load background images for style rules that are
    27 // always overridden.
    29 // Make sure the style has been computed
    30 var bi =
    31   getComputedStyle(document.getElementById('display'), "").backgroundImage;
    32 SimpleTest.waitForExplicitFinish();
    33 window.onload = run;
    35 function run()
    36 {
    37   var script = document.createElement("script");
    38   script.setAttribute("src", "bug517224.sjs?result");
    39   document.body.appendChild(script);
    40 }
    42 </script>
    43 </pre>
    44 </body>
    45 </html>

mercurial