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

Side by Side Diff: tests/isolate/global_error_handler_stream_test.dart

Issue 12516015: Add library tags so that the tests work in dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 test;
6
5 import 'dart:async'; 7 import 'dart:async';
6 import 'dart:isolate'; 8 import 'dart:isolate';
7 9
8 var firstFunction; 10 var firstFunction;
9 var finishFunction; 11 var finishFunction;
10 12
11 void runFunctions() { 13 void runFunctions() {
12 try { 14 try {
13 firstFunction(); 15 firstFunction();
14 } catch (e) { 16 } catch (e) {
(...skipping 21 matching lines...) Expand all
36 var timer; 38 var timer;
37 StreamSink otherIsolate = streamSpawnFunction(runTest, globalErrorHandler); 39 StreamSink otherIsolate = streamSpawnFunction(runTest, globalErrorHandler);
38 otherIsolate.add(box.sink); 40 otherIsolate.add(box.sink);
39 otherIsolate.close(); 41 otherIsolate.close();
40 box.stream.single.then((msg) { 42 box.stream.single.then((msg) {
41 box.stream.close(); 43 box.stream.close();
42 timer.cancel(); 44 timer.cancel();
43 }); 45 });
44 timer = new Timer(const Duration(seconds: 2), () { throw "failed"; }); 46 timer = new Timer(const Duration(seconds: 2), () { throw "failed"; });
45 } 47 }
OLDNEW
« no previous file with comments | « tests/isolate/global_error_handler_stream2_test.dart ('k') | tests/isolate/global_error_handler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698