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

Unified Diff: sdk/lib/_internal/pub_generated/test/transcript_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: sdk/lib/_internal/pub_generated/test/transcript_test.dart
diff --git a/sdk/lib/_internal/pub/test/transcript_test.dart b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
similarity index 88%
copy from sdk/lib/_internal/pub/test/transcript_test.dart
copy to sdk/lib/_internal/pub_generated/test/transcript_test.dart
index 34ea1303a00af90cf8f49e1d5b13769cce40808f..ff58358dfd5136f53fc6b1f68b71910d81c029e8 100644
--- a/sdk/lib/_internal/pub/test/transcript_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/transcript_test.dart
@@ -1,16 +1,9 @@
-// Copyright (c) 2012, 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 version_test;
-
import 'package:unittest/unittest.dart';
import 'test_pub.dart';
import '../lib/src/transcript.dart';
-
main() {
initConfig();
-
test("discards from the middle once it reaches the maximum", () {
var transcript = new Transcript<String>(4);
forEachToString() {
@@ -18,7 +11,6 @@ main() {
transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
return result;
}
-
expect(forEachToString(), equals(""));
transcript.add("a");
expect(forEachToString(), equals("a"));
@@ -33,7 +25,6 @@ main() {
transcript.add("f");
expect(forEachToString(), equals("ab[2]ef"));
});
-
test("does not discard if it doesn't reach the maximum", () {
var transcript = new Transcript<String>(40);
forEachToString() {
@@ -41,7 +32,6 @@ main() {
transcript.forEach((entry) => result += entry, (n) => result += "[$n]");
return result;
}
-
expect(forEachToString(), equals(""));
transcript.add("a");
expect(forEachToString(), equals("a"));
@@ -56,5 +46,4 @@ main() {
transcript.add("f");
expect(forEachToString(), equals("abcdef"));
});
-
}

Powered by Google App Engine
This is Rietveld 408576698