content/html/document/test/test_bug391777.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:6712c3c5a2d4
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=391777
5 -->
6 <head>
7 <title>Test for Bug 391777</title>
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=391777">Mozilla Bug 391777</a>
13 <p id="display"></p>
14 <script class="testbody" type="text/javascript">
15
16 /** Test for Bug 391777 **/
17 var arg = {};
18 arg.testVal = "foo";
19 var result = window.showModalDialog("javascript:window.returnValue = window.dialogArguments.testVal; window.close(); 'This window should close on its own.';", arg);
20 ok(true, "We should get here without user interaction");
21 is(result, "foo", "Unexpected result from showModalDialog");
22
23 </script>
24 </body>
25 </html>

mercurial