blob: b9e40bf21ea994369218e0d38bc18e8cb57407b7 [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.mainTarget._onMessage('{"method": "wrongDomain.something-strange", "params": {}}');
InspectorTest.mainTarget._onMessage('{"method": "Inspector.something-strange", "params": {}}');
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that InspectorBackendStub is catching incorrect arguments.
</p>
</body>
</html>