| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
| 6 * This is a helper for run.sh. We try to run all of the Dart code in one | 6 * This is a helper for run.sh. We try to run all of the Dart code in one |
| 7 * instance of the Dart VM to reduce warm-up time. | 7 * instance of the Dart VM to reduce warm-up time. |
| 8 */ | 8 */ |
| 9 library run_impl; | 9 library run_impl; |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 addGroup('compiler_test.dart', compiler_test.main); | 37 addGroup('compiler_test.dart', compiler_test.main); |
| 38 addGroup('css_test.dart', css_test.main); | 38 addGroup('css_test.dart', css_test.main); |
| 39 addGroup('utils_test.dart', utils_test.main); | 39 addGroup('utils_test.dart', utils_test.main); |
| 40 addGroup('transform/code_extractor_test.dart', code_extractor_test.main); | 40 addGroup('transform/code_extractor_test.dart', code_extractor_test.main); |
| 41 addGroup('transform/import_inliner_test.dart', import_inliner_test.main); | 41 addGroup('transform/import_inliner_test.dart', import_inliner_test.main); |
| 42 addGroup('transform/script_compactor_test.dart', script_compactor_test.main); | 42 addGroup('transform/script_compactor_test.dart', script_compactor_test.main); |
| 43 addGroup('transform/polyfill_injector_test.dart', | 43 addGroup('transform/polyfill_injector_test.dart', |
| 44 polyfill_injector_test.main); | 44 polyfill_injector_test.main); |
| 45 addGroup('transform/all_phases_test.dart', all_phases_test.main); | 45 addGroup('transform/all_phases_test.dart', all_phases_test.main); |
| 46 | 46 |
| 47 endToEndTests('data/unit/', 'data/out'); | 47 endToEndTests('data/unit/web', 'data/out'); |
| 48 | 48 |
| 49 // Note: if you're adding more render test suites, make sure to update run.sh | 49 // Note: if you're adding more render test suites, make sure to update run.sh |
| 50 // as well for convenient baseline diff/updating. | 50 // as well for convenient baseline diff/updating. |
| 51 | 51 |
| 52 // TODO(jmesserly): figure out why this fails in content_shell but works in | 52 // TODO(jmesserly): figure out why this fails in content_shell but works in |
| 53 // Dartium and Firefox when using the ShadowDOM polyfill. | 53 // Dartium and Firefox when using the ShadowDOM polyfill. |
| 54 exampleTest('../example/component/news', ['--no-shadowdom']..addAll(args)); | 54 exampleTest('../example/component/news', ['--no-shadowdom']..addAll(args)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void exampleTest(String path, [List args]) { | 57 void exampleTest(String path, [List args]) { |
| 58 // TODO(sigmund): renderTests currently contatenates [path] with the out | 58 // TODO(sigmund): renderTests currently contatenates [path] with the out |
| 59 // folder. This can be a problem with relative paths that go up (like todomvc | 59 // folder. This can be a problem with relative paths that go up (like todomvc |
| 60 // above, which has '../../../'). If we continue running tests with | 60 // above, which has '../../../'). If we continue running tests with |
| 61 // test/run.sh, we should fix this. For now we work around this problem by | 61 // test/run.sh, we should fix this. For now we work around this problem by |
| 62 // using a long path 'data/out/example/test'. That way we avoid dumping output | 62 // using a long path 'data/out/example/test'. That way we avoid dumping output |
| 63 // in the source-tree. | 63 // in the source-tree. |
| 64 renderTests(path, '$path/test', '$path/test/expected', | 64 renderTests(path, '$path/test', '$path/test/expected', |
| 65 'data/out/example/test', arguments: args); | 65 'data/out/example/test', arguments: args); |
| 66 } | 66 } |
| OLD | NEW |