content/base/test/test_bug809003.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=809003
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 809003</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11   <style>
    12      #testdiv:before {
    13        content: url('data:image/gif,GIF89a%01%00%01%00%80%01%00%FF%00%00%FF%FF%FF!%F9%04%01%00%00%01%00%2C%00%00%00%00%01%00%01%00%00%02%02D%01%00%3B');
    14      }
    15      #testdiv:after {
    16        content: url('non_existing_image.gif');
    17      }
    18     </style>
    19 </head>
    20 <body>
    21 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=809003">Mozilla Bug 809003</a>
    22 <p id="display"></p>
    23 <div id="content" style="display: none">
    25 </div>
    26 <pre id="test">
    27 <script type="application/javascript">
    29 /** Test for Bug 809003 **/
    31 window.didGetLoad = false;
    32 window.didGetError = false;
    34 SimpleTest.waitForExplicitFinish();
    36 setTimeout(function() {
    37   is(window.didGetLoad, false, "Shouldn't have got load event!");
    38   is(window.didGetError, false, "Shouldn't have got error event!");
    39   SimpleTest.finish();
    40 }, 1000);
    42 </script>
    43 </pre>
    44 <div id="testdiv" onload="window.didGetLoad = true;" onerror="window.didGetError = true;"></div>
    45 </body>
    46 </html>

mercurial