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

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

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (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
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 88c7c7838f4852367bd3d4e93cf862180c685fe7..9b444920e024195eec1cf98aaf072999fdda813a 100644
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+#import("dart:math");
+
#source("../../../runtime/bin/websocket.dart");
#source("../../../runtime/bin/websocket_impl.dart");
@@ -165,7 +167,7 @@ void testFragmentedMessages() {
bool firstFrame = true;
bool lastFrame = false;
while (!lastFrame) {
- int payloadSize = Math.min(fragmentSize, remaining);
+ int payloadSize = min(fragmentSize, remaining);
lastFrame = payloadSize == remaining;
List<int> frame = createFrame(lastFrame,
firstFrame ? opcode : 0x00,

Powered by Google App Engine
This is Rietveld 408576698