Index: LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html |
diff --git a/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html b/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..afea40ba2a2b4395b0bd3e84f2a203a5fd938bb0 |
--- /dev/null |
+++ b/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> |