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

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

Issue 10113007: We must use the original element and not the default implementation element when checking if the co… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « no previous file | lib/compiler/implementation/ssa/builder.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
===================================================================
--- frog/tests/leg/src/BuiltinInterceptorTest.dart (revision 6727)
+++ frog/tests/leg/src/BuiltinInterceptorTest.dart (working copy)
@@ -24,6 +24,12 @@
}
""";
+final String TEST_FOUR = @"""
+foo() {
+ return new List().add(2);
+}
+""";
+
main() {
String generated = compile(TEST_ONE, 'foo');
Expect.isTrue(generated.contains("return a.length;"));
@@ -33,4 +39,7 @@
generated = compile(TEST_THREE, 'foo');
Expect.isTrue(generated.contains("return 3;"));
+
+ generated = compile(TEST_FOUR, 'foo');
+ Expect.isTrue(generated.contains("push(2);"));
}
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698