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

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

Issue 10836241: Move unittest from lib to pkg. (Closed) Base URL: http://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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/pubspec_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | 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 */
11 #library('test_pub'); 11 #library('test_pub');
12 12
13 #import('dart:io'); 13 #import('dart:io');
14 #import('dart:isolate'); 14 #import('dart:isolate');
15 #import('dart:json'); 15 #import('dart:json');
16 #import('dart:uri'); 16 #import('dart:uri');
17 17
18 #import('../../../lib/unittest/unittest.dart'); 18 #import('../../../pkg/unittest/unittest.dart');
19 #import('../../lib/file_system.dart', prefix: 'fs'); 19 #import('../../lib/file_system.dart', prefix: 'fs');
20 #import('../../pub/io.dart'); 20 #import('../../pub/io.dart');
21 #import('../../pub/utils.dart'); 21 #import('../../pub/utils.dart');
22 #import('../../pub/yaml/yaml.dart'); 22 #import('../../pub/yaml/yaml.dart');
23 23
24 /** 24 /**
25 * Creates a new [FileDescriptor] with [name] and [contents]. 25 * Creates a new [FileDescriptor] with [name] and [contents].
26 */ 26 */
27 FileDescriptor file(Pattern name, String contents) => 27 FileDescriptor file(Pattern name, String contents) =>
28 new FileDescriptor(name, contents); 28 new FileDescriptor(name, contents);
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 } 811 }
812 812
813 /** 813 /**
814 * Schedules a callback to be called after Pub is run with [runPub], even if it 814 * Schedules a callback to be called after Pub is run with [runPub], even if it
815 * fails. 815 * fails.
816 */ 816 */
817 void _scheduleCleanup(_ScheduledEvent event) { 817 void _scheduleCleanup(_ScheduledEvent event) {
818 if (_scheduledCleanup == null) _scheduledCleanup = []; 818 if (_scheduledCleanup == null) _scheduledCleanup = [];
819 _scheduledCleanup.add(event); 819 _scheduledCleanup.add(event);
820 } 820 }
OLDNEW
« no previous file with comments | « utils/tests/pub/pubspec_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698