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

Side by Side Diff: dart/pkg/unittest/html_print.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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 part of unittest;
2
3 // 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
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 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. */
8 6
9 /** Creates a table showing tests results in HTML. */ 7 /** Creates a table showing tests results in HTML. */
10 void _showResultsInPage(int passed, int failed, int errors, 8 void _showResultsInPage(int passed, int failed, int errors,
11 List<TestCase> results, bool isLayoutTest, String uncaughtError) { 9 List<TestCase> results, bool isLayoutTest, String uncaughtError) {
12 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
72 70
73 return html; 71 return html;
74 } 72 }
75 73
76 //TODO(pquitslund): Move to a common lib 74 //TODO(pquitslund): Move to a common lib
77 String _htmlEscape(String string) { 75 String _htmlEscape(String string) {
78 return string.replaceAll('&', '&amp;') 76 return string.replaceAll('&', '&amp;')
79 .replaceAll('<','&lt;') 77 .replaceAll('<','&lt;')
80 .replaceAll('>','&gt;'); 78 .replaceAll('>','&gt;');
81 } 79 }
OLDNEW
« no previous file with comments | « dart/pkg/unittest/html_layout_config.dart ('k') | dart/pkg/unittest/interactive_html_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698