Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-proto-property.html
blob49f9c4de3f1a1b56ede253a6489549923fccc3f2
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 function C()
11 C.prototype = {
12 m: function() { }
15 function testFunction()
17 var o = new C();
18 var d = document.documentElement;
19 debugger;
22 function test()
24 InspectorTest.startDebuggerTest(step1);
26 function step1()
28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
31 function step2(callFrames)
33 var sections = WebInspector.inspectorView.currentPanel().sidebarPanes.scopechain._sections;
34 var localScope = sections[0].objectTreeElement();
35 var properties = [
36 localScope, ["o", "__proto__", "__proto__"],
37 localScope, ["d", "__proto__", "__proto__", "__proto__", "__proto__", "__proto__"]
39 InspectorTest.expandProperties(properties, step3);
42 function step3()
44 InspectorTest.completeDebuggerTest();
48 </script>
49 </head>
51 <body onload="runTest()">
52 <p>
53 Tests that object's __proto__ property is present in object properties section when
54 script is paused on a breakpoint.<a href="https://bugs.webkit.org/show_bug.cgi?id=41214">Bug 41214</a>
55 </p>
57 </body>
58 </html>