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

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

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

Powered by Google App Engine
This is Rietveld 408576698