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

Side by Side Diff: test/parser_test.dart

Issue 2565053002: Fix strong mode error in test. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | 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: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
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 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698