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

Side by Side Diff: LayoutTests/fast/dom/Window/alert-undefined.html

Issue 142263002: Make Window.alert/confirm/prompt default values the empty string (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: sync test expectation Created 6 years, 11 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 | « no previous file | LayoutTests/fast/dom/Window/alert-undefined-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function runTests() 5 function runTests()
6 { 6 {
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 9
10 alert(undefined); 10 alert(undefined);
11 alert(null); 11 alert(null);
12 confirm(undefined); 12 confirm(undefined);
13 confirm(null); 13 confirm(null);
14 prompt(undefined); 14 prompt(undefined);
15 prompt(null); 15 prompt(null);
16 16
17 alert(); 17 alert();
18 confirm(); 18 confirm();
19 prompt(); 19 prompt();
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 <body onload="runTests()"> 23 <body onload="runTests()">
24 <p>The alerts that show up (or if this is running under DRT, that is dumped) should contain text; none should be empty.
25 This isn't entirely consistent with other browsers in every case, but since there's no real use case for this,
26 it's best to be explicit rather than subtle and empty.</p>
27 </body> 24 </body>
28 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/alert-undefined-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698