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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html

Issue 2760583002: DevTools: Don't give up autocomplete after a fancy character in a string (Closed)
Patch Set: merge Created 3 years, 9 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/inspector/console/console-correct-suggestions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html b/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
index be63ce4150b0ddf6da2b9bc9f0717b75b828e224..9371893889c145d445bffb0fd5b6e32f78e017c0 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
@@ -16,7 +16,12 @@ function shouldFindThisFunction() { }
window["should not find this"] = true;
var myMap = new Map([['first', 1], ['second', 2], ['third', 3], ['shouldNotFindThis', 4]]);
-
+var complicatedObject = {
+ 'foo-bar': true,
+ '"double-qouted"': true,
+ "'single-qouted'": true,
+ "notDangerous();": true
+}
function test()
{
var consoleEditor;
@@ -98,7 +103,15 @@ function test()
() => testCompletions("document[ [win", ["window"]),
() => testCompletions("document[ [ win", ["window"]),
() => testCompletions('I|mag', ['Image', 'Infinity']),
- () => testCompletions('var x = (do|);', ['document'])
+ () => testCompletions('var x = (do|);', ['document']),
+ () => testCompletions('complicatedObject["foo', ['"foo-bar"]']),
+ () => testCompletions('complicatedObject["foo-', ['"foo-bar"]']),
+ () => testCompletions('complicatedObject["foo-bar', ['"foo-bar"]']),
+ () => testCompletions('complicatedObject["\'sing', ['"\'single-qouted\'"]']),
+ () => testCompletions('complicatedObject[\'\\\'sing', ['\'\\\'single-qouted\\\'\']']),
+ () => testCompletions('complicatedObject["\'single-qou', ['"\'single-qouted\'"]']),
+ () => testCompletions('complicatedObject["\\"double-qouted\\"', ['"\\"double-qouted\\""]']),
+ () => testCompletions('complicatedObject["notDangerous();', ['"notDangerous();"]']),
]).then(InspectorTest.completeTest);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698