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); |