OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../http/tests/inspector/inspector-test.js"></script> |
5 <script src="../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../http/tests/inspector/elements-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function loaded() | 8 function loaded() |
9 { | 9 { |
10 var template = document.querySelector("#tmpl"); | 10 var template = document.querySelector("#tmpl"); |
(...skipping 23 matching lines...) Expand all Loading... |
34 { | 34 { |
35 InspectorTest.dumpBreadcrumb("Author shadow root breadcrumb"); | 35 InspectorTest.dumpBreadcrumb("Author shadow root breadcrumb"); |
36 InspectorTest.completeTest(); | 36 InspectorTest.completeTest(); |
37 } | 37 } |
38 | 38 |
39 function selectNode(matchFunction, next) | 39 function selectNode(matchFunction, next) |
40 { | 40 { |
41 InspectorTest.findNode(matchFunction, callback); | 41 InspectorTest.findNode(matchFunction, callback); |
42 function callback(node) | 42 function callback(node) |
43 { | 43 { |
44 if (node) | 44 WebInspector.Revealer.reveal(node); |
45 WebInspector._updateFocusedNode(node.id); | |
46 next(node); | 45 next(node); |
47 } | 46 } |
48 } | 47 } |
49 | 48 |
50 function matchUserAgentShadowRoot(node) | 49 function matchUserAgentShadowRoot(node) |
51 { | 50 { |
52 return node.shadowRootType() === WebInspector.DOMNode.ShadowRootTypes.Us
erAgent; | 51 return node.shadowRootType() === WebInspector.DOMNode.ShadowRootTypes.Us
erAgent; |
53 } | 52 } |
54 | 53 |
55 function matchAuthorShadowRoot(node) | 54 function matchAuthorShadowRoot(node) |
(...skipping 13 matching lines...) Expand all Loading... |
69 <input type="text"> | 68 <input type="text"> |
70 <div id="host"></div> | 69 <div id="host"></div> |
71 <template id="tmpl"> | 70 <template id="tmpl"> |
72 <style>.red { color: red; }</style> | 71 <style>.red { color: red; }</style> |
73 <div id="inner" class="red">inner</div> | 72 <div id="inner" class="red">inner</div> |
74 </template> | 73 </template> |
75 | 74 |
76 | 75 |
77 </body> | 76 </body> |
78 </html> | 77 </html> |
OLD | NEW |