OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function logActiveElement() { | 6 function logActiveElement() { |
7 var el = document.activeElement; | 7 var el = document.activeElement; |
8 log(el ? (el.id || el.tagName) : "(none)"); | 8 log(el ? (el.id || el.tagName) : "(none)"); |
9 } | 9 } |
10 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "logActiveElem
ent()" }); | 13 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "logActiveElem
ent()" }); |
(...skipping 29 matching lines...) Expand all Loading... |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
49 <input></input> | 49 <input></input> |
50 <input id="second"></input> | 50 <input id="second"></input> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |