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

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

Issue 10153005: unittest step 3 and 4: remove TestFramework.dart, make test.dart use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « tests/isolate/src/Isolate2NegativeTest.dart ('k') | tests/isolate/src/IsolateComplexMessagesTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/Isolate3NegativeTest.dart
diff --git a/tests/isolate/src/Isolate3NegativeTest.dart b/tests/isolate/src/Isolate3NegativeTest.dart
index c123d0e1d0370f7c17ad408be29de8dba29e5377..d8a02136be73bbb3a26184d02a7e598b1f79f1dd 100644
--- a/tests/isolate/src/Isolate3NegativeTest.dart
+++ b/tests/isolate/src/Isolate3NegativeTest.dart
@@ -7,7 +7,7 @@
#library('Isolate3NegativeTest');
#import('dart:isolate');
-#import('TestFramework.dart');
+#import('../../../lib/unittest/unittest.dart');
class TestClass {
TestClass.named(num this.fld1) : fld2=fld1 {
@@ -28,16 +28,14 @@ class Isolate3NegativeTest extends Isolate {
}
}
-void test(TestExpectation expect) {
- void msg_callback(var message) {
- // This test is a negative test and should not complete successfully.
- }
- void spawn_callback(SendPort port) {
- port.call("foo").then(expect.runs1(msg_callback));
- }
- expect.completes(new Isolate3NegativeTest().spawn()).then(spawn_callback);
-}
-
main() {
- runTests([test]);
+ test("child isolate compilation errors propagate correctly. ", () {
+ void msg_callback(var message) {
+ // This test is a negative test and should not complete successfully.
+ }
+ void spawn_callback(SendPort port) {
+ port.call("foo").then(expectAsync(msg_callback));
+ }
+ new Isolate3NegativeTest().spawn().then(expectAsync(spawn_callback));
+ });
}
« no previous file with comments | « tests/isolate/src/Isolate2NegativeTest.dart ('k') | tests/isolate/src/IsolateComplexMessagesTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698