Index: tests/compiler/dart2js_extra/deferred/deferred_function_test.dart |
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart |
index c19a4534b48ef6af064a9e3af738ce77814d66e4..c5980fb6c18a1e4aa546635cca4a40621bc9d33b 100644 |
--- a/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart |
+++ b/tests/compiler/dart2js_extra/deferred/deferred_function_test.dart |
@@ -5,6 +5,7 @@ |
// Test that loading of a library (with top-level functions only) can |
// be deferred. |
+import "package:expect/expect.dart"; |
import 'dart:async'; |
@lazy import 'deferred_function_library.dart'; |
@@ -12,27 +13,6 @@ const lazy = const DeferredLibrary('deferred_function_library'); |
isNoSuchMethodError(e) => e is NoSuchMethodError; |
-class Expect { |
- static void isTrue(x) => Expect.equals(true, x); |
- |
- static void isFalse(x) => Expect.equals(false, x); |
- |
- static void equals(expected, actual) { |
- if (expected != actual) { |
- throw "Not equal. Expected: $expected. Got: $actual"; |
- } |
- } |
- static void throws(fun, [test]) { |
- try { |
- fun(); |
- } catch (e) { |
- if (!test(e)) throw "doesn't satisfy exception test"; |
- return; |
- } |
- throw "didn't throw"; |
- } |
-} |
- |
main() { |
print('unittest-suite-wait-for-done'); |