3 <script src=
"../../../resources/js-test.js"></script>
7 -webkit-user-select: none;
11 Select, some text from this line!!!
14 <input type=
"checkbox"/>
15 <span id='span'
>Click Me
</span>
17 <div id='console'
></div>
20 description('Tests that the click event is passed when selection is disabaled' +
23 var span
= document
.getElementById('span');
24 testWithDoubleClick(span
);
25 shouldBeEqualToString('window.getSelection().toString()', '');
27 var div
= document
.querySelector('div');
28 testWithDoubleClick(div
);
29 shouldBeEqualToString('window.getSelection().toString()', 'Select');
31 shouldBeFalse("document.querySelector('input').checked");
34 shouldBeTrue("document.querySelector('input').checked");
37 shouldBeFalse("document.querySelector('input').checked");
39 div
.style
.display
= 'none';
40 span
.style
.display
= 'none';
42 function testWithDoubleClick(element
)
44 eventSender
.mouseMoveTo(element
.offsetLeft
, element
.offsetTop
);
45 eventSender
.mouseDown();
46 eventSender
.mouseUp();
47 eventSender
.mouseDown();
48 eventSender
.mouseUp();