| OLD | NEW |
| 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 import 'package:stream_channel/stream_channel.dart'; | 5 import 'package:stream_channel/stream_channel.dart'; |
| 6 | 6 |
| 7 import '../backend/group.dart'; | 7 import '../backend/group.dart'; |
| 8 import '../backend/live_test.dart'; | 8 import '../backend/live_test.dart'; |
| 9 import '../backend/live_test_controller.dart'; | 9 import '../backend/live_test_controller.dart'; |
| 10 import '../backend/metadata.dart'; | 10 import '../backend/metadata.dart'; |
| 11 import '../backend/operating_system.dart'; | 11 import '../backend/operating_system.dart'; |
| 12 import '../backend/state.dart'; | 12 import '../backend/state.dart'; |
| 13 import '../backend/suite.dart'; | 13 import '../backend/suite.dart'; |
| 14 import '../backend/test.dart'; | 14 import '../backend/test.dart'; |
| 15 import '../backend/test_platform.dart'; | 15 import '../backend/test_platform.dart'; |
| 16 import '../util/remote_exception.dart'; |
| 16 import '../utils.dart'; | 17 import '../utils.dart'; |
| 17 import '../util/remote_exception.dart'; | |
| 18 | 18 |
| 19 typedef StackTrace _MapTrace(StackTrace trace); | 19 typedef StackTrace _MapTrace(StackTrace trace); |
| 20 | 20 |
| 21 /// A test running remotely, controlled by a stream channel. | 21 /// A test running remotely, controlled by a stream channel. |
| 22 class RunnerTest extends Test { | 22 class RunnerTest extends Test { |
| 23 final String name; | 23 final String name; |
| 24 final Metadata metadata; | 24 final Metadata metadata; |
| 25 | 25 |
| 26 /// The channel used to communicate with the test's [IframeListener]. | 26 /// The channel used to communicate with the test's [IframeListener]. |
| 27 final MultiChannel _channel; | 27 final MultiChannel _channel; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 }, groups: groups); | 84 }, groups: groups); |
| 85 return controller.liveTest; | 85 return controller.liveTest; |
| 86 } | 86 } |
| 87 | 87 |
| 88 Test forPlatform(TestPlatform platform, {OperatingSystem os}) { | 88 Test forPlatform(TestPlatform platform, {OperatingSystem os}) { |
| 89 if (!metadata.testOn.evaluate(platform, os: os)) return null; | 89 if (!metadata.testOn.evaluate(platform, os: os)) return null; |
| 90 return new RunnerTest( | 90 return new RunnerTest( |
| 91 name, metadata.forPlatform(platform, os: os), _channel, _mapTrace); | 91 name, metadata.forPlatform(platform, os: os), _channel, _mapTrace); |
| 92 } | 92 } |
| 93 } | 93 } |
| OLD | NEW |