3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
14 var testName = WebInspector.inspectedPageURL;
15 testName = testName.substring(testName.lastIndexOf('/') + 1);
17 InspectorTest.startDebuggerTest(step1);
21 InspectorTest.showScriptSource(testName, step2);
24 function step2(sourceFrame)
26 InspectorTest.addResult("Main resource was shown.");
27 InspectorTest.setBreakpoint(sourceFrame, 8, "", true);
28 WebInspector.panels.scripts.toggleBreakpointsButton.element.click();
29 InspectorTest.reloadPage(step4);
34 InspectorTest.showScriptSource(testName, step4);
39 InspectorTest.addResult("Main resource was shown.");
40 if (!WebInspector.panels.scripts.breakpointsActivated())
41 InspectorTest.addResult("Breakpoints are deactivated.");
43 InspectorTest.addResult("Error: breakpoints are activated.");
44 InspectorTest.completeDebuggerTest();
51 <body onload="runTest()">
53 Tests that breakpoints are not activated on page reload.<a href="https://bugs.webkit.org/show_bug.cgi?id=41461">Bug 41461</a>