0a3ed33abd
This is a reland of 77a7ca98a2
Original change's description:
> Migrate test batch 226 to Dart 2.0
>
> Specifically skipped formatting these files, since there are tests that depend
> on non-standard source formatting.
>
> Bug:
> Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
> Reviewed-on: https://dart-review.googlesource.com/3440
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Change-Id: I083c07c08333909aaf5bce763601445ff9f0413f
Reviewed-on: https://dart-review.googlesource.com/3920
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
22 lines
622 B
Dart
22 lines
622 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// 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.
|
|
|
|
// Test the local IsolateMirror.
|
|
|
|
library test.local_isolate_test;
|
|
|
|
import 'dart:mirrors';
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
class Foo {}
|
|
|
|
void main() {
|
|
LibraryMirror rootLibrary = reflectClass(Foo).owner;
|
|
IsolateMirror isolate = currentMirrorSystem().isolate;
|
|
Expect.isTrue(isolate.debugName is String);
|
|
Expect.isTrue(isolate.isCurrent);
|
|
Expect.equals(rootLibrary, isolate.rootLibrary);
|
|
}
|