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

Unified Diff: tests/compiler/dart2js/jsinterop/world_test.dart

Issue 2863073003: Access NativeData only through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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
Index: tests/compiler/dart2js/jsinterop/world_test.dart
diff --git a/tests/compiler/dart2js/jsinterop/world_test.dart b/tests/compiler/dart2js/jsinterop/world_test.dart
index 1618d07ef0fbb5b21dab57579b04ef4ee27f885d..b25370dfb963770abfa2de3085357c40ff498710 100644
--- a/tests/compiler/dart2js/jsinterop/world_test.dart
+++ b/tests/compiler/dart2js/jsinterop/world_test.dart
@@ -116,26 +116,26 @@ $mainSource
Expect.equals(E.superclass, Object_);
Expect.equals(F.superclass, Object_);
- Expect.isFalse(backend.nativeData.isJsInteropClass(Object_));
- Expect.isTrue(backend.nativeData.isJsInteropClass(A));
- Expect.isTrue(backend.nativeData.isJsInteropClass(B));
- Expect.isTrue(backend.nativeData.isJsInteropClass(C));
- Expect.isTrue(backend.nativeData.isJsInteropClass(D));
- Expect.isFalse(backend.nativeData.isJsInteropClass(E));
- Expect.isFalse(backend.nativeData.isJsInteropClass(F));
-
- Expect.isFalse(backend.nativeData.isAnonymousJsInteropClass(Object_));
- Expect.isFalse(backend.nativeData.isAnonymousJsInteropClass(A));
- Expect.isFalse(backend.nativeData.isAnonymousJsInteropClass(B));
- Expect.isTrue(backend.nativeData.isAnonymousJsInteropClass(C));
- Expect.isTrue(backend.nativeData.isAnonymousJsInteropClass(D));
- Expect.isFalse(backend.nativeData.isAnonymousJsInteropClass(E));
- Expect.isFalse(backend.nativeData.isAnonymousJsInteropClass(F));
-
- Expect.equals('', backend.nativeData.getJsInteropClassName(A));
- Expect.equals('BClass', backend.nativeData.getJsInteropClassName(B));
- Expect.equals('', backend.nativeData.getJsInteropClassName(C));
- Expect.equals('', backend.nativeData.getJsInteropClassName(D));
+ Expect.isFalse(world.nativeData.isJsInteropClass(Object_));
+ Expect.isTrue(world.nativeData.isJsInteropClass(A));
+ Expect.isTrue(world.nativeData.isJsInteropClass(B));
+ Expect.isTrue(world.nativeData.isJsInteropClass(C));
+ Expect.isTrue(world.nativeData.isJsInteropClass(D));
+ Expect.isFalse(world.nativeData.isJsInteropClass(E));
+ Expect.isFalse(world.nativeData.isJsInteropClass(F));
+
+ Expect.isFalse(world.nativeData.isAnonymousJsInteropClass(Object_));
+ Expect.isFalse(world.nativeData.isAnonymousJsInteropClass(A));
+ Expect.isFalse(world.nativeData.isAnonymousJsInteropClass(B));
+ Expect.isTrue(world.nativeData.isAnonymousJsInteropClass(C));
+ Expect.isTrue(world.nativeData.isAnonymousJsInteropClass(D));
+ Expect.isFalse(world.nativeData.isAnonymousJsInteropClass(E));
+ Expect.isFalse(world.nativeData.isAnonymousJsInteropClass(F));
+
+ Expect.equals('', world.nativeData.getJsInteropClassName(A));
+ Expect.equals('BClass', world.nativeData.getJsInteropClassName(B));
+ Expect.equals('', world.nativeData.getJsInteropClassName(C));
+ Expect.equals('', world.nativeData.getJsInteropClassName(D));
for (String name in classEnvironment.keys) {
ClassElement cls = classEnvironment[name];
« no previous file with comments | « pkg/compiler/lib/src/universe/element_world_builder.dart ('k') | tests/compiler/dart2js/serialization/native_data_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698