Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1080)

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart

Issue 429883002: Remove support for the DeferredLibrary annotation and remove tests of it (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Deprecated until sdk 1.8 remove cruft from unused DeferredLibrary Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 163234c9ad1eca254cc4a94dee5e69f5d0f58f40..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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.
-
-import 'package:async_helper/async_helper.dart';
-import 'package:expect/expect.dart';
-
-import 'dart:async';
-
-@lazy import 'deferred_class_library.dart';
-
-const lazy = const DeferredLibrary('deferred_class_library');
-
-main() {
- var x;
- Expect.throws(() => const MyClass());
- Expect.throws(() => const Constant(42));
- Expect.throws(() => const [const Constant(42)]);
- int counter = 0;
- asyncStart();
- lazy.load().then((bool didLoad) {
- Expect.isTrue(didLoad);
- Expect.equals(1, ++counter);
- print('deferred_class_library was loaded');
- x = const MyClass();
- Expect.equals(42, x.foo(87));
- Expect.listEquals(const [const Constant(42)], [new Constant(42)]);
- asyncEnd();
- });
- Expect.equals(0, counter);
- Expect.isNull(x);
- asyncStart();
- lazy.load().then((bool didLoad) {
- Expect.isFalse(didLoad);
- Expect.equals(2, ++counter);
- print('deferred_class_library was loaded');
- x = const MyClass();
- Expect.equals(42, x.foo(87));
- Expect.listEquals(const [const Constant(42)], [new Constant(42)]);
- asyncEnd();
- });
- Expect.equals(0, counter);
- Expect.isNull(x);
- Expect.throws(() => const Constant(42));
- Expect.throws(() => const [const Constant(42)]);
- Expect.isNull(x);
-}

Powered by Google App Engine
This is Rietveld 408576698