Chromium Code Reviews| 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 // The filters must be set by the caller that #sources this file. | 5 // The filters must be set by the caller that #sources this file. |
| 6 List includeFilters; | 6 List includeFilters; |
| 7 | |
| 8 // dart2js is not handling 'part of' properly yet; when it does uncomment this. | |
|
Siggi Cherem (dart-lang)
2012/10/05 21:37:51
nit: write as TODO(gram): ...
| |
| 9 //part of layout_test; | |
| 10 | |
| 7 List excludeFilters; | 11 List excludeFilters; |
| 8 | 12 |
| 9 class LayoutTestConfiguration extends unittest.Configuration { | 13 class LayoutTestConfiguration extends unittest.Configuration { |
| 10 get autoStart => false; | 14 get autoStart => false; |
| 11 void onTestResult(unittest.TestCase testCase) { | 15 void onTestResult(unittest.TestCase testCase) { |
| 12 window.postMessage('done', '*'); // Unblock DRT | 16 window.postMessage('done', '*'); // Unblock DRT |
| 13 } | 17 } |
| 14 } | 18 } |
| 15 | 19 |
| 16 filterTest(t) { | 20 filterTest(t) { |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 47 window.postMessage('done', '*'); // Unblock DRT | 51 window.postMessage('done', '*'); // Unblock DRT |
| 48 } else { | 52 } else { |
| 49 var name = unittest.testCases[testNum].description; | 53 var name = unittest.testCases[testNum].description; |
| 50 print('#TEST $name'); | 54 print('#TEST $name'); |
| 51 unittest.filterTests(name); | 55 unittest.filterTests(name); |
| 52 // Run the test. | 56 // Run the test. |
| 53 print('Tests - ${unittest.testCases.length}'); | 57 print('Tests - ${unittest.testCases.length}'); |
| 54 unittest.runTests(); | 58 unittest.runTests(); |
| 55 } | 59 } |
| 56 } | 60 } |
| OLD | NEW |