Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-focus.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698