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

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

Issue 2656683003: Revert of DevTools: Console: Provide autocompletions for Maps (Closed)
Patch Set: Created 3 years, 11 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 20ee94f767703e9a6c7335c8e5f2576c812c20c2..2dd77ca287905083947623cf2dca88e1e41d0369 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-correct-suggestions.html
@@ -12,10 +12,8 @@
}
function shouldNotFindThisFunction() { }
-function shouldFindThisFunction() { }
+
window["should not find this"] = true;
-
-var myMap = new Map([['first', 1], ['second', 2], ['third', 3], ['shouldNotFindThis', 4]]);
function test()
{
@@ -33,7 +31,7 @@
function checkExpected(suggestions)
{
var completions = new Set(suggestions.map(suggestion => suggestion.title));
- var message = "Checking '" + text.replace('\n', '\\n').replace('\r', '\\r') + "'";
+ var message = "Checking '" + text + "'";
if (force)
message += " forcefully";
InspectorTest.addResult(message);
@@ -74,11 +72,6 @@
() => testCompletions("// do", ["document"], false),
() => testCompletions('["should', ["shouldNotFindThisFunction"]),
() => testCompletions("shou", ["should not find this"]),
- () => testCompletions('myMap.get(', ['"first")', '"second")', '"third")']),
- () => testCompletions('myMap.get(\'', ['\'first\')', '\'second\')', '\'third\')']),
- () => testCompletions('myMap.set(\'firs', ['\'first\', ']),
- () => testCompletions('myMap.set(should', ['shouldFindThisFunction', 'shouldNotFindThis', '\"shouldNotFindThis\")']),
- () => testCompletions('myMap.delete(\'', ['\'first\')', '\'second\')', '\'third\')']),
() => testCompletions("document. bo", ["body"]),
() => testCompletions("document.\tbo", ["body"]),
() => testCompletions("document.\nbo", ["body"]),
« 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