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

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

Issue 14052010: Fix broken test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index e3b314560436aca454d695c27304e9c4a29ec51b..a94185c37752725ea13411f9aa97d2b7020f4b5c 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -11,11 +11,19 @@ import 'dart:io';
import 'dart:isolate';
class MyListOfOneElement
- extends Object with ListMixin<int>, UnmodifiableListMixin {
+ extends Object with ListMixin<int> implements List<int> {
int _value;
MyListOfOneElement(this._value);
int get length => 1;
operator [](int index) => _value;
+ void set length(int index) { throw "Unsupported"; }
+ operator []=(int index, value) {
+ if (index != 0) {
+ throw "Unsupported";
+ } else {
+ _value = value;
+ }
+ }
}
class FileTest {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698