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

Unified Diff: tests/html/url_test.dart

Issue 13845015: Update tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/html/typed_arrays_range_checks_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/url_test.dart
diff --git a/tests/html/url_test.dart b/tests/html/url_test.dart
index 2b9c710d92fd20c6c86d00c5e6616827ff4c3169..1c168a6c558cded48125d10cf386b4777bc31306 100644
--- a/tests/html/url_test.dart
+++ b/tests/html/url_test.dart
@@ -24,7 +24,7 @@ main() {
var byteString = window.atob(dataUri.split(',')[1]);
var mimeString = dataUri.split(',')[0].split(':')[1].split(';')[0];
- var arrayBuffer = new ByteBuffer(byteString.length);
+ var arrayBuffer = new Uint8List(byteString.length);
var dataArray = new Uint8List.view(arrayBuffer);
for (var i = 0; i < byteString.length; i++) {
dataArray[i] = byteString.codeUnitAt(i);
« no previous file with comments | « tests/html/typed_arrays_range_checks_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698