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

Unified Diff: packages/yaml/test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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 | « packages/yaml/pubspec.yaml ('k') | packages/yaml/test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/yaml/test.dart
diff --git a/packages/yaml/test.dart b/packages/yaml/test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..84f842e89c9b886ce4cc4df0a328108761b3a30e
--- /dev/null
+++ b/packages/yaml/test.dart
@@ -0,0 +1,38 @@
+import 'package:yaml/yaml.dart';
+
+main() {
+ const src = """
+name: linter
+version: 0.0.1
+author: Dart Team <misc@dartlang.org>
+authors:
+ - Bill
+ - Ted
+description: Style linter for Dart.
+documentation:
+homepage: https://github.com/dart-lang/linter
+dependencies:
+ transmogrify:
+ hosted:
+ name: transmogrify
+ url: http://your-package-server.com
+ version: '>=0.4.0 <1.0.0'
+ analyzer: '0.24.0-dev.1'
+ cli_util: '>=0.0.1 <0.1.0'
+ semver: '>=0.2.0 <0.3.0'
+ yaml: '>=2.1.2 <3.0.0'
+ kittens:
+ git:
+ url: git://github.com/munificent/kittens.git
+ ref: some-branch
+ foo: any
+dev_dependencies:
+ markdown: '>=0.7.1+2 <0.8.0'
+ unittest: '>=0.11.0 <0.12.0'
+""";
+
+ YamlMap node = loadYamlNode(src, sourceUrl: null);
+ node.nodes.forEach((k, v) {
+ if (k is YamlScalar) print(k.span);
+ });
+}
« no previous file with comments | « packages/yaml/pubspec.yaml ('k') | packages/yaml/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698