Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / report-API-errors.html
blob211f8683a1536cb5672ee2ec834b58270ca7a4ce
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function test()
9 console.error = function()
11 InspectorTest.addResult(String.sprintf.apply(this, arguments));
14 InspectorTest.NetworkAgent.setMonitoringXHREnabled(1);
15 InspectorTest.NetworkAgent.setMonitoringXHREnabled();
16 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, "not a function");
17 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, undefined);
18 InspectorTest.RuntimeAgent.evaluate("true", "test");
19 InspectorTest.RuntimeAgent.evaluate("true", "test", function(){});
20 InspectorTest.RuntimeAgent.evaluate("true", "test", undefined, function(){});
21 InspectorBackend.connection().dispatch('{"method": "wrongDomain.something-strange", "params": {}}');
22 InspectorBackend.connection().dispatch('{"method": "Inspector.something-strange", "params": {}}');
24 InspectorTest.completeTest();
27 </script>
28 </head>
30 <body onload="runTest()">
31 <p>
32 Tests that InspectorBackendStub is catching incorrect arguments.
33 </p>
35 </body>
36 </html>