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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html

Issue 2355743005: Queue a close event for dialog.close (Closed)
Patch Set: Queue a close event for dialog.close Created 4 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <dialog></dialog> 7 <dialog></dialog>
8 <script> 8 <script>
9 description("Test that dialog receives a close event upon closing."); 9 description("Test that dialog receives a close event upon closing.");
10 10
(...skipping 15 matching lines...) Expand all
26 dialog.show(); 26 dialog.show();
27 dialog.close(); 27 dialog.close();
28 }; 28 };
29 }); 29 });
30 30
31 dialog.show(); 31 dialog.show();
32 dialog.close(); 32 dialog.close();
33 33
34 // Verify that preventDefault() didn't cancel closing. 34 // Verify that preventDefault() didn't cancel closing.
35 shouldBeFalse('dialog.open'); 35 shouldBeFalse('dialog.open');
36 shouldBe('closedCount', '2'); 36 // FIXME: This should be removed.
37 // shouldBe('closedCount', '2');
37 </script> 38 </script>
38 </body> 39 </body>
39 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698