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

Unified Diff: webkit/tools/layout_tests/flakiness_dashboard.html

Issue 334030: Remove dupes when generating the list of tests to show in the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/flakiness_dashboard.html
===================================================================
--- webkit/tools/layout_tests/flakiness_dashboard.html (revision 30090)
+++ webkit/tools/layout_tests/flakiness_dashboard.html (working copy)
@@ -514,7 +514,7 @@
var separator = stringContains(currentState.tests, ' ') ? ' ' : ',';
var testList = currentState.tests.split(separator);
- var tests = [];
+ var tests = {};
for (var i = 0; i < testList.length; i++) {
var path = testList[i];
@@ -523,13 +523,26 @@
continue;
var allTests = getAllTests();
+ var hasAnyMatches = false;
for (var test in allTests) {
if (caseInsensitiveContains(test, path)) {
- tests.push(test);
+ tests[test] = 1;
+ hasAnyMatches = true;
}
}
+
+ // If a path doesn't match any tests, then assume it's a full path
+ // to a test that passes on all builders.
+ if (!hasAnyMatches) {
+ tests[path] = 1;
+ }
}
- return tests;
+
+ var testsArray = [];
+ for (var test in tests) {
+ testsArray.push(test);
+ }
+ return testsArray;
}
function getAllTestsWithIncorrectExpectations() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698