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

Unified Diff: pkg/string_scanner/test/span_scanner_test.dart

Issue 812253002: Delete a bunch of packages that are now on GitHub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Un-delete http Created 6 years 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/string_scanner/test/line_scanner_test.dart ('k') | pkg/string_scanner/test/string_scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/string_scanner/test/span_scanner_test.dart
diff --git a/pkg/string_scanner/test/span_scanner_test.dart b/pkg/string_scanner/test/span_scanner_test.dart
deleted file mode 100644
index 796df296839e6ce1b0f5808c0d4e78e3f76506de..0000000000000000000000000000000000000000
--- a/pkg/string_scanner/test/span_scanner_test.dart
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library string_scanner.span_scanner_test;
-
-import 'package:string_scanner/string_scanner.dart';
-import 'package:unittest/unittest.dart';
-
-void main() {
- var scanner;
- setUp(() {
- scanner = new SpanScanner('foo\nbar\nbaz', sourceUrl: 'source');
- });
-
- test("tracks the span for the last match", () {
- scanner.scan('fo');
- scanner.scan('o\nba');
-
- var span = scanner.lastSpan;
- expect(span.start.offset, equals(2));
- expect(span.start.line, equals(0));
- expect(span.start.column, equals(2));
- expect(span.start.sourceUrl, equals(Uri.parse('source')));
-
- expect(span.end.offset, equals(6));
- expect(span.end.line, equals(1));
- expect(span.end.column, equals(2));
- expect(span.start.sourceUrl, equals(Uri.parse('source')));
-
- expect(span.text, equals('o\nba'));
- });
-
- test(".spanFrom() returns a span from a previous state", () {
- scanner.scan('fo');
- var state = scanner.state;
- scanner.scan('o\nba');
- scanner.scan('r\nba');
-
- var span = scanner.spanFrom(state);
- expect(span.text, equals('o\nbar\nba'));
- });
-
- test(".emptySpan returns an empty span at the current location", () {
- scanner.scan('foo\nba');
-
- var span = scanner.emptySpan;
- expect(span.start.offset, equals(6));
- expect(span.start.line, equals(1));
- expect(span.start.column, equals(2));
- expect(span.start.sourceUrl, equals(Uri.parse('source')));
-
- expect(span.end.offset, equals(6));
- expect(span.end.line, equals(1));
- expect(span.end.column, equals(2));
- expect(span.start.sourceUrl, equals(Uri.parse('source')));
-
- expect(span.text, equals(''));
- });
-}
« no previous file with comments | « pkg/string_scanner/test/line_scanner_test.dart ('k') | pkg/string_scanner/test/string_scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698