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

Unified Diff: test/perf/perf.dart

Issue 55143003: webui fixes for 0.8.9 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: test/perf/perf.dart
diff --git a/test/perf/perf.dart b/test/perf/perf.dart
index bea9bc1ccbb87fbe45283f97e7c8161706b47bff..40abda8f2892722f9caa42d7e17712857bc93780 100644
--- a/test/perf/perf.dart
+++ b/test/perf/perf.dart
@@ -10,24 +10,22 @@ library test.perf.perf;
import 'dart:async';
import 'dart:io';
-import 'dart:json' as json;
-import 'dart:utf' show encodeUtf8;
-import 'dart:isolate';
+import 'dart:convert';
import 'package:unittest/unittest.dart';
import 'package:unittest/compact_vm_config.dart';
import 'package:web_ui/dwc.dart' as dwc;
+import 'package:path/path.dart' as path;
-main() {
- var args = new Options().arguments;
+main(args) {
var pattern = new RegExp(args.length > 0 ? args[0] : '.');
useCompactVMConfiguration();
- var lister = new Directory.fromPath(new Path('input')).list();
- var cwd = new Path(new Directory.current().path);
- var inputDir = cwd.append('input');
+ var lister = new Directory('input').list();
+ var cwd = Directory.current.path;
+ var inputDir = path.join(cwd, 'input');
var results = {};
lister.onFile = (path) {
if (!path.endsWith('_test.html') || !pattern.hasMatch(path)) return;
« pubspec.yaml ('K') | « test/perf/compare.dart ('k') | test/perf/update_json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698