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

Unified Diff: lib/unittest/unittest.dart

Issue 10441104: New expectation functions plus convert old tests to use these. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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: lib/unittest/unittest.dart
===================================================================
--- lib/unittest/unittest.dart (revision 8082)
+++ lib/unittest/unittest.dart (working copy)
@@ -12,9 +12,7 @@
*
* * Tests: Tests are specified via the top-level function [test], they can be
* organized together using [group].
- * * Checks: Test expectations can be specified via [expect] (see methods in
- * [Expectation]), [expectThrow], or using assertions with the [Expect]
- * class.
+ * * Checks: Test expectations can be specified via [expect]
* * Configuration: The framework can be adapted by calling [configure] with a
* [Configuration]. Common configurations can be found in this package
* under: 'dom\_config.dart', 'html\_config.dart', and 'vm\_config.dart'.
@@ -125,8 +123,17 @@
#import('dart:isolate');
+#source('collection_matchers.dart');
#source('config.dart');
-#source('expectation.dart');
+#source('core_matchers.dart');
+#source('description.dart');
+#source('expect.dart');
+#source('interfaces.dart');
+#source('map_matchers.dart');
+#source('matcher.dart');
+#source('numeric_matchers.dart');
+#source('operator_matchers.dart');
+#source('string_matchers.dart');
#source('test_case.dart');
/** [Configuration] used by the unittest library. */
@@ -179,9 +186,6 @@
/** If set, then all other test cases will be ignored. */
TestCase _soloTest;
-/** Creates an expectation for the given value. */
-Expectation expect(value) => new Expectation(value);
-
/**
* Evaluates the [function] and validates that it throws an exception. If
* [callback] is provided, then it will be invoked with the thrown exception.

Powered by Google App Engine
This is Rietveld 408576698