Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / label-selection.html
blob8c4862a65d6316d1be85372c2223c54054e0d1fb
1 <!DOCTYPE html>
2 <html>
3 <script src="../../../resources/js-test.js"></script>
5 <body>
6 <label id="labelWithInput" for="inputText">Some, Text associated with input</label>
7 <input id="inputText" type="text">
8 </body>
10 <script>
11 description('Test the selection of label associated with input.');
13 var labelElement = document.getElementById('labelWithInput');
14 testWithDoubleClick(labelElement);
16 shouldBeEqualToString('window.getSelection().toString()', 'Some');
18 labelElement.style.display = 'none';
20 function testWithDoubleClick(element)
22 eventSender.mouseMoveTo(element.offsetLeft, element.offsetTop);
23 eventSender.mouseDown();
24 eventSender.mouseUp();
25 eventSender.mouseDown();
26 eventSender.mouseUp();
28 </script>
29 </html>