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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 3
4 <head> 4 <head>
5 <title>Webkit Layout Test History</title> 5 <title>Webkit Layout Test History</title>
6 <style> 6 <style>
7 body { 7 body {
8 font-family: arial; 8 font-family: arial;
9 font-size: 13px; 9 font-size: 13px;
10 } 10 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } else if (currentState.tests == 'allSlowTests') { 507 } else if (currentState.tests == 'allSlowTests') {
508 return getSlowTests(); 508 return getSlowTests();
509 } else if (currentState.tests == 'allNeedSlowTests') { 509 } else if (currentState.tests == 'allNeedSlowTests') {
510 return getNeedSlowTests(); 510 return getNeedSlowTests();
511 } else if (currentState.tests == 'allIncorrectExpectations') { 511 } else if (currentState.tests == 'allIncorrectExpectations') {
512 return getAllTestsWithIncorrectExpectations(); 512 return getAllTestsWithIncorrectExpectations();
513 } 513 }
514 514
515 var separator = stringContains(currentState.tests, ' ') ? ' ' : ','; 515 var separator = stringContains(currentState.tests, ' ') ? ' ' : ',';
516 var testList = currentState.tests.split(separator); 516 var testList = currentState.tests.split(separator);
517 var tests = []; 517 var tests = {};
518 for (var i = 0; i < testList.length; i++) { 518 for (var i = 0; i < testList.length; i++) {
519 var path = testList[i]; 519 var path = testList[i];
520 520
521 // Ignore whitespace entries as they'd match every test. 521 // Ignore whitespace entries as they'd match every test.
522 if (path.match(/^\s*$/)) 522 if (path.match(/^\s*$/))
523 continue; 523 continue;
524 524
525 var allTests = getAllTests(); 525 var allTests = getAllTests();
526 var hasAnyMatches = false;
526 for (var test in allTests) { 527 for (var test in allTests) {
527 if (caseInsensitiveContains(test, path)) { 528 if (caseInsensitiveContains(test, path)) {
528 tests.push(test); 529 tests[test] = 1;
530 hasAnyMatches = true;
529 } 531 }
530 } 532 }
533
534 // If a path doesn't match any tests, then assume it's a full path
535 // to a test that passes on all builders.
536 if (!hasAnyMatches) {
537 tests[path] = 1;
538 }
531 } 539 }
532 return tests; 540
541 var testsArray = [];
542 for (var test in tests) {
543 testsArray.push(test);
544 }
545 return testsArray;
533 } 546 }
534 547
535 function getAllTestsWithIncorrectExpectations() { 548 function getAllTestsWithIncorrectExpectations() {
536 return getAllTestsWithCondition(function(resultsForTest) { 549 return getAllTestsWithCondition(function(resultsForTest) {
537 return !resultsForTest.meetsExpectations; 550 return !resultsForTest.meetsExpectations;
538 }); 551 });
539 } 552 }
540 553
541 function getSlowTests() { 554 function getSlowTests() {
542 return getAllTestsWithCondition(isSlowTest); 555 return getAllTestsWithCondition(isSlowTest);
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 hideLegend(); 1940 hideLegend();
1928 hidePopup(); 1941 hidePopup();
1929 } 1942 }
1930 }, false); 1943 }, false);
1931 1944
1932 </script> 1945 </script>
1933 </head> 1946 </head>
1934 1947
1935 <body></body> 1948 <body></body>
1936 </html> 1949 </html>
OLDNEW
« 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