OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 | 4 |
5 <input type="button" value="Button" style="padding:10px; -webkit-appearance:none
;" onclick="++clickCount"> | 5 <input type="button" value="Button" style="padding:10px; -webkit-appearance:none
;" onclick="++clickCount"> |
6 <div id=console></div> | 6 <div id=console></div> |
7 | 7 |
8 <script> | 8 <script> |
9 description('Make sure that mouse click on an input button with shadow nodes wor
ks.'); | 9 description('Make sure that mouse click on an input button with shadow nodes wor
ks.'); |
10 var clickCount = 0; | 10 var clickCount = 0; |
(...skipping 24 matching lines...) Expand all Loading... |
35 shouldBe('clickCount', '1'); | 35 shouldBe('clickCount', '1'); |
36 | 36 |
37 debug('Click on the original value text:'); | 37 debug('Click on the original value text:'); |
38 clickCount = 0; | 38 clickCount = 0; |
39 eventSender.mouseMoveTo(shadowNodeRect.right + 10, shadowNodeRect.top + shadowNo
deRect.height / 2); | 39 eventSender.mouseMoveTo(shadowNodeRect.right + 10, shadowNodeRect.top + shadowNo
deRect.height / 2); |
40 eventSender.mouseDown(); | 40 eventSender.mouseDown(); |
41 eventSender.mouseUp(); | 41 eventSender.mouseUp(); |
42 shouldBe('clickCount', '1'); | 42 shouldBe('clickCount', '1'); |
43 </script> | 43 </script> |
44 | 44 |
45 <script src="../../js/resources/js-test-post.js"></script> | |
46 </body> | 45 </body> |
47 | 46 |
OLD | NEW |