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

Unified Diff: client/testing/unittest/unittest_vm.dart

Issue 9802015: Move unittest into lib, and put it into the SDK. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 9 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 | « client/testing/unittest/unittest_node.dart ('k') | client/tests/client/dom/AsyncWindowTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/testing/unittest/unittest_vm.dart
===================================================================
--- client/testing/unittest/unittest_vm.dart (revision 5951)
+++ client/testing/unittest/unittest_vm.dart (working copy)
@@ -1,54 +0,0 @@
-// Copyright (c) 2012, 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.
-
-/**
- * A simple unit test library for running tests on the VM.
- */
-#library('unittest');
-
-#import('dart:io');
-#source('shared.dart');
-
-_platformInitialize() {
- // Do nothing.
-}
-
-_platformDefer(void callback()) {
- new Timer(0, (timer) {
- callback();
- });
-}
-
-_platformStartTests() {
- // Do nothing.
-}
-
-_platformCompleteTests(int testsPassed, int testsFailed, int testsErrors) {
- // Print each test's result.
- for (final test in _tests) {
- print('${test.result.toUpperCase()}: ${test.description}');
-
- if (test.message != '') {
- print(' ${test.message}');
- }
- }
-
- // Show the summary.
- print('');
-
- var success = false;
- if (testsPassed == 0 && testsFailed == 0 && testsErrors == 0) {
- print('No tests found.');
- // This is considered a failure too: if this happens you probably have a
- // bug in your unit tests.
- } else if (testsFailed == 0 && testsErrors == 0) {
- print('All $testsPassed tests passed.');
- success = true;
- } else {
- print('$testsPassed PASSED, $testsFailed FAILED, $testsErrors ERRORS');
- }
-
- // A non-zero exit code is used by the test infrastructure to detect failure.
- if (!success) exit(1);
-}
« no previous file with comments | « client/testing/unittest/unittest_node.dart ('k') | client/tests/client/dom/AsyncWindowTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698