5 <style type=
"text/css">
7 -moz-user-select: none
;
8 -webkit-user-select: none
;
14 <script src=
"../../resources/js-test.js"></script>
17 <p> Mouse double/triple click on an element with
"webkit-user-select none" should not select the next node
</p>
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>
27 <div id=
"console"></div>
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');
57 debug("To test manually, double/triple click on 1/2/3/4 and it should not select Foo");
59 successfullyParsed
= true;