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

Unified Diff: utils/template/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/template/parser.dart ('k') | utils/tests/css/selector_literal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/uitest.dart
diff --git a/utils/template/uitest.dart b/utils/template/uitest.dart
index 55cce00911aa826ddd167be4e9a33637388111e5..12f33e2f4470b2c1d420d94ab0bc8cc5931844e8 100644
--- a/utils/template/uitest.dart
+++ b/utils/template/uitest.dart
@@ -391,7 +391,7 @@ void runTemplate([bool debug = false, bool parseOnly = false]) {
// Generate the Dart class(es) for all template(s).
// Pass in filename of 'foo' for testing in UITest.
code.add(Codegen.generate(templates, 'foo'));
- } catch (final htmlException) {
+ } catch (htmlException) {
// TODO(terry): TBD
print("ERROR unhandled EXCEPTION");
}
@@ -401,7 +401,7 @@ void runTemplate([bool debug = false, bool parseOnly = false]) {
if (!debug) {
try {
cssParseAndValidate(cssExpr, cssWorld);
- } catch (final cssException) {
+ } catch (cssException) {
templateValid = false;
dumpTree = cssException.toString();
}
@@ -416,14 +416,14 @@ void runTemplate([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/template/parser.dart ('k') | utils/tests/css/selector_literal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698