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

Side by Side Diff: utils/tests/pub/test_pub.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded test expectations. Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/root_source.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub 6 * Test infrastructure for testing pub. Unlike typical unit tests, most pub
7 * tests are integration tests that stage some stuff on the file system, run 7 * tests are integration tests that stage some stuff on the file system, run
8 * pub, and then validate the results. This library provides an API to build 8 * pub, and then validate the results. This library provides an API to build
9 * tests like that. 9 * tests like that.
10 */ 10 */
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 1109 }
1110 1110
1111 /** 1111 /**
1112 * Validates that the `.tar.gz` file at [path] contains the expected contents. 1112 * Validates that the `.tar.gz` file at [path] contains the expected contents.
1113 */ 1113 */
1114 Future validate(String path) { 1114 Future validate(String path) {
1115 throw "TODO(nweiz): implement this"; 1115 throw "TODO(nweiz): implement this";
1116 } 1116 }
1117 1117
1118 Future delete(dir) { 1118 Future delete(dir) {
1119 throw new UnsupportedOperationException(''); 1119 throw new UnsupportedError('');
1120 } 1120 }
1121 1121
1122 /** 1122 /**
1123 * Loads the contents of this tar file. 1123 * Loads the contents of this tar file.
1124 */ 1124 */
1125 InputStream load(List<String> path) { 1125 InputStream load(List<String> path) {
1126 if (!path.isEmpty()) { 1126 if (!path.isEmpty()) {
1127 var joinedPath = Strings.join(path, '/'); 1127 var joinedPath = Strings.join(path, '/');
1128 throw "Can't load $joinedPath from within $name: not a directory."; 1128 throw "Can't load $joinedPath from within $name: not a directory.";
1129 } 1129 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 } 1201 }
1202 1202
1203 /** 1203 /**
1204 * Schedules a callback to be called after Pub is run with [runPub], even if it 1204 * Schedules a callback to be called after Pub is run with [runPub], even if it
1205 * fails. 1205 * fails.
1206 */ 1206 */
1207 void _scheduleCleanup(_ScheduledEvent event) { 1207 void _scheduleCleanup(_ScheduledEvent event) {
1208 if (_scheduledCleanup == null) _scheduledCleanup = []; 1208 if (_scheduledCleanup == null) _scheduledCleanup = [];
1209 _scheduledCleanup.add(event); 1209 _scheduledCleanup.add(event);
1210 } 1210 }
OLDNEW
« no previous file with comments | « utils/pub/root_source.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698