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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame.html

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use local root frame and remove unneeded includes. Created 4 years, 7 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 | « no previous file | third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..7a2b6997a6d5c29966996e3b6c329c0dfc9e5149
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../../../resources/js-test.js"></script>
+<script>
+var jsTestIsAsync = true;
+description('Tests that requestAnimationFrame is invoked with correct timestamp on CompositorWorker.');
+if (window.internals)
+ internals.settings.setCompositorWorkerEnabled(true);
+
+var cw = new CompositorWorker('resources/request-animation-frame.js');
+var startTime = performance.now();
+var rafTime;
+var endTime;
+cw.onmessage = function(e) {
+ rafTime = e.data;
+ endTime = performance.now();
+ shouldBeGreaterThanOrEqual('rafTime', 'startTime');
+ shouldBeGreaterThanOrEqual('endTime', 'rafTime');
+ testPassed('Received reply from CompositorWorker.');
+ finishJSTest();
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/request-animation-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698