Remove deprecated Resource class from dart:core.
BUG=
R=floitsch@google.com, mit@google.com
Review URL: https://codereview.chromium.org/2272373002 .
Committed: https://github.com/dart-lang/sdk/commit/f61143153a9aee2738bf3bf83d447e016f41e653
Committed: https://github.com/dart-lang/sdk/commit/35437dda1f8b120d4b241a0a4925071a16f42442
Committed: https://github.com/dart-lang/sdk/commit/99ec987a0932920fd82c0fcf493d968e2996b8e7
diff --git a/tests/html/resource_data.txt b/tests/html/resource_data.txt
deleted file mode 100644
index 37308e5..0000000
--- a/tests/html/resource_data.txt
+++ /dev/null
@@ -1 +0,0 @@
-This file was read by a Resource!
\ No newline at end of file
diff --git a/tests/html/resource_http_test.dart b/tests/html/resource_http_test.dart
deleted file mode 100644
index 042e8b3..0000000
--- a/tests/html/resource_http_test.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-library resource_http_test;
-import 'dart:async';
-import 'package:unittest/html_individual_config.dart';
-import 'package:unittest/unittest.dart';
-
-main() {
- useHtmlIndividualConfiguration();
- // Cache blocker is a workaround for:
- // https://code.google.com/p/dart/issues/detail?id=11834
- var cacheBlocker = new DateTime.now().millisecondsSinceEpoch;
- var url = '/root_dart/tests/html/resource_data.txt?cacheBlock=$cacheBlocker';
-
- void validateResponse(data) {
- expect(data, equals('This file was read by a Resource!'));
- }
-
- group('resource', () {
- test('readAsString', () async {
- Resource r = new Resource(url);
- var data = await r.readAsString();
- validateResponse(data);
- });
- test('readAsBytes', () async {
- Resource r = new Resource(url);
- var data = await r.readAsBytes();
- validateResponse(new String.fromCharCodes(data));
- });
- test('openRead', () async {
- Resource r = new Resource(url);
- var bytes = [];
- await for (var b in r.openRead()) {
- bytes.addAll(b);
- }
- validateResponse(new String.fromCharCodes(bytes));
- });
- });
-}