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

Side by Side Diff: LayoutTests/fast/dom/HTMLDialogElement/dialog-show-modal.html

Issue 58533003: Move fast/js/resources files to resources. (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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <dialog id="mydialog">It's my dialog.</dialog> 7 <dialog id="mydialog">It's my dialog.</dialog>
8 <script> 8 <script>
9 description("Tests that showModal() performs the steps specified in the HTML spe c. bug 97425"); 9 description("Tests that showModal() performs the steps specified in the HTML spe c. bug 97425");
10 10
11 dialog = document.getElementById('mydialog'); 11 dialog = document.getElementById('mydialog');
12 computedStyle = window.getComputedStyle(dialog, null); 12 computedStyle = window.getComputedStyle(dialog, null);
13 shouldBeEqualToString("computedStyle.getPropertyValue('display')", "none"); 13 shouldBeEqualToString("computedStyle.getPropertyValue('display')", "none");
14 14
(...skipping 13 matching lines...) Expand all
28 28
29 doc = document.implementation.createHTMLDocument(); 29 doc = document.implementation.createHTMLDocument();
30 doc.body.appendChild(dialog); 30 doc.body.appendChild(dialog);
31 shouldBeFalse("dialog.open"); 31 shouldBeFalse("dialog.open");
32 dialog.showModal(); 32 dialog.showModal();
33 debug('Although the document is not attached to any pages, showModal() should ex ecute as normal.'); 33 debug('Although the document is not attached to any pages, showModal() should ex ecute as normal.');
34 shouldBeTrue("dialog.open"); 34 shouldBeTrue("dialog.open");
35 </script> 35 </script>
36 </body> 36 </body>
37 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698