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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/reveal-objects.html

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 4 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 src="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="../http/tests/inspector/elements-test.js"></script> 4 <script src="../http/tests/inspector/elements-test.js"></script>
5 <script src="../http/tests/inspector/network-test.js"></script> 5 <script src="../http/tests/inspector/network-test.js"></script>
6 <script> 6 <script>
7 7
8 var initialize_TestCustom = function() { 8 var initialize_TestCustom = function() {
9 9
10 InspectorTest.preloadPanel("elements"); 10 InspectorTest.preloadPanel("elements");
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 { 93 {
94 WebInspector.Revealer.revealPromise(requestWithoutResource).then(nex t); 94 WebInspector.Revealer.revealPromise(requestWithoutResource).then(nex t);
95 } 95 }
96 ]); 96 ]);
97 97
98 function installHooks() 98 function installHooks()
99 { 99 {
100 InspectorTest.addSniffer(WebInspector.ElementsPanel.prototype, "revealAn dSelectNode", nodeRevealed, true); 100 InspectorTest.addSniffer(WebInspector.ElementsPanel.prototype, "revealAn dSelectNode", nodeRevealed, true);
101 InspectorTest.addSniffer(WebInspector.SourcesPanel.prototype, "showUILoc ation", uiLocationRevealed, true); 101 InspectorTest.addSniffer(WebInspector.SourcesPanel.prototype, "showUILoc ation", uiLocationRevealed, true);
102 InspectorTest.addSniffer(WebInspector.ResourcesPanel.prototype, "showRes ource", resourceRevealed, true); 102 InspectorTest.addSniffer(WebInspector.ResourcesPanel.prototype, "showRes ource", resourceRevealed, true);
103 InspectorTest.addSniffer(WebInspector.NetworkPanel.prototype, "revealAnd HighlightRequest", requestRevealed, true); 103 InspectorTest.addSniffer(WebInspector.NetworkPanel.prototype, "revealAnd HighlightRequest", revealWidgeted, true);
104 } 104 }
105 105
106 function nodeRevealed(node) 106 function nodeRevealed(node)
107 { 107 {
108 InspectorTest.addResult("Node revealed in the Elements panel"); 108 InspectorTest.addResult("Node revealed in the Elements panel");
109 } 109 }
110 110
111 function uiLocationRevealed(uiLocation) 111 function uiLocationRevealed(uiLocation)
112 { 112 {
113 InspectorTest.addResult("UILocation " + uiLocation.uiSourceCode.name() + ":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber + " revealed in the Sources panel"); 113 InspectorTest.addResult("UILocation " + uiLocation.uiSourceCode.name() + ":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber + " revealed in the Sources panel");
114 } 114 }
115 115
116 function resourceRevealed(resource, lineNumber) 116 function resourceRevealed(resource, lineNumber)
117 { 117 {
118 InspectorTest.addResult("Resource " + resource.displayName + " revealed in the Resources panel"); 118 InspectorTest.addResult("Resource " + resource.displayName + " revealed in the Resources panel");
119 } 119 }
120 120
121 function requestRevealed(request) 121 function revealWidgeted(request)
122 { 122 {
123 InspectorTest.addResult("Request " + new WebInspector.ParsedURL(request. url).lastPathComponent + " revealed in the Network panel"); 123 InspectorTest.addResult("Request " + new WebInspector.ParsedURL(request. url).lastPathComponent + " revealed in the Network panel");
124 } 124 }
125 } 125 }
126 126
127 </script> 127 </script>
128 </head> 128 </head>
129 <body onload="runTest()"> 129 <body onload="runTest()">
130 <p>Tests object revelation in the UI.</p> 130 <p>Tests object revelation in the UI.</p>
131 <div id="div" /> 131 <div id="div" />
132 </body> 132 </body>
133 </html> 133 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698