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

Unified Diff: dart/tests/compiler/dart2js_native/only_pass_on_jsshell_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
« no previous file with comments | « dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js_native/only_pass_on_jsshell_test.dart
diff --git a/dart/tests/lib/mirrors/unnamed_library_test.dart b/dart/tests/compiler/dart2js_native/only_pass_on_jsshell_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_jsshell_test.dart
index 1e81eaab1284ae5b7f1d4973bfc114ce4572c471..8bb481142f242164cf315de7d56081a6fb28c979 100644
--- a/dart/tests/lib/mirrors/unnamed_library_test.dart
+++ b/dart/tests/compiler/dart2js_native/only_pass_on_jsshell_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.isFalse(IsolateNatives.isD8);
+ Expect.isTrue(IsolateNatives.isJsshell);
}
« no previous file with comments | « dart/tests/compiler/dart2js_native/only_pass_on_d8_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698