| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 addGroup('transform/all_phases_test.dart', all_phases_test.main); | 44 addGroup('transform/all_phases_test.dart', all_phases_test.main); |
| 45 | 45 |
| 46 endToEndTests('data/unit/', 'data/out'); | 46 endToEndTests('data/unit/', 'data/out'); |
| 47 | 47 |
| 48 // Note: if you're adding more render test suites, make sure to update run.sh | 48 // Note: if you're adding more render test suites, make sure to update run.sh |
| 49 // as well for convenient baseline diff/updating. | 49 // as well for convenient baseline diff/updating. |
| 50 | 50 |
| 51 // TODO(jmesserly): figure out why this fails in content_shell but works in | 51 // TODO(jmesserly): figure out why this fails in content_shell but works in |
| 52 // Dartium and Firefox when using the ShadowDOM polyfill. | 52 // Dartium and Firefox when using the ShadowDOM polyfill. |
| 53 exampleTest('../example/component/news', ['--no-shadowdom']..addAll(args)); | 53 exampleTest('../example/component/news', ['--no-shadowdom']..addAll(args)); |
| 54 | |
| 55 exampleTest('../../../samples/third_party/todomvc'); | |
| 56 } | 54 } |
| 57 | 55 |
| 58 void exampleTest(String path, [List<String> args]) { | 56 void exampleTest(String path, [List<String> args]) { |
| 59 renderTests(path, '$path/test', '$path/test/expected', '$path/test/out', | 57 renderTests(path, '$path/test', '$path/test/expected', '$path/test/out', |
| 60 arguments: args); | 58 arguments: args); |
| 61 } | 59 } |
| 62 | 60 |
| 63 void cssCompileMangleTest(String path, String pattern, | 61 void cssCompileMangleTest(String path, String pattern, |
| 64 [bool deleteDirectory = true]) { | 62 [bool deleteDirectory = true]) { |
| 65 renderTests(path, path, '$path/expected', '$path/out', | 63 renderTests(path, path, '$path/expected', '$path/out', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 arguments: args, pattern: pattern, deleteDir: deleteDirectory); | 75 arguments: args, pattern: pattern, deleteDir: deleteDirectory); |
| 78 } | 76 } |
| 79 | 77 |
| 80 void cssCompileShadowDOMTest(String path, String pattern, | 78 void cssCompileShadowDOMTest(String path, String pattern, |
| 81 [bool deleteDirectory = true]) { | 79 [bool deleteDirectory = true]) { |
| 82 var args = ['--no-css']; | 80 var args = ['--no-css']; |
| 83 renderTests(path, path, '$path/expected', '$path/out', | 81 renderTests(path, path, '$path/expected', '$path/out', |
| 84 arguments: args, pattern: pattern, | 82 arguments: args, pattern: pattern, |
| 85 deleteDir: deleteDirectory); | 83 deleteDir: deleteDirectory); |
| 86 } | 84 } |
| OLD | NEW |