content/base/test/test_bug590870.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 -->
     5 <head>
     6   <title>Test for creating XUL elements, bug 590870</title>
     7   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     8   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     9 </head>
    10 <body onload="gen.next()">
    11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590870">Mozilla Bug 590870</a>
    12 <p id="display"></p>
    13 <iframe id=iframe></iframe>
    14 <pre id="test">
    15 <script class="testbody" type="application/javascript;version=1.8">
    17 SimpleTest.waitForExplicitFinish();
    18 window.addEventListener("message", function(e) { gen.send(e.data) }, false);
    20 var gen = runTest();
    22 function runTest() {
    23   var iframe = $('iframe');
    24   iframe.src = "http://noxul.example.com/tests/content/base/test/file_bug590870.html";
    25   is((yield), true, "shouldn't be able to create XUL elements");
    27   iframe.src = "file_bug590870.html";
    28   is((yield), false, "should be able to create XUL elements");
    30   SimpleTest.finish();
    31   yield undefined;
    32 }
    34 </script>
    35 </pre>
    36 </body>
    37 </html>

mercurial