Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / checkbox / checkbox-nested-click-event-on-label.html
blob4a2cbc57a81cd26644790e5f793dff2b1334cd1d
1 <!DOCTYPE html>
2 <input type="checkbox" name="ch1" id="ch1" value="1" /><label id="for_ch1" for="ch1">checkbox1</label>
3 <input type="checkbox" name="ch2" id="ch2" value="2" /><label id="for_ch2" for="ch2">checkbox2</label>
4 <p id="description"></p>
5 <div id="console"></div>
6 <script src="../../../resources/js-test.js"></script>
7 <script>
8 description('Tests nested click event on label element with checkbox');
9 document.getElementById('ch1').addEventListener('click', function() {
10 document.getElementById('for_ch2').click();
11 }, false);
12 document.getElementById('for_ch1').click();
13 shouldBeTrue("document.getElementById('ch2').checked");
14 </script>