| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/', '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 | |
| 56 exampleTest('../../../samples/third_party/todomvc'); | |
| 57 } | 55 } |
| 58 | 56 |
| 59 void exampleTest(String path, [List args]) { | 57 void exampleTest(String path, [List args]) { |
| 60 // TODO(sigmund): renderTests currently contatenates [path] with the out | 58 // TODO(sigmund): renderTests currently contatenates [path] with the out |
| 61 // 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 |
| 62 // above, which has '../../../'). If we continue running tests with | 60 // above, which has '../../../'). If we continue running tests with |
| 63 // 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 |
| 64 // 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 |
| 65 // in the source-tree. | 63 // in the source-tree. |
| 66 renderTests(path, '$path/test', '$path/test/expected', | 64 renderTests(path, '$path/test', '$path/test/expected', |
| 67 'data/out/example/test', arguments: args); | 65 'data/out/example/test', arguments: args); |
| 68 } | 66 } |
| OLD | NEW |