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

Unified Diff: utils/tests/pub/yaml_test.dart

Issue 11785008: Convert pub tests to line doc comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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 | « utils/tests/pub/version_solver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/yaml_test.dart
diff --git a/utils/tests/pub/yaml_test.dart b/utils/tests/pub/yaml_test.dart
index a71c3ba735cd29df8d0fdf8195effca5ca460688..85cbdf81b7142bc93fa5730255672f61670c0785 100644
--- a/utils/tests/pub/yaml_test.dart
+++ b/utils/tests/pub/yaml_test.dart
@@ -11,24 +11,20 @@ import '../../pub/yaml/yaml.dart';
import '../../pub/yaml/deep_equals.dart';
import '../../../tests/utils/test_utils.dart';
-/** Constructs a new yaml.YamlMap, optionally from a normal Map. */
+/// Constructs a new yaml.YamlMap, optionally from a normal Map.
Map yamlMap([Map from]) =>
from == null ? new YamlMap() : new YamlMap.from(from);
-/**
- * Asserts that a string containing a single YAML document produces a given
- * value when loaded.
- */
+/// Asserts that a string containing a single YAML document produces a given
+/// value when loaded.
expectYamlLoads(expected, String source) {
var actual = loadYaml(cleanUpLiteral(source));
Expect.isTrue(deepEquals(expected, actual),
'expectYamlLoads(expected: <$expected>, actual: <$actual>)');
}
-/**
- * Asserts that a string containing a stream of YAML documents produces a given
- * list of values when loaded.
- */
+/// Asserts that a string containing a stream of YAML documents produces a given
+/// list of values when loaded.
expectYamlStreamLoads(List expected, String source) {
var actual = loadYamlStream(cleanUpLiteral(source));
Expect.isTrue(deepEquals(expected, actual),
« 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