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

Side by Side Diff: test/end2end_test.dart

Issue 1240863004: Upgrade to the new test runner. (Closed) Base URL: git@github.com:dart-lang/source_maps@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « test/common.dart ('k') | test/parser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.end2end_test; 5 library test.end2end_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:test/test.dart';
8 import 'package:source_maps/source_maps.dart'; 8 import 'package:source_maps/source_maps.dart';
9 import 'package:source_span/source_span.dart'; 9 import 'package:source_span/source_span.dart';
10 import 'common.dart'; 10 import 'common.dart';
11 11
12 main() { 12 main() {
13 test('end-to-end setup', () { 13 test('end-to-end setup', () {
14 expect(inputVar1.text, 'longVar1'); 14 expect(inputVar1.text, 'longVar1');
15 expect(inputFunction.text, 'longName'); 15 expect(inputFunction.text, 'longName');
16 expect(inputVar2.text, 'longVar2'); 16 expect(inputVar2.text, 'longVar2');
17 expect(inputVar1NoSymbol.text, 'longVar1'); 17 expect(inputVar1NoSymbol.text, 'longVar1');
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 check(file.span(71, 71), mapping, ispan(70, 70), true); 153 check(file.span(71, 71), mapping, ispan(70, 70), true);
154 154
155 // Start of the last line 155 // Start of the last line
156 var oOffset = out.length - 2; 156 var oOffset = out.length - 2;
157 var iOffset = INPUT.length - 2; 157 var iOffset = INPUT.length - 2;
158 check(file.span(oOffset, oOffset), mapping, ispan(iOffset, iOffset), true); 158 check(file.span(oOffset, oOffset), mapping, ispan(iOffset, iOffset), true);
159 check(file.span(oOffset + 1, oOffset + 1), mapping, 159 check(file.span(oOffset + 1, oOffset + 1), mapping,
160 ispan(iOffset, iOffset), true); 160 ispan(iOffset, iOffset), true);
161 }); 161 });
162 } 162 }
OLDNEW
« no previous file with comments | « test/common.dart ('k') | test/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698