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>
8 description('Tests nested click event on label element with checkbox');
9 document
.getElementById('ch1').addEventListener('click', function() {
10 document
.getElementById('for_ch2').click();
12 document
.getElementById('for_ch1').click();
13 shouldBeTrue("document.getElementById('ch2').checked");