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

Side by Side Diff: utils/tests/pub/yaml_test.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/version_solver_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('yaml_test'); 5 #library('yaml_test');
6 6
7 #import('dart:math'); 7 #import('dart:math');
8 8
9 #import('../../../pkg/unittest/unittest.dart'); 9 #import('../../../pkg/unittest/unittest.dart');
10 #import('../../pub/yaml/yaml.dart'); 10 #import('../../pub/yaml/yaml.dart');
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 // var aliasList = doc['alias']; 1079 // var aliasList = doc['alias'];
1080 // Expect.isTrue(anchorList === aliasList); 1080 // Expect.isTrue(anchorList === aliasList);
1081 // anchorList.add('d'); 1081 // anchorList.add('d');
1082 // Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); 1082 // Expect.listEquals(['a', 'b', 'c', 'd'], aliasList);
1083 1083
1084 // doc = loadYaml(cleanUpLiteral( 1084 // doc = loadYaml(cleanUpLiteral(
1085 // """ 1085 // """
1086 // ? &anchor [a, b, c] 1086 // ? &anchor [a, b, c]
1087 // : ? *anchor 1087 // : ? *anchor
1088 // : bar"""); 1088 // : bar""");
1089 // anchorList = doc.getKeys()[0]; 1089 // anchorList = doc.keys[0];
1090 // aliasList = doc[['a', 'b', 'c']].getKeys()[0]; 1090 // aliasList = doc[['a', 'b', 'c']].keys[0];
1091 // Expect.isTrue(anchorList === aliasList); 1091 // Expect.isTrue(anchorList === aliasList);
1092 // anchorList.add('d'); 1092 // anchorList.add('d');
1093 // Expect.listEquals(['a', 'b', 'c', 'd'], aliasList); 1093 // Expect.listEquals(['a', 'b', 'c', 'd'], aliasList);
1094 // }); 1094 // });
1095 1095
1096 // test('[Example 7.1]', () { 1096 // test('[Example 7.1]', () {
1097 // expectYamlLoads({ 1097 // expectYamlLoads({
1098 // "First occurence": "Foo", 1098 // "First occurence": "Foo",
1099 // "Second occurence": "Foo", 1099 // "Second occurence": "Foo",
1100 // "Override anchor": "Bar", 1100 // "Override anchor": "Bar",
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 A null: null 1874 A null: null
1875 Also a null: # Empty 1875 Also a null: # Empty
1876 Not a null: "" 1876 Not a null: ""
1877 Booleans: [ true, True, false, FALSE ] 1877 Booleans: [ true, True, false, FALSE ]
1878 Integers: [ 0, 0o7, 0x3A, -19 ] 1878 Integers: [ 0, 0o7, 0x3A, -19 ]
1879 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ] 1879 Floats: [ 0., -0.0, .5, +12e03, -2E+05 ]
1880 Also floats: [ .inf, -.Inf, +.INF, .NAN ]'''); 1880 Also floats: [ .inf, -.Inf, +.INF, .NAN ]''');
1881 }); 1881 });
1882 }); 1882 });
1883 } 1883 }
OLDNEW
« no previous file with comments | « utils/tests/pub/version_solver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698