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 library test.runner.browser.suite; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:async/async.dart'; | 7 import 'package:async/async.dart'; |
10 | 8 |
11 import '../../backend/group.dart'; | 9 import '../../backend/group.dart'; |
12 import '../../backend/metadata.dart'; | 10 import '../../backend/metadata.dart'; |
13 import '../../backend/test.dart'; | 11 import '../../backend/test.dart'; |
14 import '../../backend/test_platform.dart'; | 12 import '../../backend/test_platform.dart'; |
15 import '../../util/multi_channel.dart'; | 13 import '../../util/multi_channel.dart'; |
16 import '../../util/remote_exception.dart'; | 14 import '../../util/remote_exception.dart'; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 /// Returns `null` if [test] is `null`. | 156 /// Returns `null` if [test] is `null`. |
159 Test _deserializeTest(MultiChannel suiteChannel, Map test, | 157 Test _deserializeTest(MultiChannel suiteChannel, Map test, |
160 [StackTraceMapper mapper]) { | 158 [StackTraceMapper mapper]) { |
161 if (test == null) return null; | 159 if (test == null) return null; |
162 | 160 |
163 var metadata = new Metadata.deserialize(test['metadata']); | 161 var metadata = new Metadata.deserialize(test['metadata']); |
164 var testChannel = suiteChannel.virtualChannel(test['channel']); | 162 var testChannel = suiteChannel.virtualChannel(test['channel']); |
165 return new IframeTest(test['name'], metadata, testChannel, | 163 return new IframeTest(test['name'], metadata, testChannel, |
166 mapper: mapper); | 164 mapper: mapper); |
167 } | 165 } |
OLD | NEW |