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

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

Issue 2712513002: DevTools: extract ObjectUI module from Components (Closed)
Patch Set: fix build.gn Created 3 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="console-test.js"></script> 3 <script src="console-test.js"></script>
4 <script src="inspector-test.js"></script> 4 <script src="inspector-test.js"></script>
5 <script> 5 <script>
6 6
7 function A() { 7 function A() {
8 this.instanceMember = 1; 8 this.instanceMember = 1;
9 this.member1 = 1; 9 this.member1 = 1;
10 } 10 }
(...skipping 17 matching lines...) Expand all
28 28
29 C.prototype.cMember = 1; 29 C.prototype.cMember = 1;
30 C.prototype.EPriorityMember = 2; 30 C.prototype.EPriorityMember = 2;
31 C.prototype.shadowedMember = 2; 31 C.prototype.shadowedMember = 2;
32 C.prototype.__proto__ = B.prototype; 32 C.prototype.__proto__ = B.prototype;
33 33
34 var objectC = new C(); 34 var objectC = new C();
35 35
36 function test() 36 function test()
37 { 37 {
38 Components.JavaScriptAutocomplete.completionsForExpression("objectC.", "e"). then(checkCompletions.bind(this)); 38 ObjectUI.JavaScriptAutocomplete.completionsForExpression("objectC.", "e").th en(checkCompletions.bind(this));
39 function checkCompletions(completions) 39 function checkCompletions(completions)
40 { 40 {
41 InspectorTest.addResult("Completions:") 41 InspectorTest.addResult("Completions:")
42 for (var completion of completions) 42 for (var completion of completions)
43 InspectorTest.addObject(completion); 43 InspectorTest.addObject(completion);
44 InspectorTest.completeTest(); 44 InspectorTest.completeTest();
45 } 45 }
46 } 46 }
47 47
48 </script> 48 </script>
49 </head> 49 </head>
50 50
51 <body onload="runTest()"> 51 <body onload="runTest()">
52 <p> 52 <p>
53 Tests completions prototype chain. 53 Tests completions prototype chain.
54 </p> 54 </p>
55 55
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698