Update the file filter in DumpRenderTree (and DumpRenderTree2) so that
we run tests in .xhtml files. Change-Id: I2af0bd29acef5bafa9dee9292aafc18d77a84080
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user