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

Unified Diff: utils/testrunner/utils.dart

Issue 10914049: Added support for layout render tests. These use expected values for the text render output from Du… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/testrunner/testrunner.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/utils.dart
===================================================================
--- utils/testrunner/utils.dart (revision 11963)
+++ utils/testrunner/utils.dart (working copy)
@@ -100,3 +100,15 @@
var f = new File(fname);
f.deleteSync();
}
+
+/** Get the name of the layout render file for a test. */
+String layoutFileName(String testname) =>
+ testname.replaceAll(new RegExp('\.dart\$'), '.render');
+
+/** Check if a test is a layout render test. renders.
+ */
+bool isLayoutRenderTest(String testname) {
+ var layoutname = layoutFileName(testname);
+ var f = new File(layoutname);
+ return f.existsSync();
+}
« no previous file with comments | « utils/testrunner/testrunner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698