3 <script src="../http/tests/inspector/inspector-test2.js"></script>
9 console.error = function()
11 InspectorTest.addResult(String.sprintf.apply(this, arguments));
14 InspectorBackend.setMonitoringXHREnabled(1);
15 InspectorBackend.setMonitoringXHREnabled();
16 InspectorBackend.setMonitoringXHREnabled(true, "not a function");
17 InspectorBackend.setMonitoringXHREnabled(true, undefined);
18 InspectorBackend.setMonitoringXHREnabled(false, undefined);
19 WebInspector_syncDispatch('{"type": "event", "domain": "dom", "event": "something-strange", "data": {}}');
21 InspectorTest.completeTest();
27 <body onload="runTest()">
29 Tests that InspectorBackendStub is catching incorrect arguments.