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

Side by Side Diff: LayoutTests/fast/dom/Window/open-window-min-size.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script> 4 <script>
5 function validate(msg) { 5 function validate(msg) {
6 shouldBeGreaterThanOrEqual(msg["width"].toString(), "100"); 6 shouldBeGreaterThanOrEqual(msg["width"].toString(), "100");
7 shouldBeGreaterThanOrEqual(msg["height"].toString(), "100"); 7 shouldBeGreaterThanOrEqual(msg["height"].toString(), "100");
8 } 8 }
9 9
10 function test() { 10 function test() {
11 var data = window.showModalDialog("resources/report-size-and-close.html", "" , "dialogWidth:10; dialogHeight:10"); 11 var data = window.showModalDialog("resources/report-size-and-close.html", "" , "dialogWidth:10; dialogHeight:10");
12 validate(data); 12 validate(data);
13 13
14 window.addEventListener('message', function(e) { 14 window.addEventListener('message', function(e) {
15 validate(e.data); 15 validate(e.data);
16 e.source.close(); 16 e.source.close();
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 }, false); 18 }, false);
19 window.open("resources/report-size-and-close.html", "non-empty-argument", "w idth=10, height=10"); 19 window.open("resources/report-size-and-close.html", "non-empty-argument", "w idth=10, height=10");
20 } 20 }
21 21
22 if (window.testRunner) { 22 if (window.testRunner) {
23 testRunner.dumpAsText(); 23 testRunner.dumpAsText();
24 testRunner.waitUntilDone(); 24 testRunner.waitUntilDone();
25 testRunner.setCanOpenWindows(); 25 testRunner.setCanOpenWindows();
26 testRunner.setCloseRemainingWindowsWhenComplete(true); 26 testRunner.setCloseRemainingWindowsWhenComplete(true);
27 } 27 }
28 28
29 </script> 29 </script>
30 <script src="../../js/resources/js-test-post.js"></script>
31 </head> 30 </head>
32 <body onload="test()"> 31 <body onload="test()">
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/invalid-protocol.html ('k') | LayoutTests/fast/dom/Window/replaceable.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698