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

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

Issue 49223004: Revise several already-committed CLs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/barback/lib/src/pool.dart ('k') | sdk/lib/_internal/pub/lib/src/barback.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index cd9844049aaa42e72676ea80d4cbcf517d1bc47a..48462d8d5e1a874dc722e191fde9ee1334c2e9a3 100644
--- a/pkg/barback/test/package_graph/repetition_test.dart
+++ b/pkg/barback/test/package_graph/repetition_test.dart
@@ -9,6 +9,12 @@ 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();
@@ -45,7 +51,7 @@ main() {
initGraph(["app|foo.txt"], {"app": [[rewrite]]});
updateSources(["app|foo.txt"]);
- for (var i = 0; i < 1; i++) {
+ for (var i = 0; i < 1000; i++) {
updateTransformers("app", [[rewrite]]);
}
@@ -58,7 +64,7 @@ main() {
initGraph(["app|foo.txt"], {"app": [[rewrite]]});
updateSources(["app|foo.txt"]);
- for (var i = 0; i < 1; i++) {
+ for (var i = 0; i < 1000; i++) {
updateTransformers("app", [[rewrite]]);
updateTransformers("app", [[]]);
}
« no previous file with comments | « pkg/barback/lib/src/pool.dart ('k') | sdk/lib/_internal/pub/lib/src/barback.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698