Update the file filter in DumpRenderTree (and DumpRenderTree2) so that

we run tests in .xhtml files.

Change-Id: I2af0bd29acef5bafa9dee9292aafc18d77a84080
This commit is contained in:
Ben Murdoch
2010-07-09 10:40:22 +01:00
parent 2b2fa12cd0
commit 177eb38ef5
2 changed files with 7 additions and 4 deletions

View File

@@ -77,7 +77,9 @@ public class FsUtils {
continue;
}
if ((s.toLowerCase().endsWith(".html") || s.toLowerCase().endsWith(".xml"))
if ((s.toLowerCase().endsWith(".html")
|| s.toLowerCase().endsWith(".xml")
|| s.toLowerCase().endsWith(".xhtml"))
&& !s.endsWith("TEMPLATE.html")) {
Log.v(LOGTAG, "Recording " + s);
bos.write(s.getBytes());

View File

@@ -227,13 +227,14 @@ public class FileFilter {
}
/**
* Checks if the file is a test or something else.
* Checks if the file is a test.
* Currently we run .html and .xhtml tests.
*
* @param testName
* @return
* if the file is a test
*/
public static boolean isTestFile(String testName) {
return testName.endsWith(".html");
return testName.endsWith(".html") || testName.endsWith(".xhtml");
}
}
}