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.sources._toggleBreakpointsButton.element.click();
29 InspectorTest.reloadPage(step3);
34 InspectorTest.addResult("Main resource was shown.");
35 if (!WebInspector.debuggerModel.breakpointsActive())
36 InspectorTest.addResult("Breakpoints are deactivated.");
38 InspectorTest.addResult("Error: breakpoints are activated.");
39 InspectorTest.completeDebuggerTest();
46 <body onload="runTest()">
48 Tests that breakpoints are not activated on page reload.<a href="https://bugs.webkit.org/show_bug.cgi?id=41461">Bug 41461</a>