Bug 1470678 [wpt PR 11640] - Add a test for text-decoration in tables quirk, a=testonly
[gecko.git] / docshell / test / test_bug598895.html
blob5cc74e42c0a6186d87e64a6e5abe007c2ffd5980
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=598895
5 -->
6 <head>
7 <title>Test for Bug 598895</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=598895">Mozilla Bug 598895</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 598895 **/
22 SimpleTest.waitForExplicitFinish();
24 addLoadEvent(function() {
25 var win1 = window.open();
26 win1.document.body.textContent = "Should show";
28 var windowsLoaded = 0;
30 window.onmessage = function (ev) {
31 is(ev.data, "loaded", "Message should be 'loaded'");
32 if (++windowsLoaded == 2) {
33 var one = snapshotWindow(win1);
34 var two = snapshotWindow(win2);
35 var three = snapshotWindow(win3);
36 win1.close();
37 win2.close();
38 win3.close();
39 ok(compareSnapshots(one, two, true)[0], "Popups should look identical");
40 ok(compareSnapshots(one, three, false)[0], "Popups should not look identical");
42 SimpleTest.finish();
46 var win2 = window.open("file_bug598895_1.html");
47 var win3 = window.open("file_bug598895_2.html");
48 });
49 </script>
50 </pre>
51 </body>
52 </html>