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

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

Issue 879233002: Fix deferred loading test for is checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/deferred_emit_type_checks_test.dart
diff --git a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
index f4f8295ba978f4d24833435cd3a4c43231254fc7..2976f7e5c6361802aaccfd7762a325443e2227d2 100644
--- a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
+++ b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
@@ -31,10 +31,10 @@ void main() {
String mainOutput = collector.getOutput('', 'js');
String deferredOutput = collector.getOutput('out_1', 'part.js');
String isPrefix = compiler.backend.namer.operatorIsPrefix;
- Expect.isTrue(deferredOutput.contains('${isPrefix}A: true'),
- "Deferred output doesn't contain '${isPrefix}A: true':\n"
+ Expect.isTrue(deferredOutput.contains('${isPrefix}A: 1'),
+ "Deferred output doesn't contain '${isPrefix}A: 1':\n"
"$deferredOutput");
- Expect.isFalse(mainOutput.contains('${isPrefix}A: true'));
+ Expect.isFalse(mainOutput.contains('${isPrefix}A: 1'));
}));
}
@@ -52,7 +52,9 @@ void main() {
""", "lib.dart": """
class A<T> {}
-A<A> instance = new A<A>();
+class B<T> implements A<T> {}
+
+B<B> instance = new B<B>();
bool f (Object o) {
return o is A<A>;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698