Chromium Code Reviews

Unified Diff: pkg/barback/test/package_graph/repetition_test.dart

Issue 808713003: Remove barback from the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: pkg/barback/test/package_graph/repetition_test.dart
diff --git a/pkg/barback/test/package_graph/repetition_test.dart b/pkg/barback/test/package_graph/repetition_test.dart
deleted file mode 100644
index 48462d8d5e1a874dc722e191fde9ee1334c2e9a3..0000000000000000000000000000000000000000
--- a/pkg/barback/test/package_graph/repetition_test.dart
+++ /dev/null
@@ -1,76 +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.
-
-library barback.test.package_graph.transform_test;
-
-import 'package:barback/src/utils.dart';
-import 'package:scheduled_test/scheduled_test.dart';
-
-import '../utils.dart';
-
-// This tests the behavior of barback under many operations happening in quick
-// succession. Since Barback is so asynchronous, it's easy for it to have subtle
-// dependencies on the commonly-used and -tested usage patterns. These tests
-// exist to stress-test less-common usage patterns in order to root out
-// additional bugs.
-
-main() {
- initConfig();
-
- test("updates sources many times", () {
- initGraph(["app|foo.txt"], {
- "app": [[new RewriteTransformer("txt", "out")]]
- });
-
- for (var i = 0; i < 1000; i++) {
- updateSources(["app|foo.txt"]);
- }
-
- expectAsset("app|foo.out", "foo.out");
- buildShouldSucceed();
- });
-
- test("updates and then removes sources many times", () {
- initGraph(["app|foo.txt"], {
- "app": [[new RewriteTransformer("txt", "out")]]
- });
-
- for (var i = 0; i < 1000; i++) {
- updateSources(["app|foo.txt"]);
- removeSources(["app|foo.txt"]);
- }
-
- expectNoAsset("app|foo.out");
- expectNoAsset("app|foo.txt");
- buildShouldSucceed();
- });
-
- test("updates transformers many times", () {
- var rewrite = new RewriteTransformer("txt", "out");
- initGraph(["app|foo.txt"], {"app": [[rewrite]]});
- updateSources(["app|foo.txt"]);
-
- for (var i = 0; i < 1000; i++) {
- updateTransformers("app", [[rewrite]]);
- }
-
- expectAsset("app|foo.out", "foo.out");
- buildShouldSucceed();
- });
-
- test("updates and removes transformers many times", () {
- var rewrite = new RewriteTransformer("txt", "out");
- initGraph(["app|foo.txt"], {"app": [[rewrite]]});
- updateSources(["app|foo.txt"]);
-
- for (var i = 0; i < 1000; i++) {
- updateTransformers("app", [[rewrite]]);
- updateTransformers("app", [[]]);
- }
-
- expectAsset("app|foo.txt", "foo");
- expectNoAsset("app|foo.out");
- buildShouldSucceed();
- });
-}
« no previous file with comments | « pkg/barback/test/package_graph/many_parallel_transformers_test.dart ('k') | pkg/barback/test/package_graph/source_test.dart » ('j') | no next file with comments »

Powered by Google App Engine