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

Side by Side Diff: tests/compiler/dart2js/source_map_validator_helper.dart

Issue 1562023002: Add test of unittests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'dart:io'; 5 import 'dart:io';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
11 import 'package:source_maps/source_maps.dart' hide SourceFile; 11 import 'package:source_maps/source_maps.dart';
12 import 'package:compiler/src/apiimpl.dart'; 12 import 'package:compiler/src/apiimpl.dart';
13 import 'package:compiler/src/elements/elements.dart' 13 import 'package:compiler/src/elements/elements.dart'
14 show AstElement, 14 show AstElement,
15 ClassElement, 15 ClassElement,
16 CompilationUnitElement, 16 CompilationUnitElement,
17 Element, 17 Element,
18 FunctionElement, 18 FunctionElement,
19 LibraryElement, 19 LibraryElement,
20 MemberElement; 20 MemberElement;
21 import 'package:compiler/src/io/source_file.dart' show SourceFile; 21 import 'package:compiler/src/io/source_file.dart' show SourceFile;
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 final Position end; 321 final Position end;
322 322
323 Interval(this.begin, this.end); 323 Interval(this.begin, this.end);
324 324
325 bool contains(Position other) { 325 bool contains(Position other) {
326 return begin <= other && other <= end; 326 return begin <= other && other <= end;
327 } 327 }
328 328
329 String toString() => '$begin-$end'; 329 String toString() => '$begin-$end';
330 } 330 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698