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.browser_manager; | 5 library test.runner.browser.browser_manager; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 | 9 |
10 import 'package:http_parser/http_parser.dart'; | 10 import 'package:http_parser/http_parser.dart'; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 await new Future.error( | 132 await new Future.error( |
133 new LoadException(path, asyncError.error), | 133 new LoadException(path, asyncError.error), |
134 asyncError.stackTrace); | 134 asyncError.stackTrace); |
135 } | 135 } |
136 | 136 |
137 return new Suite(response["tests"].map((test) { | 137 return new Suite(response["tests"].map((test) { |
138 var testMetadata = new Metadata.deserialize(test['metadata']); | 138 var testMetadata = new Metadata.deserialize(test['metadata']); |
139 var testChannel = suiteChannel.virtualChannel(test['channel']); | 139 var testChannel = suiteChannel.virtualChannel(test['channel']); |
140 return new IframeTest(test['name'], testMetadata, testChannel, | 140 return new IframeTest(test['name'], testMetadata, testChannel, |
141 mapper: mapper); | 141 mapper: mapper); |
142 }), metadata: metadata, path: path, onClose: () => closeIframe()); | 142 }), platform: browser, metadata: metadata, path: path, |
| 143 onClose: () => closeIframe()); |
143 } | 144 } |
144 } | 145 } |
OLD | NEW |