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

Unified Diff: tests/compiler/dart2js/type_inference_test.dart

Issue 10871071: - Change "static final" to "static const" in the tests/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « tests/compiler/dart2js/type_inference5_test.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_inference_test.dart
===================================================================
--- tests/compiler/dart2js/type_inference_test.dart (revision 11349)
+++ tests/compiler/dart2js/type_inference_test.dart (working copy)
@@ -4,7 +4,7 @@
#import("compiler_helper.dart");
-final String TEST_ONE = @"""
+const String TEST_ONE = @"""
sum(param0, param1) {
var sum = 0;
for (var i = param0; i < param1; i += 1) sum = sum + i;
@@ -12,13 +12,13 @@
}
""";
-final String TEST_TWO = @"""
+const String TEST_TWO = @"""
foo(int param0) {
return -param0;
}
""";
-final String TEST_TWO_WITH_BAILOUT = @"""
+const String TEST_TWO_WITH_BAILOUT = @"""
foo(int param0) {
for (int i = 0; i < 1; i++) {
param0 = -param0;
@@ -27,27 +27,27 @@
}
""";
-final String TEST_THREE = @"""
+const String TEST_THREE = @"""
foo(c) {
for (int i = 0; i < 10; i++) print(c[i]);
}
""";
-final String TEST_FOUR = @"""
+const String TEST_FOUR = @"""
foo(String c) {
print(c[0]); // Force a type guard.
while (true) print(c.length);
}
""";
-final String TEST_FIVE = @"""
+const String TEST_FIVE = @"""
foo(a) {
a[0] = 1;
print(a[1]);
}
""";
-final String TEST_FIVE_WITH_BAILOUT = @"""
+const String TEST_FIVE_WITH_BAILOUT = @"""
foo(a) {
for (int i = 0; i < 1; i++) {
a[0] = 1;
@@ -56,7 +56,7 @@
}
""";
-final String TEST_SIX = @"""
+const String TEST_SIX = @"""
foo(a) {
print(a[0]);
while (true) {
« no previous file with comments | « tests/compiler/dart2js/type_inference5_test.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698