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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/extensions/extensions-resources.html

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 years, 2 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/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script src="../../http/tests/inspector/extensions-test.js"></script> 5 <script src="../../http/tests/inspector/extensions-test.js"></script>
6 <script src="../../http/tests/inspector/debugger-test.js"></script> 6 <script src="../../http/tests/inspector/debugger-test.js"></script>
7 <script type="text/javascript"> 7 <script type="text/javascript">
8 function loadFrame() 8 function loadFrame()
9 { 9 {
10 var callback; 10 var callback;
11 var promise = new Promise((fulfill) => callback = fulfill); 11 var promise = new Promise((fulfill) => callback = fulfill);
12 var iframe = document.createElement("iframe"); 12 var iframe = document.createElement("iframe");
13 iframe.src = "resources/subframe.html"; 13 iframe.src = "resources/subframe.html";
14 iframe.addEventListener("load", callback); 14 iframe.addEventListener("load", callback);
15 document.body.appendChild(iframe); 15 document.body.appendChild(iframe);
16 return promise; 16 return promise;
17 } 17 }
18 18
19 function logMessage() 19 function logMessage()
20 { 20 {
21 frames[0].logMessage(); 21 frames[0].logMessage();
22 } 22 }
23 23
24 function initialize_ExtensionResourceTests() 24 function initialize_ExtensionResourceTests()
25 { 25 {
26 26
27 InspectorTest.clickOnURL = function() 27 InspectorTest.clickOnURL = function()
28 { 28 {
29 WebInspector.ConsolePanel.show(); 29 WebInspector.viewManager.showView("console").then(() => {
30 WebInspector.ConsoleView.instance()._updateMessageList(); 30 WebInspector.ConsoleView.instance()._updateMessageList();
31 var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js')]", 31 var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js' )]",
32 WebInspector.ConsoleView.instance().elem ent, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null); 32 WebInspector.ConsoleView.instance(). element, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null);
33 33
34 var click = document.createEvent("MouseEvent"); 34 var click = document.createEvent("MouseEvent");
35 click.initMouseEvent("click", true, true); 35 click.initMouseEvent("click", true, true);
36 xpathResult.singleNodeValue.dispatchEvent(click); 36 xpathResult.singleNodeValue.dispatchEvent(click);
37 });
37 } 38 }
38 39
39 InspectorTest.waitForStyleSheetChangedEvent = function(reply) 40 InspectorTest.waitForStyleSheetChangedEvent = function(reply)
40 { 41 {
41 var originalSetTimeout = WebInspector.Throttler.prototype._setTimeout; 42 var originalSetTimeout = WebInspector.Throttler.prototype._setTimeout;
42 WebInspector.Throttler.prototype._setTimeout = innerSetTimeout; 43 WebInspector.Throttler.prototype._setTimeout = innerSetTimeout;
43 InspectorTest.addSniffer(WebInspector.CSSModel.prototype, "_fireStyleSheetCh anged", onStyleSheetChanged); 44 InspectorTest.addSniffer(WebInspector.CSSModel.prototype, "_fireStyleSheetCh anged", onStyleSheetChanged);
44 45
45 function onStyleSheetChanged() 46 function onStyleSheetChanged()
46 { 47 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 script.src = "data:application/javascript," + escape("function test_func(){} ;"); 206 script.src = "data:application/javascript," + escape("function test_func(){} ;");
206 document.head.appendChild(script); 207 document.head.appendChild(script);
207 } 208 }
208 209
209 </script> 210 </script>
210 </head> 211 </head>
211 <body onload="runTest()"> 212 <body onload="runTest()">
212 <p>Tests resource-related methods of WebInspector extension API</p> 213 <p>Tests resource-related methods of WebInspector extension API</p>
213 </body> 214 </body>
214 </html> 215 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698