content/base/test/test_bug622246.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=622246
     5 -->
     6 <head>
     7   <title>Test for Bug 622246</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=622246">Mozilla Bug 622246</a>
    14 <p id="display">
    15   <iframe id="testframe"
    16           src="data:text/html,<span onclick='this.parentNode.removeChild(this)'><a href='data:text/plain,PASS'>Click me</a></span>">
    17   </iframe>
    18 </p>
    19 <div id="content" style="display: none">
    21 </div>
    22 <pre id="test">
    23 <script type="application/javascript">
    25 /** Test for Bug 622246 **/
    26 SimpleTest.waitForExplicitFinish();
    28 const PASSURL = "data:text/plain,PASS";
    30 SimpleTest.waitForFocus(function() {
    31   $("testframe").onload = function() {
    32     is(this.contentDocument.documentElement.textContent, "PASS", "Should have loaded link");
    33     SimpleTest.finish();
    34   };
    36   var win = $("testframe").contentWindow;
    37   var a = win.document.getElementsByTagName("a")[0];
    38   synthesizeMouseAtCenter(a, {}, win);
    39 });
    40 </script>
    41 </pre>
    42 </body>
    43 </html>

mercurial