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..855fba843ce3bcc8428439a8741c8fab125e2d3c |
--- /dev/null |
+++ b/LayoutTests/fast/compositorworker/compositor-attribute-change-worker.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<div id='container'></div> |
esprehn
2015/03/29 04:44:56
double quotes? same with the other test, it's nice
sadrul
2015/03/30 16:07:45
Done.
|
+<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> |