Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-cyclic-ref.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 Object.prototype.cyclicRef = Object.prototype;
8
9 function testFunction()
10 {
11     var o = new Object();
12     debugger;
13 }
14
15 var test = function()
16 {
17     InspectorTest.startDebuggerTest(step1);
18
19     function step1()
20     {
21         InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
22     }
23
24     function step2()
25     {
26         InspectorTest.completeDebuggerTest();
27     }
28 }
29
30 </script>
31 </head>
32
33 <body onload="runTest()">
34 <p>
35 Tests that debugging a page where Object prototype has a cyclic reference won't
36 crash the browser.<a href="https://bugs.webkit.org/show_bug.cgi?id=43558">Bug 43558</a>
37 </p>
38
39 </body>
40 </html>