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

Unified Diff: pkg/yaml/test/yaml_node_wrapper_test.dart

Issue 413403002: Fix lingering references to the old Span in yaml. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « pkg/yaml/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/test/yaml_node_wrapper_test.dart
diff --git a/pkg/yaml/test/yaml_node_wrapper_test.dart b/pkg/yaml/test/yaml_node_wrapper_test.dart
index 7d4faa6dd9af10602c84192c4cf9434e4157705b..712eeee47120edfed87634e8f1af8ae292d5b951 100644
--- a/pkg/yaml/test/yaml_node_wrapper_test.dart
+++ b/pkg/yaml/test/yaml_node_wrapper_test.dart
@@ -18,7 +18,7 @@ main() {
test("YamlMap() with a sourceUrl", () {
var map = new YamlMap(sourceUrl: "source");
- expect(map.span, isNullSpan("source"));
+ expect(map.span, isNullSpan(Uri.parse("source")));
});
test("YamlList() with no sourceUrl", () {
@@ -30,7 +30,7 @@ main() {
test("YamlList() with a sourceUrl", () {
var list = new YamlList(sourceUrl: "source");
- expect(list.span, isNullSpan("source"));
+ expect(list.span, isNullSpan(Uri.parse("source")));
});
test("YamlMap.wrap() with no sourceUrl", () {
@@ -79,10 +79,11 @@ main() {
"scalar": "value"
}, sourceUrl: "source");
- expect(map.span, isNullSpan("source"));
- expect(map["list"].span, isNullSpan("source"));
- expect(map["map"].span, isNullSpan("source"));
- expect(map.nodes["scalar"].span, isNullSpan("source"));
+ var source = Uri.parse("source");
+ expect(map.span, isNullSpan(source));
+ expect(map["list"].span, isNullSpan(source));
+ expect(map["map"].span, isNullSpan(source));
+ expect(map.nodes["scalar"].span, isNullSpan(source));
});
test("YamlList.wrap() with no sourceUrl", () {
@@ -134,7 +135,7 @@ main() {
expect(list.nodes[2].span, isNullSpan(isNull));
});
- solo_test("re-wrapped objects equal one another", () {
+ test("re-wrapped objects equal one another", () {
var list = new YamlList.wrap([
[1, 2, 3],
{"foo": "bar"}
@@ -150,10 +151,9 @@ main() {
}
Matcher isNullSpan(sourceUrl) => predicate((span) {
- expect(span, new isInstanceOf<Span>());
+ expect(span, new isInstanceOf<SourceSpan>());
expect(span.length, equals(0));
expect(span.text, isEmpty);
- expect(span.isIdentifier, isFalse);
expect(span.start, equals(span.end));
expect(span.start.offset, equals(0));
expect(span.start.line, equals(0));
« no previous file with comments | « pkg/yaml/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698