| 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 @TestOn("vm") | 5 @TestOn("vm") |
| 6 @Tags(const ["chrome"]) |
| 6 | 7 |
| 7 import 'dart:io'; | 8 import 'dart:io'; |
| 8 | 9 |
| 9 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
| 10 import 'package:test/src/backend/state.dart'; | 11 import 'package:test/src/backend/state.dart'; |
| 11 import 'package:test/src/backend/test_platform.dart'; | 12 import 'package:test/src/backend/test_platform.dart'; |
| 12 import 'package:test/src/runner/configuration.dart'; | 13 import 'package:test/src/runner/configuration.dart'; |
| 13 import 'package:test/src/runner/loader.dart'; | 14 import 'package:test/src/runner/loader.dart'; |
| 14 import 'package:test/src/util/io.dart'; | 15 import 'package:test/src/util/io.dart'; |
| 15 import 'package:test/test.dart'; | 16 import 'package:test/test.dart'; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 .toList(); | 162 .toList(); |
| 162 expect(suites, hasLength(1)); | 163 expect(suites, hasLength(1)); |
| 163 var loadSuite = suites.first; | 164 var loadSuite = suites.first; |
| 164 | 165 |
| 165 var liveTest = await loadSuite.group.entries.single.load(loadSuite); | 166 var liveTest = await loadSuite.group.entries.single.load(loadSuite); |
| 166 expect(liveTest.onPrint.first, completion(equals("print within test"))); | 167 expect(liveTest.onPrint.first, completion(equals("print within test"))); |
| 167 await liveTest.run(); | 168 await liveTest.run(); |
| 168 expectTestPassed(liveTest); | 169 expectTestPassed(liveTest); |
| 169 }); | 170 }); |
| 170 } | 171 } |
| OLD | NEW |