From 2d3c4998438e0de2d1e159023a79834e3a74e9e6 Mon Sep 17 00:00:00 2001 From: "jparent@chromium.org" Date: Tue, 22 Sep 2009 00:30:23 +0000 Subject: 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 --- webkit/tools/layout_tests/flakiness_dashboard.html | 32 ++++++++++++++++++++-- 1 file 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 @@ '
' + '
Show tests on all platforms (slow):
' + '