summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjparent@chromium.org <jparent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 00:30:23 +0000
committerjparent@chromium.org <jparent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 00:30:23 +0000
commit2d3c4998438e0de2d1e159023a79834e3a74e9e6 (patch)
tree690eeb8a63ea22a6c3082e4e569d5b599c68eff4
parent6e3785e255862f1c927b040ef9603e05dc36dde1 (diff)
downloadchromium_src-2d3c4998438e0de2d1e159023a79834e3a74e9e6.zip
chromium_src-2d3c4998438e0de2d1e159023a79834e3a74e9e6.tar.gz
chromium_src-2d3c4998438e0de2d1e159023a79834e3a74e9e6.tar.bz2
Update flakiness dashboard to accept directories in the test list for individual tests view. You can mix and match individual tests and directories.
TEST=manual BUG=none Review URL: http://codereview.chromium.org/211047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26770 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/tools/layout_tests/flakiness_dashboard.html32
1 files changed, 30 insertions, 2 deletions
diff --git a/webkit/tools/layout_tests/flakiness_dashboard.html b/webkit/tools/layout_tests/flakiness_dashboard.html
index fe45eb0..c39d396 100644
--- a/webkit/tools/layout_tests/flakiness_dashboard.html
+++ b/webkit/tools/layout_tests/flakiness_dashboard.html
@@ -229,7 +229,7 @@
if (currentState.tests) {
createTableHeadersArray('builder');
- generatePageForIndividualTests(currentState.tests.split(','));
+ generatePageForIndividualTests(getIndividualTests());
} else {
createTableHeadersArray('test');
generatePageForBuilder(currentState.builder);
@@ -448,6 +448,34 @@
}
/**
+ * Returns an array of tests to be displayed in the individual tests view.
+ * Note that a directory can be listed as a test, so we expand that into all
+ * tests in the directory.
+ */
+ function getIndividualTests() {
+ if (!currentState.tests) {
+ return [];
+ }
+ var testList = currentState.tests.split(',');
+ var tests = [];
+ for (var i = 0; i < testList.length; i++) {
+ var path = testList[i];
+ if (!isDirectory(path)) {
+ tests.push(path);
+ } else {
+ // Loop over all tests and find the ones that are in the directory.
+ var allTests = getAllTests();
+ for (var test in allTests) {
+ if (stringContains(test, path)) {
+ tests.push(test);
+ }
+ }
+ }
+ }
+ return tests;
+ }
+
+ /**
* Adds all the tests for the given builder to the testMapToPopulate.
*/
function addTestsForBuilder(builder, testMapToPopulate) {
@@ -1125,7 +1153,7 @@
'<form id=tests-form ' +
'onsubmit="setState(\'tests\', tests.value);return false;">' +
'<div>Show tests on all platforms (slow): </div><input name=tests ' +
- 'placeholder="LayoutTests/foo/bar.html,LayoutTests/foo/baz.html" ' +
+ 'placeholder="LayoutTests/foo/bar.html,LayoutTests/foo/baz" ' +
'id=tests-input></form>' +
'<form id=max-results-form ' +
'onsubmit="setState(\'maxResults\', maxResults.value);return false;"' +