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.iframe_test; | |
6 | |
7 import '../../backend/group.dart'; | 5 import '../../backend/group.dart'; |
8 import '../../backend/live_test.dart'; | 6 import '../../backend/live_test.dart'; |
9 import '../../backend/live_test_controller.dart'; | 7 import '../../backend/live_test_controller.dart'; |
10 import '../../backend/metadata.dart'; | 8 import '../../backend/metadata.dart'; |
11 import '../../backend/operating_system.dart'; | 9 import '../../backend/operating_system.dart'; |
12 import '../../backend/state.dart'; | 10 import '../../backend/state.dart'; |
13 import '../../backend/suite.dart'; | 11 import '../../backend/suite.dart'; |
14 import '../../backend/test.dart'; | 12 import '../../backend/test.dart'; |
15 import '../../backend/test_platform.dart'; | 13 import '../../backend/test_platform.dart'; |
16 import '../../utils.dart'; | 14 import '../../utils.dart'; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return controller.liveTest; | 87 return controller.liveTest; |
90 } | 88 } |
91 | 89 |
92 Test forPlatform(TestPlatform platform, {OperatingSystem os}) { | 90 Test forPlatform(TestPlatform platform, {OperatingSystem os}) { |
93 if (!metadata.testOn.evaluate(platform, os: os)) return null; | 91 if (!metadata.testOn.evaluate(platform, os: os)) return null; |
94 return new IframeTest( | 92 return new IframeTest( |
95 name, metadata.forPlatform(platform, os: os), _channel, | 93 name, metadata.forPlatform(platform, os: os), _channel, |
96 mapper: _mapper); | 94 mapper: _mapper); |
97 } | 95 } |
98 } | 96 } |
OLD | NEW |