3 <script src="../http/tests/inspector/inspector-test.js"></script>
9 console.error = function()
11 InspectorTest.addResult(String.sprintf.apply(this, arguments));
14 ConsoleAgent.setMonitoringXHREnabled(1);
15 ConsoleAgent.setMonitoringXHREnabled();
16 ConsoleAgent.setMonitoringXHREnabled(false, "not a function");
17 ConsoleAgent.setMonitoringXHREnabled(false, undefined);
18 RuntimeAgent.evaluate("true", "test");
19 RuntimeAgent.evaluate("true", "test", function(){});
20 RuntimeAgent.evaluate("true", "test", undefined, function(){});
21 InspectorBackend.dispatch('{"method": "wrongDomain.something-strange", "params": {}}');
22 InspectorBackend.dispatch('{"method": "Inspector.something-strange", "params": {}}');
24 InspectorTest.completeTest();
30 <body onload="runTest()">
32 Tests that InspectorBackendStub is catching incorrect arguments.