blob: bd8446968d883c9df7f5812025dfa37cd6e98851 [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));
}
ConsoleAgent.setMonitoringXHREnabled(1);
ConsoleAgent.setMonitoringXHREnabled();
ConsoleAgent.setMonitoringXHREnabled(false, "not a function");
ConsoleAgent.setMonitoringXHREnabled(false, undefined);
RuntimeAgent.evaluate("true", "test");
RuntimeAgent.evaluate("true", "test", function(){});
RuntimeAgent.evaluate("true", "test", undefined, function(){});
InspectorBackend.dispatch('{"type": "event", "domain": "wrongDomain", "event": "something-strange", "data": {}}');
InspectorBackend.dispatch('{"type": "event", "domain": "Inspector", "event": "something-strange", "data": {}}');
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that InspectorBackendStub is catching incorrect arguments.
</p>
</body>
</html>