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

Unified Diff: test/loader_test.dart

Issue 934413002: Replace the existing unittest APIs with the new runner infrastructure. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 10 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
« no previous file with comments | « test/late_exception_test.dart ('k') | test/matcher/completion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/loader_test.dart
diff --git a/test/loader_test.dart b/test/loader_test.dart
index 47197fbf02ab2cdb37de3d4891eb62e9d9d11996..9ef3f6e33082c7c93d0b24ff9fafa4136f882e72 100644
--- a/test/loader_test.dart
+++ b/test/loader_test.dart
@@ -2,8 +2,6 @@
// 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.
-library unittest.loader;
-
import 'dart:io';
import 'package:path/path.dart' as p;
@@ -23,10 +21,9 @@ import 'dart:async';
import 'package:unittest/unittest.dart';
void main() {
- var declarer = Zone.current[#unittest.declarer];
- declarer.test("success", () {});
- declarer.test("failure", () => throw new TestFailure('oh no'));
- declarer.test("error", () => throw 'oh no');
+ test("success", () {});
+ test("failure", () => throw new TestFailure('oh no'));
+ test("error", () => throw 'oh no');
}
""";
« no previous file with comments | « test/late_exception_test.dart ('k') | test/matcher/completion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698