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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html

Issue 1962443002: [DevTools] Fix completions for "Object." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html
index e0867247810a5cdfd94195373f26d6a86054c947..6d8b6372938ad299cdfab5af244c90f31446786e 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions.html
@@ -144,6 +144,20 @@ function test()
{
InspectorTest.addResult("MyClass with mixin completions:")
dumpCompletions(completions, ["myMethod"]);
+ requestObjectCompletions();
+ }
+
+
+ function requestObjectCompletions()
+ {
+ InspectorTest.changeExecutionContext("top");
+ WebInspector.context.flavor(WebInspector.ExecutionContext).completionsForExpression("Object.", "Object.", 0, "", false, checkObjectCompletions.bind(this));
+ }
+
+ function checkObjectCompletions(completions)
+ {
+ InspectorTest.addResult("Object completions:")
+ dumpCompletions(completions, ["getOwnPropertyNames", "getOwnPropertyDescriptor", "keys"]);
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-completions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698