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

Unified Diff: tests/standalone/io/socket_invalid_arguments_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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 | « tests/standalone/io/socket_exception_test.dart ('k') | tests/standalone/out_of_memory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/socket_invalid_arguments_test.dart
diff --git a/tests/standalone/io/socket_invalid_arguments_test.dart b/tests/standalone/io/socket_invalid_arguments_test.dart
index 4a3d0a6c4c10f69c7f9441d9c359ac039c4385c5..68a0219e4e47dbd8f7e95c50e87376b9d2fc796b 100644
--- a/tests/standalone/io/socket_invalid_arguments_test.dart
+++ b/tests/standalone/io/socket_invalid_arguments_test.dart
@@ -25,7 +25,7 @@ testReadList(buffer, offset, length) {
var server = new ServerSocket("127.0.0.1", 0, 5);
var s = new Socket("127.0.0.1", server.port);
s.onConnect = () {
- try { s.readList(buffer, offset, length); } catch (var e) {}
+ try { s.readList(buffer, offset, length); } catch (e) {}
s.close();
};
s.onError = (e) => null;
@@ -35,7 +35,7 @@ testWriteList(buffer, offset, length) {
var server = new ServerSocket("127.0.0.1", 0, 5);
var s = new Socket("127.0.0.1", server.port);
s.onConnect = () {
- try { s.writeList(buffer, offset, length); } catch (var e) {}
+ try { s.writeList(buffer, offset, length); } catch (e) {}
s.close();
};
s.onError = (e) => null;
@@ -47,7 +47,7 @@ testServerSocketCreation(address, port, backlog) {
server = new ServerSocket(address, port, backlog);
server.onError = (e) => null;
server.onConnection = (c) => Expect.fail("Shouldn't get connection");
- } catch (var e) {
+ } catch (e) {
// ignore
}
}
« no previous file with comments | « tests/standalone/io/socket_exception_test.dart ('k') | tests/standalone/out_of_memory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698