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

Side by Side Diff: tests/compiler/dart2js/sourcemaps/source_mapping_test_viewer.dart

Issue 1252463003: Split source_mapping_test pr. test file. (Closed) Base URL: https://github.com/dart-lang/sdk.git@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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Visualization of source mappings generated and tested in 5 /// Visualization of source mappings generated and tested in
6 /// 'source_mapping_test.dart'. 6 /// 'source_mapping_test.dart'.
7 7
8 library source_mapping.test.viewer; 8 library source_mapping.test.viewer;
9 9
10 import 'dart:async'; 10 import 'dart:async';
11 import 'package:compiler/src/filenames.dart'; 11 import 'package:compiler/src/filenames.dart';
12 import 'package:compiler/src/util/util.dart'; 12 import 'package:compiler/src/util/util.dart';
13 import 'source_mapping_test.dart'; 13 import 'source_mapping_tester.dart';
14 import 'sourcemap_helper.dart'; 14 import 'sourcemap_helper.dart';
15 import 'sourcemap_html_helper.dart'; 15 import 'sourcemap_html_helper.dart';
16 import 'sourcemap_html_templates.dart'; 16 import 'sourcemap_html_templates.dart';
17 17
18 const String DEFAULT_OUTPUT_PATH = 'out.js.map.html'; 18 const String DEFAULT_OUTPUT_PATH = 'out.js.map.html';
19 19
20 main(List<String> arguments) async { 20 main(List<String> arguments) async {
21 bool measure = false; 21 bool measure = false;
22 String outputPath = DEFAULT_OUTPUT_PATH; 22 String outputPath = DEFAULT_OUTPUT_PATH;
23 Set<String> configurations = new Set<String>(); 23 Set<String> configurations = new Set<String>();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 final int count; 157 final int count;
158 158
159 Measurement(this.config, this.filename, this.missing, this.count); 159 Measurement(this.config, this.filename, this.missing, this.count);
160 160
161 String toString() { 161 String toString() {
162 double percentage = 100 * missing / count; 162 double percentage = 100 * missing / count;
163 return "Config '${config}', file: '${filename}': " 163 return "Config '${config}', file: '${filename}': "
164 "$missing of $count ($percentage%) missing"; 164 "$missing of $count ($percentage%) missing";
165 } 165 }
166 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698