OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <script src="../../../resources/js-test.js"></script> | |
keishi
2014/05/02 07:52:03
I think form tests generally don't indent after <h
deepak.sa
2014/05/02 08:28:27
Done.
| |
4 <body> | |
5 <label id="labelWithInput" for="inputText">Some Text associated with input</ label> | |
keishi
2014/05/02 07:52:03
Ditto.
deepak.sa
2014/05/02 08:28:27
Done.
| |
6 <input id="inputText" type='text'> | |
7 </body> | |
8 | |
9 <script> | |
10 description("Test the selection of label associated with input."); | |
11 if (window.testRunner) { | |
12 testRunner.dumpAsText(); | |
13 var labelElement = document.getElementById("labelWithInput"); | |
14 | |
15 testWithDoubleClick(labelElement); | |
16 shouldBeEqualToString('window.getSelection().toString()', "Some"); | |
keishi
2014/05/02 07:52:03
We shouldn't mix single and double quotes. We try
deepak.sa
2014/05/02 08:28:27
Done.
| |
17 | |
18 labelElement.style.display = "none"; | |
19 } | |
keishi
2014/05/02 07:52:03
Indentation is messed up.
deepak.sa
2014/05/02 08:28:27
Done.
| |
20 | |
21 function testWithDoubleClick(element) | |
22 { | |
keishi
2014/05/02 07:52:03
I think form tests generally don't break before cu
deepak.sa
2014/05/02 08:28:27
Sorry, but i am not able to follow the above comme
keishi
2014/05/02 08:48:34
I was talking about the line break between line 21
| |
23 eventSender.mouseMoveTo(element.offsetLeft, element.offsetTop); | |
24 eventSender.mouseDown(); | |
25 eventSender.mouseUp(); | |
26 eventSender.mouseDown(); | |
27 eventSender.mouseUp(); | |
28 } | |
29 </script> | |
30 </html> | |
OLD | NEW |