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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2995643002: Support jsinterop/world_test from .dill (Closed)
Patch Set: Created 3 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
Index: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index 9608e0068a349ea0646d79af1a419d2b970c3c51..b27cacbcc86ecc29823956ac04a6d785b643ea0b 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -30,9 +30,6 @@ import 'test_helpers.dart';
const Map<String, String> SOURCE = const <String, String>{
// Pretend this is a dart2js_native test to allow use of 'native' keyword.
'sdk/tests/compiler/dart2js_native/main.dart': r'''
-@JS()
-library test;
-
import 'dart:_foreign_helper' as foreign show JS;
import 'dart:_foreign_helper' hide JS;
import 'dart:_js_helper';
@@ -44,8 +41,8 @@ import 'dart:html_common';
import 'dart:math';
import 'dart:typed_data';
import 'dart:web_sql';
-import 'package:js/js.dart';
import 'helper.dart';
+import 'jsinterop.dart';
main() {
testEmpty();
@@ -698,12 +695,20 @@ testMixinInstantiation() => new Sub();
testNamedMixinInstantiation() => new NamedMixin();
testGenericMixinInstantiation() => new GenericSub<int, String>();
testGenericNamedMixinInstantiation() => new GenericNamedMixin<int, String>();
+''',
+ 'sdk/tests/compiler/dart2js_native/jsinterop.dart': '''
+@JS()
+library jsinterop;
+
+import 'package:js/js.dart';
@JS()
external int testJsInteropMethod();
@JS()
class JsInteropClass {
+ external JsInteropClass();
+
@JS()
external double method();
}

Powered by Google App Engine
This is Rietveld 408576698