blob: 3ba297fdc3ef52cc929db2d328b3c6d318389777 [file] [log] [blame]
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
function test()
{
console.error = function()
{
InspectorTest.addResult(String.sprintf.apply(this, arguments));
}
InspectorTest.NetworkAgent.setMonitoringXHREnabled(1);
InspectorTest.NetworkAgent.setMonitoringXHREnabled();
InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, "not a function");
InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, undefined);
InspectorTest.RuntimeAgent.evaluate("true", "test");
InspectorTest.RuntimeAgent.evaluate("true", "test", function(){});
InspectorTest.RuntimeAgent.evaluate("true", "test", undefined, function(){});
InspectorTest.connection.dispatch('{"method": "wrongDomain.something-strange", "params": {}}');
InspectorTest.connection.dispatch('{"method": "Inspector.something-strange", "params": {}}');
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that InspectorBackendStub is catching incorrect arguments.
</p>
</body>
</html>