content/base/test/test_bug590812.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Test for XML pretty printing, bug 590812</title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <script type="text/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
     7   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8 </head>
     9 <body onload="runTest()">
    10 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590812">Mozilla Bug 590812</a>
    11 <p id="display"></p>
    12 <iframe src="http://noxul.example.com/tests/content/base/test/file_bug590812.xml"></iframe>
    13 <iframe src="file_bug590812.xml"></iframe>
    14 <iframe src="file_bug590812-ref.xhtml"></iframe>
    15 <pre id="test">
    16 <script class="testbody" type="application/javascript;version=1.8">
    18 SimpleTest.waitForExplicitFinish();
    20 function runTest() {
    21   sNoXUL = snapshotWindow(window.frames[0], false);
    22   sWithXUL = snapshotWindow(window.frames[1], false);
    23   sRef = snapshotWindow(window.frames[2], false);
    24   let res;
    25   ok(compareSnapshots(sNoXUL, sRef, true)[0],
    26      "noxul domain same as ref");
    27   ok(compareSnapshots(sWithXUL, sRef, true)[0],
    28      "xul supporting domain same as ref");
    30   SimpleTest.finish();
    31 }
    33 </script>
    34 </pre>
    35 </body>
    36 </html>

mercurial