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

Unified Diff: test/span_test.dart

Issue 12937009: renaming File to Source (Closed) Base URL: git@github.com:dart-lang/source-maps.git@master
Patch Set: Created 7 years, 9 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
« lib/source_maps.dart ('K') | « test/end2end_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/span_test.dart
diff --git a/test/span_test.dart b/test/span_test.dart
index e816bc88513b6b9f349f92bbcee87ac4e3087cb3..8f61b5871f99aa313f531b99dbbcb60ec425939d 100644
--- a/test/span_test.dart
+++ b/test/span_test.dart
@@ -25,7 +25,7 @@ const String TEST_FILE = '''
List<int> newLines = TEST_FILE.split('\n').map((s) => s.length).toList();
main() {
- var file = new File.text('file', TEST_FILE);
+ var file = new SourceFile.text('file', TEST_FILE);
span(int start, int end) => file.span(start, end);
loc(int offset) => file.location(offset);
@@ -80,7 +80,7 @@ main() {
test('get location message - no file url', () {
var line = 10 + 80 + 31 + 27 + 4;
- expect(new File.text(null, TEST_FILE).getLocationMessage(
+ expect(new SourceFile.text(null, TEST_FILE).getLocationMessage(
'the message', line + 2, line + 11),
':5:3: the message\n'
'1234+6789_1234\n'
@@ -166,7 +166,8 @@ main() {
});
test('file segment', () {
- var segment = new FileSegment('file', TEST_FILE.substring(12), loc(12));
+ var segment = new SourceFileSegment('file',
+ TEST_FILE.substring(12), loc(12));
sline(int n) => segment.getLine(n);
scol(int n) => segment.getColumn(segment.getLine(n), n);
@@ -207,6 +208,7 @@ class TestSpan extends Span {
}
class TestLocation extends Location {
+ String get sourceUrl => '';
TestLocation(int offset) : super(offset);
get line => 0;
get column => 0;
« lib/source_maps.dart ('K') | « test/end2end_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698