Index: LayoutTests/fast/compositorworker/compositor-attribute-change.html |
diff --git a/LayoutTests/fast/compositorworker/compositor-attribute-change.html b/LayoutTests/fast/compositorworker/compositor-attribute-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c42cc7b148d804eb4bdb67145ea0260414c43243 |
--- /dev/null |
+++ b/LayoutTests/fast/compositorworker/compositor-attribute-change.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<div id='container'></div> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ |
+test(function() { |
+ var proxy = new CompositorProxy(document.getElementById('container'), ['opacity']); |
+ assert_throws("NoModificationAllowedError", function() { proxy.opacity = 0.4; }); |
+ assert_throws("NoModificationAllowedError", function() { return proxy.opacity; }); |
+}, "This test checks that a compositor proxy cannot be mutated from the main thread."); |
+ |
+</script> |