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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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_close_test.dart ('k') | tests/standalone/io/socket_many_connections_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/socket_exception_test.dart
diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart
index 8708a4c06161efb795bc98d7fefd70e0b4c9e7ff..fe5399f0e3b37e7d9f6ffc92774fdb9f57339272 100644
--- a/tests/standalone/io/socket_exception_test.dart
+++ b/tests/standalone/io/socket_exception_test.dart
@@ -68,7 +68,7 @@ class SocketExceptionTest {
Expect.equals(true, !wrongExceptionCaught);
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.readList(buffer, 0 , 10);
} on SocketIOException catch(ex) {
exceptionCaught = true;
@@ -79,7 +79,7 @@ class SocketExceptionTest {
Expect.equals(true, !wrongExceptionCaught);
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.writeList(buffer, 0, 10);
} on SocketIOException catch(ex) {
exceptionCaught = true;
@@ -90,7 +90,7 @@ class SocketExceptionTest {
Expect.equals(true, !wrongExceptionCaught);
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(42);
+ List<int> buffer = new List<int>.fixedLength(42);
input.readInto(buffer, 0, 12);
} on SocketIOException catch(ex) {
exceptionCaught = true;
@@ -101,7 +101,7 @@ class SocketExceptionTest {
Expect.equals(true, !wrongExceptionCaught);
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(42);
+ List<int> buffer = new List<int>.fixedLength(42);
output.writeFrom(buffer, 0, 12);
} on SocketIOException catch(ex) {
exceptionCaught = true;
@@ -126,7 +126,7 @@ class SocketExceptionTest {
client.onConnect = () {
Expect.equals(true, client != null);
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.readList(buffer, -1, 1);
} on RangeError catch (ex) {
exceptionCaught = true;
@@ -138,7 +138,7 @@ class SocketExceptionTest {
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.readList(buffer, 0, -1);
} on RangeError catch (ex) {
exceptionCaught = true;
@@ -150,7 +150,7 @@ class SocketExceptionTest {
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.writeList(buffer, -1, 1);
} on RangeError catch (ex) {
exceptionCaught = true;
@@ -162,7 +162,7 @@ class SocketExceptionTest {
exceptionCaught = false;
try {
- List<int> buffer = new List<int>(10);
+ List<int> buffer = new List<int>.fixedLength(10);
client.writeList(buffer, 0, -1);
} on RangeError catch (ex) {
exceptionCaught = true;
« no previous file with comments | « tests/standalone/io/socket_close_test.dart ('k') | tests/standalone/io/socket_many_connections_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698