tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / inspector / debugger / debugger-breakpoints-not-activated-on-reload.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6
7 function testFunction()
8 {
9     return 0;
10 }
11
12 var test = function()
13 {
14     var testName = WebInspector.inspectedPageURL;
15     testName = testName.substring(testName.lastIndexOf('/') + 1);
16
17     InspectorTest.startDebuggerTest(step1);
18
19     function step1()
20     {
21         InspectorTest.showScriptSource(testName, step2);
22     }
23
24     function step2(sourceFrame)
25     {
26         InspectorTest.addResult("Main resource was shown.");
27         InspectorTest.setBreakpoint(sourceFrame, 8, "", true);
28         WebInspector.panels.scripts.toggleBreakpointsButton.element.click();
29         InspectorTest.reloadPage(step4);
30     }
31
32     function step3()
33     {
34         InspectorTest.showScriptSource(testName, step4);
35     }
36
37     function step4()
38     {
39         InspectorTest.addResult("Main resource was shown.");
40         if (!WebInspector.panels.scripts.breakpointsActivated())
41             InspectorTest.addResult("Breakpoints are deactivated.");
42         else
43             InspectorTest.addResult("Error: breakpoints are activated.");
44         InspectorTest.completeDebuggerTest();
45     }
46 };
47
48 </script>
49 </head>
50
51 <body onload="runTest()">
52 <p>
53 Tests that breakpoints are not activated on page reload.<a href="https://bugs.webkit.org/show_bug.cgi?id=41461">Bug 41461</a>
54 </p>
55 </body>
56 </html>