Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / label / contenteditable-label-focus.html
blob11670be4a4063e12c2789efb7a1f10a716d0d937
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 function runTest() {
7 var target = document.getElementById('target');
8 debug('Calling target.focus()');
9 target.addEventListener('focus', function(e) {
10 debug('focus received by ' + target);
11 });
12 target.focus();
13 shouldBe('document.activeElement', 'target');
15 </script>
16 </head>
17 <body onload="runTest()">
18 <label id="target" contenteditable>I'm editable.</label>
19 <button id="button">Just a button</button>
20 </body>
21 </html>