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

Unified Diff: dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart

Issue 23523003: Address a number of issues related to computation of currentScript and deferred loading. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add tests Created 7 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: dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart
diff --git a/dart/tests/lib/mirrors/unnamed_library_test.dart b/dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart
similarity index 66%
copy from dart/tests/lib/mirrors/unnamed_library_test.dart
copy to dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart
index 1e81eaab1284ae5b7f1d4973bfc114ce4572c471..db44fc6d8e67e5bd4c761450c1652c47473f92b3 100644
--- a/dart/tests/lib/mirrors/unnamed_library_test.dart
+++ b/dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart
@@ -2,14 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// No library declaration.
-
-import 'dart:mirrors';
-
import 'package:expect/expect.dart';
-class C {}
+import 'dart:_isolate_helper';
main() {
- Expect.equals(const Symbol(""), reflectClass(C).owner.simpleName);
+ Expect.isTrue(IsolateNatives.isD8);
+ Expect.isFalse(IsolateNatives.isJsshell);
}

Powered by Google App Engine
This is Rietveld 408576698