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

Unified Diff: tools/perf/page_sets/perf_week/resources/web-animations-api-check.js

Issue 402433004: Test adding perf week tests as smoothness benchmark (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: g cl issue Created 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/perf_week/resources/web-animations-api-check.js
diff --git a/tools/perf/page_sets/perf_week/resources/web-animations-api-check.js b/tools/perf/page_sets/perf_week/resources/web-animations-api-check.js
new file mode 100644
index 0000000000000000000000000000000000000000..33ebb4ecd760781b4945faf71943394e309cb21a
--- /dev/null
+++ b/tools/perf/page_sets/perf_week/resources/web-animations-api-check.js
@@ -0,0 +1,5 @@
+if (!Element.prototype.animate) {
+ // Generate 0 frames and fail if Web Animations is not present.
+ document.documentElement.style.display = 'none';
+ window.measurementReady = true;
+}

Powered by Google App Engine
This is Rietveld 408576698