1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug590812.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>Test for XML pretty printing, bug 590812</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <script type="text/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script> 1.10 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.11 +</head> 1.12 +<body onload="runTest()"> 1.13 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590812">Mozilla Bug 590812</a> 1.14 +<p id="display"></p> 1.15 +<iframe src="http://noxul.example.com/tests/content/base/test/file_bug590812.xml"></iframe> 1.16 +<iframe src="file_bug590812.xml"></iframe> 1.17 +<iframe src="file_bug590812-ref.xhtml"></iframe> 1.18 +<pre id="test"> 1.19 +<script class="testbody" type="application/javascript;version=1.8"> 1.20 + 1.21 +SimpleTest.waitForExplicitFinish(); 1.22 + 1.23 +function runTest() { 1.24 + sNoXUL = snapshotWindow(window.frames[0], false); 1.25 + sWithXUL = snapshotWindow(window.frames[1], false); 1.26 + sRef = snapshotWindow(window.frames[2], false); 1.27 + let res; 1.28 + ok(compareSnapshots(sNoXUL, sRef, true)[0], 1.29 + "noxul domain same as ref"); 1.30 + ok(compareSnapshots(sWithXUL, sRef, true)[0], 1.31 + "xul supporting domain same as ref"); 1.32 + 1.33 + SimpleTest.finish(); 1.34 +} 1.35 + 1.36 +</script> 1.37 +</pre> 1.38 +</body> 1.39 +</html>