| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library isolate_bad_class_test; | 5 library isolate_bad_class_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
| 9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 main() { | 41 main() { |
| 42 var process = new TestLauncher('unknown_isolate_command_script.dart'); | 42 var process = new TestLauncher('unknown_isolate_command_script.dart'); |
| 43 process.launch().then((port) { | 43 process.launch().then((port) { |
| 44 var test = new IsolateListTest(port); | 44 var test = new IsolateListTest(port); |
| 45 test.makeRequest().then((_) { | 45 test.makeRequest().then((_) { |
| 46 var badCollectionRequest = | 46 var badCollectionRequest = |
| 47 new BadCollectionTest(port, test._isolateId, | 47 new BadCollectionTest(port, test._isolateId, |
| 48 'classes').makeRequest(); | 48 'foobar').makeRequest(); |
| 49 var nullCollectionRequest = | 49 var nullCollectionRequest = |
| 50 new NullCollectionTest(port, test._isolateId, | 50 new NullCollectionTest(port, test._isolateId, |
| 51 'classes').makeRequest(); | 51 'classes').makeRequest(); |
| 52 var requests = Future.wait([badCollectionRequest, nullCollectionRequest]); | 52 var requests = Future.wait([badCollectionRequest, nullCollectionRequest]); |
| 53 requests.then((_) { | 53 requests.then((_) { |
| 54 process.requestExit(); | 54 process.requestExit(); |
| 55 }); | 55 }); |
| 56 }); | 56 }); |
| 57 }); | 57 }); |
| 58 } | 58 } |
| OLD | NEW |