Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / label-click.html
blob1c5ec03b437ea6dcf746e25651d7d70ce5722a5d
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 window.onload = function() {
5 var checkbox = document.getElementById('checkbox');
6 var label = document.getElementById('label');
8 shouldBeFalse('checkbox.checked');
10 if (window.eventSender) {
11 eventSender.mouseMoveTo(label.offsetLeft, label.offsetTop);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
15 shouldBeTrue('checkbox.checked');
17 eventSender.leapForward(1000);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
20 shouldBeFalse('checkbox.checked');
23 label.click();
24 shouldBeTrue('checkbox.checked');
26 label.click();
27 shouldBeFalse('checkbox.checked');
29 window.getSelection().selectAllChildren(label);
30 label.click();
31 shouldBeTrue('checkbox.checked');
33 label.click();
34 shouldBeFalse('checkbox.checked');
36 </script>
37 <input id="checkbox" type="checkbox">
38 <label id="label" for="checkbox">Label</label>
39 <div id="console"></div>