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

Unified Diff: pkg/unittest/test/runtests_without_tests_test.dart

Issue 524153002: Sharing metatest logic between unittest and scheduled_test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: status fixes 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: pkg/unittest/test/runtests_without_tests_test.dart
diff --git a/pkg/unittest/test/runtests_without_tests_test.dart b/pkg/unittest/test/runtests_without_tests_test.dart
index b4c9512263c07867333b7f216a55acf584222c6a..4257ddaa381e305f0480e3a47144b80623ae23c8 100644
--- a/pkg/unittest/test/runtests_without_tests_test.dart
+++ b/pkg/unittest/test/runtests_without_tests_test.dart
@@ -2,19 +2,18 @@
// 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 unittestTest;
-
-import 'dart:async';
-import 'dart:isolate';
+library unittest.runtests_without_tests;
import 'package:unittest/unittest.dart';
-part 'utils.dart';
+import 'package:metatest/metatest.dart';
-var testName = 'runTests() without tests';
+void main() => initTests(_test);
-var testFunction = (_) {
- runTests();
-};
+void _test(message) {
+ initMetatest(message);
-var expected = buildStatusString(0, 0, 0, null);
+ expectTestResults('runTests() without tests', () {
+ group('no tests', () {});
+ }, []);
+}
« no previous file with comments | « pkg/unittest/test/returning_future_using_runasync_test.dart ('k') | pkg/unittest/test/setup_and_teardown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698