| 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:test/test.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 'package:source_span/source_span.dart'; | 10 import 'package:source_span/source_span.dart'; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 MAP_WITH_SOURCE_LOCATION, | 243 MAP_WITH_SOURCE_LOCATION, |
| 244 MAP_WITH_SOURCE_LOCATION_AND_NAME | 244 MAP_WITH_SOURCE_LOCATION_AND_NAME |
| 245 ]) { | 245 ]) { |
| 246 var mapping = parseJson(expected); | 246 var mapping = parseJson(expected); |
| 247 expect(mapping.toJson(), equals(expected)); | 247 expect(mapping.toJson(), equals(expected)); |
| 248 | 248 |
| 249 mapping = parseJsonExtended(expected); | 249 mapping = parseJsonExtended(expected); |
| 250 expect(mapping.toJson(), equals(expected)); | 250 expect(mapping.toJson(), equals(expected)); |
| 251 } | 251 } |
| 252 // Invalid for this case | 252 // Invalid for this case |
| 253 expect(() => parseJson(SOURCE_MAP_BUNDLE), throws); | 253 expect(() => parseJson(SOURCE_MAP_BUNDLE as dynamic), throws); |
| 254 | 254 |
| 255 var mapping = parseJsonExtended(SOURCE_MAP_BUNDLE); | 255 var mapping = parseJsonExtended(SOURCE_MAP_BUNDLE); |
| 256 expect(mapping.toJson(), equals(SOURCE_MAP_BUNDLE)); | 256 expect(mapping.toJson(), equals(SOURCE_MAP_BUNDLE)); |
| 257 }); | 257 }); |
| 258 } | 258 } |
| OLD | NEW |