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

Side by Side Diff: test/runner/isolate_listener_test.dart

Issue 1027193004: Respect top-level @TestOn declarations. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Add another test. Created 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 @TestOn("vm")
6
5 import 'dart:async'; 7 import 'dart:async';
6 import 'dart:isolate'; 8 import 'dart:isolate';
7 9
8 import 'package:unittest/src/backend/invoker.dart'; 10 import 'package:unittest/src/backend/invoker.dart';
9 import 'package:unittest/src/backend/live_test.dart'; 11 import 'package:unittest/src/backend/live_test.dart';
10 import 'package:unittest/src/backend/state.dart'; 12 import 'package:unittest/src/backend/state.dart';
11 import 'package:unittest/src/backend/suite.dart'; 13 import 'package:unittest/src/backend/suite.dart';
12 import 'package:unittest/src/runner/vm/isolate_listener.dart'; 14 import 'package:unittest/src/runner/vm/isolate_listener.dart';
13 import 'package:unittest/src/runner/vm/isolate_test.dart'; 15 import 'package:unittest/src/runner/vm/isolate_test.dart';
14 import 'package:unittest/src/util/io.dart'; 16 import 'package:unittest/src/util/io.dart';
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 IsolateListener.start(sendPort, () => () { 371 IsolateListener.start(sendPort, () => () {
370 test("multiple errors", () { 372 test("multiple errors", () {
371 Invoker.current.addOutstandingCallback(); 373 Invoker.current.addOutstandingCallback();
372 new Future(() => throw "one"); 374 new Future(() => throw "one");
373 new Future(() => throw "two"); 375 new Future(() => throw "two");
374 new Future(() => throw "three"); 376 new Future(() => throw "three");
375 new Future(() => throw "four"); 377 new Future(() => throw "four");
376 }); 378 });
377 }); 379 });
378 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698