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

Unified Diff: third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html

Issue 1494483002: Revert of compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html
diff --git a/third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html b/third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html
new file mode 100644
index 0000000000000000000000000000000000000000..afea40ba2a2b4395b0bd3e84f2a203a5fd938bb0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<div id="container"></div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+var test = async_test("This test checks that a compositor proxy can be mutated from the compositor worker thread.");
+
+function processMessage(msg) {
+ assert_equals('success', msg.data);
+ test.done();
+}
+
+var worker = new CompositorWorker('resources/proxy-mutate.js');
+worker.onmessage = processMessage;
+var proxy = new CompositorProxy(document.getElementById('container'), ['opacity']);
+assert_true(proxy.supports('opacity'));
+assert_false(proxy.supports('touch'));
+assert_false(proxy.supports('transform'));
+assert_false(proxy.supports('scrollTop'));
+worker.postMessage([proxy, 'opacity']);
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698