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

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

Issue 421723004: Remove support for the old Span classes from source_maps. (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/source_maps/test/parser_test.dart ('k') | pkg/source_maps/test/refactor_test.dart » ('j') | 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 fe27f76c05c2098653d9b759ada3c4f3d720c2d6..e55ca9f6e5aaff09c776214454e87b097778d1ab 100644
--- a/pkg/source_maps/test/printer_test.dart
+++ b/pkg/source_maps/test/printer_test.dart
@@ -6,8 +6,8 @@ library test.printer_test;
import 'dart:convert';
import 'package:unittest/unittest.dart';
-import 'package:source_maps/printer.dart';
-import 'package:source_maps/span.dart';
+import 'package:source_maps/source_maps.dart';
+import 'package:source_span/source_span.dart';
import 'common.dart';
main() {
@@ -53,13 +53,12 @@ main() {
// 8 new lines in the source map:
expect(printer.map.split(';').length, 8);
- asFixed(Span s) => new FixedSpan(s.sourceUrl,
- s.start.offset, s.start.line, s.start.column,
- text: s.text, isIdentifier: s.isIdentifier);
+ asFixed(SourceMapSpan s) => new SourceMapSpan(s.start, s.end, s.text,
+ isIdentifier: s.isIdentifier);
// The result is the same if we use fixed positions
var printer2 = new Printer('output2.dart');
- printer2..mark(new FixedSpan('input.dart', 0, 0, 0))
+ printer2..mark(new SourceLocation(0, sourceUrl: 'input.dart').pointSpan())
..add(segments[0], projectMarks: true)
..mark(asFixed(inputVar1))
..add('_s')
« no previous file with comments | « pkg/source_maps/test/parser_test.dart ('k') | pkg/source_maps/test/refactor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698