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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-cd-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 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-completions.html » ('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 4b12df28ae1f1523324feb4c0226f74d6d893162..d93ca5a7dfef981eb0f8687f45afcda1ea4e63f9 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
@@ -166,12 +166,17 @@ function test()
function dumpCompletions(completions, expected)
{
var completionSet = new Set(completions.map(c => c.title));
+ var notFound = false;
for (var completion of expected) {
- if (completionSet.has(completion))
+ if (completionSet.has(completion)) {
InspectorTest.addResult(completion);
- else
+ } else {
InspectorTest.addResult("NOT FOUND: " + completion);
+ notFound = true;
+ }
}
+ if (notFound)
+ InspectorTest.addResult(JSON.stringify(completions));
}
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-completions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698