blob: 99161372b70cd43db34a2878a43b02aa1dab2a1e [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<html>
2<script>
3function runTest() {
4 var o = { };
5 showModalDialog("data:text/html,<scr" + "ipt>dialogArguments['result'] = 'PASS'; window.close() </scr" + "ipt>", o);
6
7 if (o.result == 'PASS')
8 document.getElementById('result').innerHTML = 'SUCCESS';
9}
10
11</script>
12<body>
13<div>
14This tests that modal dialog arguments get passed around correctly. Click the button below to test. The text "SUCCESS" will be shown below if the test was successful.
15</div>
16<button onclick="runTest()">Click Me!</button>
17<div id="result">
18</div>
19</html>