3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
8 function dumpState(next)
10 PageAgent.getScriptExecutionStatus(statusCallback);
11 function statusCallback(error, status)
14 InspectorTest.addResult("Error: " + JSON.stringify(error));
18 InspectorTest.addResult("Script execution status: " + status);
23 function setJSDisabled(disabled, next)
25 PageAgent.setScriptExecutionDisabled(disabled, next);
28 InspectorTest.runTestSuite([
35 function checkDisabled(next)
37 setJSDisabled(true, dumpState.bind(null, next));
40 function checkRestored(next)
42 setJSDisabled(false, dumpState.bind(null, next));
49 <body onload="runTest()">
51 Tests that inspector effectively disables script execution in the inspected page.