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

Side by Side Diff: ManualTests/showModalDialog-returnValue.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/show-modal-dialog-test.html ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('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 This test makes sure we don't crash when storing the return value from showModal Dialog. Popup blocking needs to be disabled for this test to run.<br>
2 <script>
3 if (showModalDialog("data:text/html,<script>returnValue={value:'PASS'}; close()< /"+"script>").value == "PASS")
4 document.write("<span style='color:green'>Test passed.<br>");
5 else
6 document.write("<span style='color:red'>Test failed due to incorrect result. <br>");
7 value = showModalDialog("data:text/html,<script>close()</"+"script>");
8 if (!value)
9 document.write("<span style='color:green'>Test passed.<br>");
10 else
11 document.write("<span style='color:red'>Test failed due to incorrect result. <br>");
12
13 </script>
OLDNEW
« no previous file with comments | « ManualTests/show-modal-dialog-test.html ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698