OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 .parent, .child { | 6 .parent, .child { |
7 -moz-user-select: none; | 7 -moz-user-select: none; |
8 -webkit-user-select: none; | 8 -webkit-user-select: none; |
9 } | 9 } |
10 .child { | 10 .child { |
11 visibility: hidden; | 11 visibility: hidden; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <script src="../js/resources/js-test-pre.js"></script> | 14 <script src="../../resources/js-test.js"></script> |
15 </head> | 15 </head> |
16 <body> | 16 <body> |
17 <p> Mouse double/triple click on an element with "webkit-user-select none" shoul
d not select the next node</p> | 17 <p> Mouse double/triple click on an element with "webkit-user-select none" shoul
d not select the next node</p> |
18 <div> | 18 <div> |
19 <div class='parent'> | 19 <div class='parent'> |
20 <div id="second" class='child'>1</div> | 20 <div id="second" class='child'>1</div> |
21 <div class='child'>2</div> | 21 <div class='child'>2</div> |
22 <div class='child'>3</div> | 22 <div class='child'>3</div> |
23 <div class='child'>4</div> | 23 <div class='child'>4</div> |
24 </div> | 24 </div> |
(...skipping 28 matching lines...) Expand all Loading... |
53 shouldBe('document.getSelection().removeAllRanges(); document.getSelection()
.toString().indexOf("Foo")','-1'); | 53 shouldBe('document.getSelection().removeAllRanges(); document.getSelection()
.toString().indexOf("Foo")','-1'); |
54 | 54 |
55 shouldBe('tripleClick(); document.getSelection().toString().indexOf("Foo")',
'-1'); | 55 shouldBe('tripleClick(); document.getSelection().toString().indexOf("Foo")',
'-1'); |
56 } else { | 56 } else { |
57 debug("To test manually, double/triple click on 1/2/3/4 and it should not se
lect Foo"); | 57 debug("To test manually, double/triple click on 1/2/3/4 and it should not se
lect Foo"); |
58 } | 58 } |
59 successfullyParsed = true; | 59 successfullyParsed = true; |
60 </script> | 60 </script> |
61 </body> | 61 </body> |
62 </html> | 62 </html> |
OLD | NEW |