Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-cyclic-ref.html
blob8137103a202c6d963efdba409426d672c871e67a
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>
7 Object.prototype.cyclicRef = Object.prototype;
9 function testFunction()
11 var o = new Object();
12 debugger;
15 var test = function()
17 InspectorTest.startDebuggerTest(step1);
19 function step1()
21 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
24 function step2()
26 InspectorTest.completeDebuggerTest();
30 </script>
31 </head>
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>
39 </body>
40 </html>