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

Unified Diff: utils/testrunner/layout_test_controller.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/template/codegen.dart ('k') | utils/tests/pub/install/git/check_out_and_update_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/layout_test_controller.dart
diff --git a/utils/testrunner/layout_test_controller.dart b/utils/testrunner/layout_test_controller.dart
index 986e6681cbe9e39943862372e5141d3c6490c60c..8dedf11d1874bc8b451b1afe8216629d617eeca7 100644
--- a/utils/testrunner/layout_test_controller.dart
+++ b/utils/testrunner/layout_test_controller.dart
@@ -164,7 +164,7 @@ runTextLayoutTest(testNum) {
var expectedFileName =
'$sourceDir${Platform.pathSeparator}'
'${label.replaceAll("###", "_")
- .replaceAll(new RegExp("[^A-Za-z0-9]"),"_")}.txt';
+ .replaceAll(const RegExp("[^A-Za-z0-9]"),"_")}.txt';
var expected = new File(expectedFileName);
if (regenerate) {
var ostream = expected.openOutputStream(FileMode.WRITE);
@@ -260,7 +260,7 @@ runPixelLayoutTest(int testNum) {
var expectedFileName =
'$sourceDir${Platform.pathSeparator}'
'${label.replaceAll("###","_").
- replaceAll(new RegExp("[^A-Za-z0-9]"),"_")}.png';
+ replaceAll(const RegExp("[^A-Za-z0-9]"),"_")}.png';
var expected = new File(expectedFileName);
if (regenerate) {
var ostream = expected.openOutputStream(FileMode.WRITE);
« no previous file with comments | « utils/template/codegen.dart ('k') | utils/tests/pub/install/git/check_out_and_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698