Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLDialogElement / inert-node-is-unselectable.html
bloba393da64c540fa2a5aa7a588f9e0493daad22e5d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 Here is a text node you can't select.
8 <dialog>I'm selectable.</dialog>
9 <script>
10 description('Test that inert nodes cannot be selected. The test passes if the only text you can select is inside the dialog.');
12 dialog = document.querySelector('dialog');
13 dialog.showModal();
14 document.execCommand('SelectAll');
15 shouldBeEqualToString('window.getSelection().toString()', "I'm selectable.");
16 </script>
17 </body>
18 </html>