Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: utils/testrunner/layout_test_runner.dart

Issue 11033042: Change imports etc to new syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698