Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / text / text-select-invisible.html
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>