Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / debugger / open-close-open.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 test()
8 {
9     InspectorTest.evaluateInPage("frontendReopeningCount", function(result) {
10         if (result._description === "0")
11             InspectorTest.evaluateInPage("reopenFrontend()")
12         else {
13             InspectorTest.runDebuggerTestSuite([
14                 function testSourceFrameContent(next)
15                 {
16                     InspectorTest.showScriptSource("open-close-open.html", didShowScriptSource);
17
18                     function didShowScriptSource(sourceFrame)
19                     {
20                         InspectorTest.dumpSourceFrameContents(sourceFrame);
21                         next();
22                     }
23                 }
24             ]);
25         }
26     });
27 }
28
29 </script>
30
31 </head>
32
33 <body onload="runTest()">
34 <p>
35 Tests that scripts panel displays resource content correctly after the open - close - open sequence.
36 <a href="https://bugs.webkit.org/show_bug.cgi?id=56747">Bug 56747</a>
37 </p>
38 </body>
39 </html>