2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / WebCore / manual-tests / modal-dialog-arguments.html
blob99161372b70cd43db34a2878a43b02aa1dab2a1e
1 <html>
2 <script>
3 function runTest() {
4 var o = { };
5 showModalDialog("data:text/html,<scr" + "ipt>dialogArguments['result'] = 'PASS'; window.close() </scr" + "ipt>", o);
7 if (o.result == 'PASS')
8 document.getElementById('result').innerHTML = 'SUCCESS';
11 </script>
12 <body>
13 <div>
14 This 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>