ef0c812b0d
To test the loading logic, I created sample modular test folders which also illustrate what modular tests will look like in the future. Change-Id: Iaa8e076e5be66107391d258f5c72456c89841123 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101780 Commit-Queue: Sigmund Cherem <sigmund@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
16 lines
492 B
Dart
16 lines
492 B
Dart
// Copyright (c) 2019, 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 'dart:io';
|
|
|
|
import 'package:expect/expect.dart';
|
|
import 'package:async_helper/async_helper.dart';
|
|
import 'package:modular_test/src/find_sdk_root.dart';
|
|
|
|
main() {
|
|
asyncTest(() async {
|
|
Expect.equals(Platform.script.resolve("../../../"), await findRoot());
|
|
});
|
|
}
|