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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-completions-on-call-frame.html

Issue 1685683006: DevTools: [Console] speedup array autocompletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 var a = 1; 7 var a = 1;
8 function testFunction() 8 function testFunction()
9 { 9 {
10 var var1 = 2; 10 var var1 = 2;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 executionContext.completionsForExpression("console", "console.log('b ar');", 19, "log('bar');", false, checkAgainstGolden.bind(this, [], ["$"], next) ); 68 executionContext.completionsForExpression("console", "console.log('b ar');", 19, "log('bar');", false, checkAgainstGolden.bind(this, [], ["$"], next) );
69 }, 69 },
70 70
71 function step11(next) 71 function step11(next)
72 { 72 {
73 executionContext.completionsForExpression("arr1.", "arr1.", 5, "", f alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); 73 executionContext.completionsForExpression("arr1.", "arr1.", 5, "", f alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next));
74 }, 74 },
75 75
76 function step12(next) 76 function step12(next)
77 { 77 {
78 executionContext.completionsForExpression("arr1[", "arr1[", 5, "", f alse, checkAgainstGolden.bind(this, ["0]", "1]", "2]", "\"length\"]"], ["3]"], n ext)); 78 executionContext.completionsForExpression("arr1[", "arr1[", 5, "", f alse, checkAgainstGolden.bind(this, ["\"length\"]"], ["3]"], next));
79 }, 79 },
80 80
81 function step13_ShouldNotCrash(next) 81 function step13_ShouldNotCrash(next)
82 { 82 {
83 executionContext.completionsForExpression("arr2.", "arr2.", 5, "", f alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); 83 executionContext.completionsForExpression("arr2.", "arr2.", 5, "", f alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next));
84 }, 84 },
85 ]); 85 ]);
86 86
87 function checkAgainstGolden(golden, antiGolden, continuation, completions) 87 function checkAgainstGolden(golden, antiGolden, continuation, completions)
88 { 88 {
(...skipping 22 matching lines...) Expand all
111 </script> 111 </script>
112 </head> 112 </head>
113 113
114 <body onload="runTest()"> 114 <body onload="runTest()">
115 <p> 115 <p>
116 Test that completions in the context of the call frame will result in names 116 Test that completions in the context of the call frame will result in names
117 of its scope variables. 117 of its scope variables.
118 </p> 118 </p>
119 </body> 119 </body>
120 </html> 120 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698