OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | |
7 import 'dart:io'; | 6 import 'dart:io'; |
8 | 7 |
9 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
10 import 'package:pub/src/exit_codes.dart' as exit_codes; | 9 import 'package:pub/src/exit_codes.dart' as exit_codes; |
11 import 'package:pub/src/io.dart'; | 10 import 'package:pub/src/io.dart'; |
12 import 'package:scheduled_test/scheduled_stream.dart'; | 11 import 'package:scheduled_test/scheduled_stream.dart'; |
13 import 'package:scheduled_test/scheduled_test.dart'; | 12 import 'package:scheduled_test/scheduled_test.dart'; |
14 | 13 |
15 import 'descriptor.dart' as d; | 14 import 'descriptor.dart' as d; |
16 import 'test_pub.dart'; | 15 import 'test_pub.dart'; |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 void _touch(String path) { | 412 void _touch(String path) { |
414 schedule(() async { | 413 schedule(() async { |
415 // Delay a bit to make sure the modification times are noticeably different. | 414 // Delay a bit to make sure the modification times are noticeably different. |
416 // 1s seems to be the finest granularity that dart:io reports. | 415 // 1s seems to be the finest granularity that dart:io reports. |
417 await new Future.delayed(new Duration(seconds: 1)); | 416 await new Future.delayed(new Duration(seconds: 1)); |
418 | 417 |
419 path = p.join(sandboxDir, "myapp", path); | 418 path = p.join(sandboxDir, "myapp", path); |
420 touch(path); | 419 touch(path); |
421 }, "touching $path"); | 420 }, "touching $path"); |
422 } | 421 } |
OLD | NEW |