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

Unified Diff: pkg/source_maps/test/printer_test.dart

Issue 22762003: Fix source maps test (failed in checked mode). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/source_maps/test/printer_test.dart
diff --git a/pkg/source_maps/test/printer_test.dart b/pkg/source_maps/test/printer_test.dart
index 06bed57685e4624cfb74b358377d7414f5317a43..eaeae2a127689e45d0cea64e400dabf8681b9a8b 100644
--- a/pkg/source_maps/test/printer_test.dart
+++ b/pkg/source_maps/test/printer_test.dart
@@ -84,10 +84,10 @@ main() {
test('simple use', () {
var printer = new NestedPrinter();
printer..add('var ')
- ..add('x = 3;\n', location: inputVar1)
- ..add('f(', location: inputFunction)
- ..add('y) => ', location: inputVar2)
- ..add('x + y;\n', location: inputExpr)
+ ..add('x = 3;\n', span: inputVar1)
+ ..add('f(', span: inputFunction)
+ ..add('y) => ', span: inputVar2)
+ ..add('x + y;\n', span: inputExpr)
..build('output.dart');
expect(printer.text, OUTPUT);
expect(printer.map, json.stringify(EXPECTED_MAP));
@@ -96,10 +96,10 @@ main() {
test('nested use', () {
var printer = new NestedPrinter();
printer..add('var ')
- ..add(new NestedPrinter()..add('x = 3;\n', location: inputVar1))
- ..add('f(', location: inputFunction)
- ..add(new NestedPrinter()..add('y) => ', location: inputVar2))
- ..add('x + y;\n', location: inputExpr)
+ ..add(new NestedPrinter()..add('x = 3;\n', span: inputVar1))
+ ..add('f(', span: inputFunction)
+ ..add(new NestedPrinter()..add('y) => ', span: inputVar2))
+ ..add('x + y;\n', span: inputExpr)
..build('output.dart');
expect(printer.text, OUTPUT);
expect(printer.map, json.stringify(EXPECTED_MAP));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698