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

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

Issue 2080173003: DevTools: pass theme name to the extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test rebaselined Created 4 years, 5 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
8 <script type="text/javascript"> 7 <script type="text/javascript">
9 function loadFrame(callback) 8 function loadFrame(callback)
10 { 9 {
11 var iframe = document.createElement("iframe"); 10 var iframe = document.createElement("iframe");
12 iframe.src = "resources/subframe.html"; 11 iframe.src = "resources/subframe.html";
13 iframe.addEventListener("load", callback); 12 iframe.addEventListener("load", callback);
14 document.body.appendChild(iframe); 13 document.body.appendChild(iframe);
15 } 14 }
16 15
17 function logMessage() 16 function logMessage()
18 { 17 {
19 frames[0].logMessage(); 18 frames[0].logMessage();
20 } 19 }
21 20
22 function initialize_ExtensionResourceTests() 21 function initialize_ExtensionResourceTests()
23 { 22 {
24 23
25 InspectorTest.clickOnURL = function() 24 InspectorTest.clickOnURL = function()
26 { 25 {
27 WebInspector.ConsolePanel.show(); 26 WebInspector.ConsolePanel.show();
27 WebInspector.ConsoleView.instance()._updateMessageList();
28 var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js')]", 28 var xpathResult = document.evaluate("//a[starts-with(., 'test-script.js')]",
29 WebInspector.panels.console.element, nul l, XPathResult.ANY_UNORDERED_NODE_TYPE, null); 29 WebInspector.ConsoleView.instance().elem ent, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null);
30
30 var click = document.createEvent("MouseEvent"); 31 var click = document.createEvent("MouseEvent");
31 click.initMouseEvent("click", true, true); 32 click.initMouseEvent("click", true, true);
32 xpathResult.singleNodeValue.dispatchEvent(click); 33 xpathResult.singleNodeValue.dispatchEvent(click);
33 } 34 }
34 35
35 InspectorTest.waitForStyleSheetChangedEvent = function(reply) 36 InspectorTest.waitForStyleSheetChangedEvent = function(reply)
36 { 37 {
37 var originalSetTimeout = WebInspector.Throttler.prototype._setTimeout; 38 var originalSetTimeout = WebInspector.Throttler.prototype._setTimeout;
38 WebInspector.Throttler.prototype._setTimeout = innerSetTimeout; 39 WebInspector.Throttler.prototype._setTimeout = innerSetTimeout;
39 InspectorTest.addSniffer(WebInspector.CSSModel.prototype, "_fireStyleSheetCh anged", onStyleSheetChanged); 40 InspectorTest.addSniffer(WebInspector.CSSModel.prototype, "_fireStyleSheetCh anged", onStyleSheetChanged);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 script.src = "data:application/javascript," + escape("function test_func(){} ;"); 202 script.src = "data:application/javascript," + escape("function test_func(){} ;");
202 document.head.appendChild(script); 203 document.head.appendChild(script);
203 } 204 }
204 205
205 </script> 206 </script>
206 </head> 207 </head>
207 <body onload="runTest()"> 208 <body onload="runTest()">
208 <p>Tests resource-related methods of WebInspector extension API</p> 209 <p>Tests resource-related methods of WebInspector extension API</p>
209 </body> 210 </body>
210 </html> 211 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698