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

Side by Side Diff: LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unselectable.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 Here is a text node you can't select. 7 Here is a text node you can't select.
8 <dialog>I'm selectable.</dialog> 8 <dialog>I'm selectable.</dialog>
9 <script> 9 <script>
10 description('Test that inert nodes cannot be selected. The test passes if the on ly text you can select is inside the dialog.'); 10 description('Test that inert nodes cannot be selected. The test passes if the on ly text you can select is inside the dialog.');
11 11
12 dialog = document.querySelector('dialog'); 12 dialog = document.querySelector('dialog');
13 dialog.showModal(); 13 dialog.showModal();
14 document.execCommand('SelectAll'); 14 document.execCommand('SelectAll');
15 shouldBeEqualToString('window.getSelection().toString()', "I'm selectable."); 15 shouldBeEqualToString('window.getSelection().toString()', "I'm selectable.");
16 </script> 16 </script>
17 </body> 17 </body>
18 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698