Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-proto-property.html

Issue 2238003002: DevTools: migrate sources panel sidebar to views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: followed up on the watch test. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function C() 7 function C()
8 { 8 {
9 } 9 }
10 10
11 C.prototype = { 11 C.prototype = {
12 m: function() { } 12 m: function() { }
13 } 13 }
14 14
15 function testFunction() 15 function testFunction()
16 { 16 {
17 var o = new C(); 17 var o = new C();
18 var d = document.documentElement; 18 var d = document.documentElement;
19 debugger; 19 debugger;
20 } 20 }
21 21
22 function test() 22 function test()
23 { 23 {
24 InspectorTest.startDebuggerTest(step1); 24 InspectorTest.startDebuggerTest(step1);
25 25
26 function step1() 26 function step1()
27 { 27 {
28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
29 }
30
31 function step2(callFrames)
32 {
33 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true); 28 InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, " _sidebarPaneUpdatedForTest", onSidebarRendered, true);
29 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {});
34 } 30 }
35 31
36 function onSidebarRendered() 32 function onSidebarRendered()
37 { 33 {
38 var localScope = InspectorTest.scopeChainSections()[0].objectTreeElement (); 34 var localScope = InspectorTest.scopeChainSections()[0].objectTreeElement ();
39 var properties = [ 35 var properties = [
40 localScope, ["o", "__proto__", "__proto__"], 36 localScope, ["o", "__proto__", "__proto__"],
41 localScope, ["d", "__proto__", "__proto__", "__proto__", "__proto__" , "__proto__"] 37 localScope, ["d", "__proto__", "__proto__", "__proto__", "__proto__" , "__proto__"]
42 ]; 38 ];
43 InspectorTest.expandProperties(properties, step3); 39 InspectorTest.expandProperties(properties, step3);
44 } 40 }
45 41
46 function step3() 42 function step3()
47 { 43 {
48 InspectorTest.completeDebuggerTest(); 44 InspectorTest.completeDebuggerTest();
49 } 45 }
50 } 46 }
51 47
52 </script> 48 </script>
53 </head> 49 </head>
54 50
55 <body onload="runTest()"> 51 <body onload="runTest()">
56 <p> 52 <p>
57 Tests that object's __proto__ property is present in object properties section w hen 53 Tests that object's __proto__ property is present in object properties section w hen
58 script is paused on a breakpoint.<a href="https://bugs.webkit.org/show_bug.cgi?i d=41214">Bug 41214</a> 54 script is paused on a breakpoint.<a href="https://bugs.webkit.org/show_bug.cgi?i d=41214">Bug 41214</a>
59 </p> 55 </p>
60 56
61 </body> 57 </body>
62 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698