| Index: tests/standalone/io/web_socket_protocol_processor_test.dart
|
| diff --git a/tests/standalone/io/web_socket_protocol_processor_test.dart b/tests/standalone/io/web_socket_protocol_processor_test.dart
|
| index 6ab0da9fe143e6279ea50bd7f0ffd7ccf1f2ff12..c017f508a575cad7fd88d1c4855992771bd680dc 100644
|
| --- a/tests/standalone/io/web_socket_protocol_processor_test.dart
|
| +++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
|
| @@ -75,7 +75,7 @@ List<int> createFrame(bool fin,
|
| frameSize += count;
|
| // No masking.
|
| assert(maskingKey == null);
|
| - List<int> frame = new List<int>.fixedLength(frameSize);
|
| + List<int> frame = new List<int>(frameSize);
|
| int frameIndex = 0;
|
| frame[frameIndex++] = (fin ? 0x80 : 0x00) | opcode;
|
| if (count < 126) {
|
| @@ -136,7 +136,7 @@ void testFullMessages() {
|
|
|
| void runTest(int from, int to, int step) {
|
| for (int messageLength = from; messageLength < to; messageLength += step) {
|
| - List<int> message = new List<int>.fixedLength(messageLength);
|
| + List<int> message = new List<int>(messageLength);
|
| for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
|
| testMessage(FRAME_OPCODE_TEXT, message);
|
| testMessage(FRAME_OPCODE_BINARY, message);
|
| @@ -202,7 +202,7 @@ void testFragmentedMessages() {
|
|
|
| void runTest(int from, int to, int step) {
|
| for (int messageLength = from; messageLength < to; messageLength += step) {
|
| - List<int> message = new List<int>.fixedLength(messageLength);
|
| + List<int> message = new List<int>(messageLength);
|
| for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
|
| testMessageFragmentation(FRAME_OPCODE_TEXT, message);
|
| testMessageFragmentation(FRAME_OPCODE_BINARY, message);
|
|
|