layout/generic/test/test_bug290397.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=290397
     5 -->
     6 <head>
     7   <title>Test for Bug 290397</title>
     8   <script src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script src="/tests/SimpleTest/EventUtils.js"></script>
    10   <link rel="stylesheet" href="/tests/SimpleTest/test.css">
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=290397">Mozilla Bug 290397</a>
    14 <p id="display">
    15 <map name=a>
    16   <area coords=0,0,20,20 href=#pass>
    17   <area shape=default href=#fail>
    18 </map>
    19 <img src=file_Dolske.png usemap=#a id=image>
    20 </p>
    21 <div id="content" style="display: none">
    23 </div>
    24 <pre id="test">
    25 <script>
    26 /** Test for Bug 290397 **/
    27 SimpleTest.waitForExplicitFinish();
    28 onhashchange = function() {
    29   is(location.hash, "#pass", "Got the wrong area");
    30   SimpleTest.finish();
    31 };
    32 function runTest() {
    33   var image = document.getElementById("image");
    34   SimpleTest.waitForFocus(function() synthesizeMouse(image, 10, 10, {}));
    35 }
    36 addLoadEvent(runTest);
    37 </script>
    38 </pre>
    39 </body>
    40 </html>

mercurial