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

Unified Diff: frog/tests/leg/src/BuiltinInterceptorTest.dart

Issue 9293006: Refactoring of string literals. Implement static string addition. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 11 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 | « frog/leg/util/characters.dart ('k') | frog/tests/leg/src/ConstantFoldingTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/BuiltinInterceptorTest.dart
diff --git a/frog/tests/leg/src/BuiltinInterceptorTest.dart b/frog/tests/leg/src/BuiltinInterceptorTest.dart
index a5d617cf35a137cdcda32158f2d812f81b604566..0c69ead0f6441655778362b0b99d617eda4841d7 100644
--- a/frog/tests/leg/src/BuiltinInterceptorTest.dart
+++ b/frog/tests/leg/src/BuiltinInterceptorTest.dart
@@ -26,11 +26,9 @@ main() {
String generated = compile(TEST_ONE, 'foo');
Expect.isTrue(generated.contains("return a.length;"));
- // TODO(lrn): Switch these two to isTrue when we support constant folding
- // of string length.
generated = compile(TEST_TWO, 'foo');
- Expect.isFalse(generated.contains("return 3;"));
+ Expect.isTrue(generated.contains("return 3;"));
generated = compile(TEST_THREE, 'foo');
- Expect.isFalse(generated.contains("return 3;"));
+ Expect.isTrue(generated.contains("return 3;"));
}
« no previous file with comments | « frog/leg/util/characters.dart ('k') | frog/tests/leg/src/ConstantFoldingTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698