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

Unified Diff: tests/isolate/src/TestFramework.dart

Issue 8380003: Switch to new test framework. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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/isolate/src/TestFramework.dart
===================================================================
--- tests/isolate/src/TestFramework.dart (revision 626)
+++ tests/isolate/src/TestFramework.dart (working copy)
@@ -180,6 +180,15 @@
return result;
}
+ Promise completesWithValue(Promise promise, var expected) {
+ Promise result = new TestPromise(this);
+ promise.then((value) {
+ Expect.equals(expected, value);
+ result.complete(value);
+ });
+ return result;
+ }
+
Function runs0(Function fn) {
bool ran = false; // We only check that the function is executed once.
pendingCallbacks++;
« no previous file with comments | « no previous file | tests/stub-generator/src/MintMakerFullyIsolatedTest.dart » ('j') | tests/stub-generator/testcfg.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698