Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mouse-double-triple-click-should-not-select-next-node-for-user-select-none.html
blob7d5cfbe678923dbea9d6f2bcbd8616b73bb6c3cc
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <style type="text/css">
6 .parent, .child {
7 -moz-user-select: none;
8 -webkit-user-select: none;
10 .child {
11 visibility: hidden;
13 </style>
14 <script src="../../resources/js-test.js"></script>
15 </head>
16 <body>
17 <p> Mouse double/triple click on an element with "webkit-user-select none" should not select the next node</p>
18 <div>
19 <div class='parent'>
20 <div id="second" class='child'>1</div>
21 <div class='child'>2</div>
22 <div class='child'>3</div>
23 <div class='child'>4</div>
24 </div>
25 Foo
26 </div>
27 <div id="console"></div>
28 <script>
29 function doubleClick() {
30 eventSender.mouseDown();
31 eventSender.mouseUp();
32 eventSender.mouseDown();
33 eventSender.mouseUp();
36 function tripleClick() {
37 eventSender.mouseDown();
38 eventSender.mouseUp();
39 eventSender.mouseDown();
40 eventSender.mouseUp();
41 eventSender.mouseDown();
42 eventSender.mouseUp();
45 if (window.eventSender) {
46 var div = document.getElementById("second");
47 var x = div.offsetLeft + 5;
48 var y = div.offsetTop + 5;
49 eventSender.mouseMoveTo(x, y);
51 shouldNotBe("doubleClick(); document.getSelection()",'"Foo"');
53 shouldBe('document.getSelection().removeAllRanges(); document.getSelection().toString().indexOf("Foo")','-1');
55 shouldBe('tripleClick(); document.getSelection().toString().indexOf("Foo")', '-1');
56 } else {
57 debug("To test manually, double/triple click on 1/2/3/4 and it should not select Foo");
59 successfullyParsed = true;
60 </script>
61 </body>
62 </html>