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 /** This file is sourced by both dom_config.dart and html_config.dart. */ | 5 /** This file is sourced by both dom_config.dart and html_config.dart. */ |
6 | 6 |
7 /** Creates a table showing tests results in HTML. */ | 7 /** Creates a table showing tests results in HTML. */ |
8 void _showResultsInPage(int passed, int failed, int errors, | 8 void _showResultsInPage(int passed, int failed, int errors, |
9 List<TestCase> results, bool isLayoutTest, String uncaughtError) { | 9 List<TestCase> results, bool isLayoutTest, String uncaughtError) { |
10 if (isLayoutTest && (passed == results.length) && uncaughtError == null) { | 10 if (isLayoutTest && (passed == results.length) && uncaughtError == null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 return html; | 71 return html; |
72 } | 72 } |
73 | 73 |
74 //TODO(pquitslund): Move to a common lib | 74 //TODO(pquitslund): Move to a common lib |
75 String _htmlEscape(String string) { | 75 String _htmlEscape(String string) { |
76 return string.replaceAll('&', '&') | 76 return string.replaceAll('&', '&') |
77 .replaceAll('<','<') | 77 .replaceAll('<','<') |
78 .replaceAll('>','>'); | 78 .replaceAll('>','>'); |
79 } | 79 } |
OLD | NEW |