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

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

Issue 401753002: Move a number of packages and some of pub over to using source_span. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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') | sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart » ('j') | 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 8bf4761badc959e2f2bc4308502e71842c5823d6..7d4faa6dd9af10602c84192c4cf9434e4157705b 100644
--- a/pkg/yaml/test/yaml_node_wrapper_test.dart
+++ b/pkg/yaml/test/yaml_node_wrapper_test.dart
@@ -9,31 +9,31 @@ import 'package:unittest/unittest.dart';
import 'package:yaml/yaml.dart';
main() {
- test("YamlMap() with no sourceName", () {
+ test("YamlMap() with no sourceUrl", () {
var map = new YamlMap();
expect(map, isEmpty);
expect(map.nodes, isEmpty);
expect(map.span, isNullSpan(isNull));
});
- test("YamlMap() with a sourceName", () {
- var map = new YamlMap(sourceName: "source");
+ test("YamlMap() with a sourceUrl", () {
+ var map = new YamlMap(sourceUrl: "source");
expect(map.span, isNullSpan("source"));
});
- test("YamlList() with no sourceName", () {
+ test("YamlList() with no sourceUrl", () {
var list = new YamlList();
expect(list, isEmpty);
expect(list.nodes, isEmpty);
expect(list.span, isNullSpan(isNull));
});
- test("YamlList() with a sourceName", () {
- var list = new YamlList(sourceName: "source");
+ test("YamlList() with a sourceUrl", () {
+ var list = new YamlList(sourceUrl: "source");
expect(list.span, isNullSpan("source"));
});
- test("YamlMap.wrap() with no sourceName", () {
+ test("YamlMap.wrap() with no sourceUrl", () {
var map = new YamlMap.wrap({
"list": [1, 2, 3],
"map": {
@@ -69,7 +69,7 @@ main() {
expect(map.nodes[new YamlScalar.wrap("list")], equals([1, 2, 3]));
});
- test("YamlMap.wrap() with a sourceName", () {
+ test("YamlMap.wrap() with a sourceUrl", () {
var map = new YamlMap.wrap({
"list": [1, 2, 3],
"map": {
@@ -77,7 +77,7 @@ main() {
"nested": [4, 5, 6]
},
"scalar": "value"
- }, sourceName: "source");
+ }, sourceUrl: "source");
expect(map.span, isNullSpan("source"));
expect(map["list"].span, isNullSpan("source"));
@@ -85,7 +85,7 @@ main() {
expect(map.nodes["scalar"].span, isNullSpan("source"));
});
- test("YamlList.wrap() with no sourceName", () {
+ test("YamlList.wrap() with no sourceUrl", () {
var list = new YamlList.wrap([
[1, 2, 3],
{
@@ -118,7 +118,7 @@ main() {
expect(list[2], "value");
});
- test("YamlList.wrap() with a sourceName", () {
+ test("YamlList.wrap() with a sourceUrl", () {
var list = new YamlList.wrap([
[1, 2, 3],
{
« no previous file with comments | « pkg/yaml/pubspec.yaml ('k') | sdk/lib/_internal/pub/lib/src/barback/transformer_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698