dom/tests/mochitest/orientation/bug507902-frame.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Frame for watchPosition </title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6 </head>
     7 <body>
     8 <script type="text/javascript">
    10 var ok = window.parent.ok;
    11 var SimpleTest = window.parent.SimpleTest;
    13 function boom()
    14 {
    15   window.addEventListener("unload", function(){}, false);
    16   window.addEventListener("devicemotion", function(){}, false);
    17   location = "data:text/html,2";
    19   ok(1, "leak will be at the end of mochitests. so pass.");
    20   SimpleTest.finish();
    21 }
    23 SimpleTest.waitForExplicitFinish();
    25 window.addEventListener("load", function() { setTimeout(boom, 0); }, false);
    27 </script>
    28 </body>
    29 </html>

mercurial