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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 var asyncError = RemoteException.deserialize(response["error"]); | 57 var asyncError = RemoteException.deserialize(response["error"]); |
58 return new Future.error( | 58 return new Future.error( |
59 new LoadException(path, asyncError.error), | 59 new LoadException(path, asyncError.error), |
60 asyncError.stackTrace); | 60 asyncError.stackTrace); |
61 } | 61 } |
62 | 62 |
63 return new Suite(response["tests"].map((test) { | 63 return new Suite(response["tests"].map((test) { |
64 var metadata = new Metadata.deserialize(test['metadata']); | 64 var metadata = new Metadata.deserialize(test['metadata']); |
65 var testChannel = suiteChannel.virtualChannel(test['channel']); | 65 var testChannel = suiteChannel.virtualChannel(test['channel']); |
66 return new IframeTest(test['name'], metadata, testChannel); | 66 return new IframeTest(test['name'], metadata, testChannel); |
67 }), path: path, platform: "Chrome"); | 67 }), path: path); |
68 }); | 68 }); |
69 } | 69 } |
70 } | 70 } |
OLD | NEW |