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

Unified Diff: third_party/pkg/angular/perf/dom/_perf.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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: third_party/pkg/angular/perf/dom/_perf.dart
diff --git a/third_party/pkg/angular/perf/dom/_perf.dart b/third_party/pkg/angular/perf/dom/_perf.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7701331a44415f49d756ad907d57f93189adf965
--- /dev/null
+++ b/third_party/pkg/angular/perf/dom/_perf.dart
@@ -0,0 +1,22 @@
+import '../../test/_specs.dart' as perf;
+import '../../test/jasmine_syntax.dart' as jasmine;
+import '../_perf.dart' hide xtime, time;
+import 'package:angular/mock/module.dart';
+
+export '../../test/_specs.dart';
+export 'package:angular/mock/module.dart';
+
+_noop() => null;
+
+time(name, body, {verify:_noop, cleanUp:_noop}) {
+ body();
+ verify();
+ cleanUp();
+
+ dump('$name: => ${statMeasure(() { body(); cleanUp(); })}');
+}
+
+main() {
+ jasmine.main();
+ perf.main();
+}

Powered by Google App Engine
This is Rietveld 408576698