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

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

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/utils_test.dart
diff --git a/sdk/lib/_internal/pub/test/utils_test.dart b/sdk/lib/_internal/pub_generated/test/utils_test.dart
similarity index 81%
copy from sdk/lib/_internal/pub/test/utils_test.dart
copy to sdk/lib/_internal/pub_generated/test/utils_test.dart
index a137d2d079094cfa0ad8429dec33f37955513b1e..178b7f753881bd06ae5a41c6d4347e3ee7831393 100644
--- a/sdk/lib/_internal/pub/test/utils_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/utils_test.dart
@@ -43,8 +43,13 @@ main() {
});
test('uses indentation for maps', () {
- expect(yamlToString({'a': {'b': 1, 'c': 2}, 'd': 3}),
- equals("""
+ expect(yamlToString({
+ 'a': {
+ 'b': 1,
+ 'c': 2
+ },
+ 'd': 3
+ }), equals("""
a:
b: 1
c: 2
@@ -52,8 +57,12 @@ d: 3"""));
});
test('sorts map keys', () {
- expect(yamlToString({'a': 1, 'c': 2, 'b': 3, 'd': 4}),
- equals("""
+ expect(yamlToString({
+ 'a': 1,
+ 'c': 2,
+ 'b': 3,
+ 'd': 4
+ }), equals("""
a: 1
b: 3
c: 2
@@ -61,8 +70,11 @@ d: 4"""));
});
test('quotes map keys as needed', () {
- expect(yamlToString({'no': 1, 'yes!': 2, '123': 3}),
- equals("""
+ expect(yamlToString({
+ 'no': 1,
+ 'yes!': 2,
+ '123': 3
+ }), equals("""
"123": 3
no: 1
"yes!": 2"""));
@@ -74,8 +86,7 @@ no: 1
map[123] = "num";
map[true] = "bool";
- expect(yamlToString(map),
- equals("""
+ expect(yamlToString(map), equals("""
123: num
null: null
true: bool"""));
@@ -83,7 +94,10 @@ true: bool"""));
test('handles empty maps', () {
expect(yamlToString({}), equals("{}"));
- expect(yamlToString({'a': {}, 'b': {}}), equals("""
+ expect(yamlToString({
+ 'a': {},
+ 'b': {}
+ }), equals("""
a: {}
b: {}"""));
});

Powered by Google App Engine
This is Rietveld 408576698