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

Unified Diff: utils/css/uitest.dart

Issue 10887023: Use new try-catch syntax in runtime/, tools/, and utils/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/css/parser.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/uitest.dart
diff --git a/utils/css/uitest.dart b/utils/css/uitest.dart
index 7f35c1a14f883057e5cff120de5b7733a8e8500b..12c6425daf05b35de08d6d30e224e6c7a1540343 100644
--- a/utils/css/uitest.dart
+++ b/utils/css/uitest.dart
@@ -32,7 +32,7 @@ void runCss([bool debug = false, bool parseOnly = false]) {
if (!debug) {
try {
cssParseAndValidate(cssExpr, cssWorld);
- } catch (final cssException) {
+ } catch (cssException) {
templateValid = false;
dumpTree = cssException.toString();
}
@@ -47,14 +47,14 @@ void runCss([bool debug = false, bool parseOnly = false]) {
stylesheetTree.add("\n============>Tree Dump<============\n");
stylesheetTree.add(stylesheet.toDebugString());
dumpTree = stylesheetTree.toString();
- } catch (final cssParseException) {
+ } catch (cssParseException) {
templateValid = false;
dumpTree = cssParseException.toString();
}
} else {
try {
dumpTree = cssParseAndValidateDebug(cssExpr, cssWorld);
- } catch (final cssException) {
+ } catch (cssException) {
templateValid = false;
dumpTree = cssException.toString();
}
« no previous file with comments | « utils/css/parser.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698