Index: tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart |
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart |
index 86abb36c05fe9766c7b4896936ecde3f4f7253e7..f27bf45149aaa0b9715d3cdb2f08fa012ca40f8c 100644 |
--- a/tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart |
+++ b/tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart |
@@ -2,35 +2,13 @@ |
// 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/expect.dart"; |
import 'dart:async'; |
@lazy import 'deferred_class_library.dart'; |
const lazy = const DeferredLibrary('deferred_class_library'); |
-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"; |
- } |
- |
- static void isNull(x) => expect.equals(null, x); |
-} |
- |
main() { |
var x; |
// TODO(ahe): What are the semantics of this: |