| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |