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

Unified Diff: samples/third_party/dromaeo/web/Dromaeo.dart

Issue 199003005: Package-ify Dromaeo and browser controller functionality (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « samples/third_party/dromaeo/web-style.css ('k') | samples/third_party/dromaeo/web/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/web/Dromaeo.dart
diff --git a/samples/third_party/dromaeo/Dromaeo.dart b/samples/third_party/dromaeo/web/Dromaeo.dart
similarity index 92%
rename from samples/third_party/dromaeo/Dromaeo.dart
rename to samples/third_party/dromaeo/web/Dromaeo.dart
index d6ed1e6ce9e118c59c2d370714599423622428c1..bf0e1165588b91c9ff129a38bf8b37391f58d606 100644
--- a/samples/third_party/dromaeo/Dromaeo.dart
+++ b/samples/third_party/dromaeo/web/Dromaeo.dart
@@ -4,6 +4,7 @@ import 'dart:html';
import 'dart:async';
import "dart:convert";
import 'dart:math' as Math;
+import 'dart:js' as js;
import 'Suites.dart';
main() {
@@ -201,6 +202,18 @@ class Dromaeo {
return running;
}
document.body.attributes['class'] = 'alldone';
+
+ var report = js.context['reportPerformanceTestDone'];
+ if (report != null) {
+ report.apply([]);
+ } else {
+ // This is not running as a performance test. Continue as normal.
+ window.console.log('Warning: failed to call '
+ 'reportPerformanceTestDone. If this is a performance test, '
+ 'please include '
+ 'packages/browser_controller/perf_test_controller.js in your '
+ 'html file.');
+ }
return done;
default:
« no previous file with comments | « samples/third_party/dromaeo/web-style.css ('k') | samples/third_party/dromaeo/web/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698