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

Unified Diff: pkg/scheduled_test/test/descriptor/nothing_test.dart

Issue 812253002: Delete a bunch of packages that are now on GitHub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Un-delete http Created 6 years 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
Index: pkg/scheduled_test/test/descriptor/nothing_test.dart
diff --git a/pkg/scheduled_test/test/descriptor/nothing_test.dart b/pkg/scheduled_test/test/descriptor/nothing_test.dart
deleted file mode 100644
index d31ffafb90131651751aebffcf20a84c156f898c..0000000000000000000000000000000000000000
--- a/pkg/scheduled_test/test/descriptor/nothing_test.dart
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2013, 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.
-
-import 'dart:io';
-
-import 'package:path/path.dart' as path;
-import 'package:scheduled_test/descriptor.dart' as d;
-import 'package:scheduled_test/scheduled_test.dart';
-
-import 'package:metatest/metatest.dart';
-import 'utils.dart';
-
-void main() => initTests(_test);
-
-void _test(message) {
- initMetatest(message);
-
- setUpTimeout();
-
- expectTestsPass("nothing().create() does nothing", () {
- test('test', () {
- scheduleSandbox();
-
- d.nothing('foo').create();
-
- schedule(() {
- expect(new File(path.join(sandbox, 'foo')).exists(),
- completion(isFalse));
- });
-
- schedule(() {
- expect(new Directory(path.join(sandbox, 'foo')).exists(),
- completion(isFalse));
- });
- });
- });
-
- expectTestsPass("nothing().validate() succeeds if nothing's there", () {
- test('test', () {
- scheduleSandbox();
-
- d.nothing('foo').validate();
- });
- });
-
- expectTestFails("nothing().validate() fails if there's a file", () {
- scheduleSandbox();
- d.file('name.txt', 'contents').create();
- d.nothing('name.txt').validate();
- }, (errors) {
- expect(errors.single, new isInstanceOf<ScheduleError>());
- expect(errors.single.error.toString(),
- matches(r"^Expected nothing to exist at '[^']+[\\/]name.txt', but "
- r"found a file\.$"));
- });
-
- expectTestFails("nothing().validate() fails if there's a directory", () {
- scheduleSandbox();
- d.dir('dir').create();
- d.nothing('dir').validate();
- }, (errors) {
- expect(errors.single, new isInstanceOf<ScheduleError>());
- expect(errors.single.error.toString(),
- matches(r"^Expected nothing to exist at '[^']+[\\/]dir', but found a "
- r"directory\.$"));
- });
-
- expectTestFails("nothing().validate() fails if there's a broken link", () {
- scheduleSandbox();
- schedule(() {
- new Link(path.join(sandbox, 'link')).createSync('nonexistent');
- });
- d.nothing('link').validate();
- }, (errors) {
- expect(errors.single, new isInstanceOf<ScheduleError>());
- expect(errors.single.error.toString(),
- matches(r"^Expected nothing to exist at '[^']+[\\/]link', but found "
- r"a link\.$"));
- });
-}
« no previous file with comments | « pkg/scheduled_test/test/descriptor/file_test.dart ('k') | pkg/scheduled_test/test/descriptor/pattern_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698