7134a451f3
A lot of files in this one, but nothing interesting in any of the tests. Change-Id: I69c705bfd2c2b2f9711b393e4ac78c357336e1a7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407660 Commit-Queue: Lasse Nielsen <lrn@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com> Auto-Submit: Bob Nystrom <rnystrom@google.com>
28 lines
847 B
Dart
28 lines
847 B
Dart
// Copyright (c) 2016, 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.
|
|
|
|
import "package:expect/async_helper.dart";
|
|
import "package:expect/expect.dart";
|
|
|
|
import "default.dart"
|
|
if (dart.library.io) "io.dart"
|
|
if (dart.library.html) "html.dart"
|
|
deferred as d
|
|
show value;
|
|
|
|
void main() async {
|
|
asyncStart();
|
|
final io = const String.fromEnvironment("dart.library.io") == "true";
|
|
final html = const String.fromEnvironment("dart.library.html") == "true";
|
|
await d.loadLibrary().timeout(const Duration(seconds: 5));
|
|
if (io) {
|
|
Expect.equals("io", d.value);
|
|
} else if (html) {
|
|
Expect.equals("html", d.value);
|
|
} else {
|
|
Expect.equals("default", d.value);
|
|
}
|
|
asyncEnd();
|
|
}
|