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

Side by Side Diff: test/parser_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/end2end_test.dart ('k') | test/printer_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.parser_test; 5 library test.parser_test;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'package:unittest/unittest.dart'; 8 import 'package:test/test.dart';
9 import 'package:source_maps/source_maps.dart'; 9 import 'package:source_maps/source_maps.dart';
10 import 'common.dart'; 10 import 'common.dart';
11 11
12 const Map<String, dynamic> MAP_WITH_NO_SOURCE_LOCATION = const { 12 const Map<String, dynamic> MAP_WITH_NO_SOURCE_LOCATION = const {
13 'version': 3, 13 'version': 3,
14 'sourceRoot': '', 14 'sourceRoot': '',
15 'sources': const ['input.dart'], 15 'sources': const ['input.dart'],
16 'names': const [], 16 'names': const [],
17 'mappings': 'A', 17 'mappings': 'A',
18 'file': 'output.dart' 18 'file': 'output.dart'
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 for (var expected in [ 126 for (var expected in [
127 EXPECTED_MAP, 127 EXPECTED_MAP,
128 MAP_WITH_NO_SOURCE_LOCATION, 128 MAP_WITH_NO_SOURCE_LOCATION,
129 MAP_WITH_SOURCE_LOCATION, 129 MAP_WITH_SOURCE_LOCATION,
130 MAP_WITH_SOURCE_LOCATION_AND_NAME]) { 130 MAP_WITH_SOURCE_LOCATION_AND_NAME]) {
131 var mapping = parseJson(expected); 131 var mapping = parseJson(expected);
132 expect(mapping.toJson(), equals(expected)); 132 expect(mapping.toJson(), equals(expected));
133 } 133 }
134 }); 134 });
135 } 135 }
OLDNEW
« no previous file with comments | « test/end2end_test.dart ('k') | test/printer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698