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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-completions.html

Issue 2557763003: DevTools: sort completions by prototype. (Closed)
Patch Set: rebaselined Created 4 years 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
(Empty)
1 <html>
2 <head>
3 <script src="console-test.js"></script>
4 <script src="inspector-test.js"></script>
5 <script>
6
7 function A() {
8 this.instanceMember = 1;
9 this.member1 = 1;
10 }
11
12 A.prototype.aMember = 1;
13 A.prototype.shadowedMember = 0;
14 A.prototype.__proto__ = null;
15
16 function B() {
17 A.call(this);
18 }
19
20 B.prototype.bMember = 1;
21 B.prototype.ePriorityMember = 2;
22 B.prototype.shadowedMember = 1;
23 B.prototype.__proto__ = A.prototype;
24
25 function C() {
26 B.call(this);
27 }
28
29 C.prototype.cMember = 1;
30 C.prototype.EPriorityMember = 2;
31 C.prototype.shadowedMember = 2;
32 C.prototype.__proto__ = B.prototype;
33
34 var objectC = new C();
35
36 function test()
37 {
38 Components.JavaScriptAutocomplete.completionsForExpression("objectC.", "e"). then(checkCompletions.bind(this));
39 function checkCompletions(completions)
40 {
41 InspectorTest.addResult("Completions:")
42 for (var completion of completions)
43 InspectorTest.addObject(completion);
44 InspectorTest.completeTest();
45 }
46 }
47
48 </script>
49 </head>
50
51 <body onload="runTest()">
52 <p>
53 Tests completions prototype chain.
54 </p>
55
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698