Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / text / text-select-invisible.html
blobfd57541a3730809c3a1c521031e0b971ff0b96c9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input id="visible" value="text0">
8 <input id="hidden" value="text1" style="display: none">
9 <script>
10 description("This test confirms that select an hidden input element does not cause focus change.");
11 visible.select();
12 shouldBe('getSelection().anchorNode', 'document.body');
13 shouldBe('getSelection().anchorOffset', '3');
14 hidden.select();
15 shouldBe('getSelection().anchorNode', 'document.body');
16 shouldBe('getSelection().anchorOffset', '3');
17 </script>
18 </body>
19 </html>