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