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

Side by Side Diff: LayoutTests/inspector/report-API-errors.html

Issue 1355423003: Devtools: initialize protocol enums synchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed WebInspector._connectionForTests Created 5 years, 3 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> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 8
9 console.error = function() 9 console.error = function()
10 { 10 {
11 InspectorTest.addResult(String.sprintf.apply(this, arguments)); 11 InspectorTest.addResult(String.sprintf.apply(this, arguments));
12 } 12 }
13 13
14 InspectorTest.NetworkAgent.setMonitoringXHREnabled(1); 14 InspectorTest.NetworkAgent.setMonitoringXHREnabled(1);
15 InspectorTest.NetworkAgent.setMonitoringXHREnabled(); 15 InspectorTest.NetworkAgent.setMonitoringXHREnabled();
16 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, "not a function"); 16 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, "not a function");
17 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, undefined); 17 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, undefined);
18 InspectorTest.RuntimeAgent.evaluate("true", "test"); 18 InspectorTest.RuntimeAgent.evaluate("true", "test");
19 InspectorTest.RuntimeAgent.evaluate("true", "test", function(){}); 19 InspectorTest.RuntimeAgent.evaluate("true", "test", function(){});
20 InspectorTest.RuntimeAgent.evaluate("true", "test", undefined, function(){}) ; 20 InspectorTest.RuntimeAgent.evaluate("true", "test", undefined, function(){}) ;
21 InspectorBackend.connection().dispatch('{"method": "wrongDomain.something-st range", "params": {}}'); 21 InspectorTest.connection.dispatch('{"method": "wrongDomain.something-strange ", "params": {}}');
22 InspectorBackend.connection().dispatch('{"method": "Inspector.something-stra nge", "params": {}}'); 22 InspectorTest.connection.dispatch('{"method": "Inspector.something-strange", "params": {}}');
23 23
24 InspectorTest.completeTest(); 24 InspectorTest.completeTest();
25 } 25 }
26 26
27 </script> 27 </script>
28 </head> 28 </head>
29 29
30 <body onload="runTest()"> 30 <body onload="runTest()">
31 <p> 31 <p>
32 Tests that InspectorBackendStub is catching incorrect arguments. 32 Tests that InspectorBackendStub is catching incorrect arguments.
33 </p> 33 </p>
34 34
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-loader.html ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698