Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: ManualTests/modal-dialog-arguments.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ManualTests/js-timers-beneath-modal-dialog.html ('k') | ManualTests/modal-dialog-blur.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <script>
3 function runTest() {
4 var o = { };
5 showModalDialog("data:text/html,<scr" + "ipt>dialogArguments['result'] = 'PA SS'; 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>
14 This tests that modal dialog arguments get passed around correctly. Click the bu tton below to test. The text "SUCCESS" will be shown below if the test was succe ssful.
15 </div>
16 <button onclick="runTest()">Click Me!</button>
17 <div id="result">
18 </div>
19 </html>
OLDNEW
« no previous file with comments | « ManualTests/js-timers-beneath-modal-dialog.html ('k') | ManualTests/modal-dialog-blur.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698