Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / compositorworker / compositor-attribute-change.html
blob3722bc2306c79ddb625cf8da73c4cf039e6f2836
1 <!DOCTYPE html>
2 <div id="container"></div>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
7 test(function() {
8 var proxy = new CompositorProxy(document.getElementById('container'), ['opacity']);
9 assert_throws("NoModificationAllowedError", function() { proxy.opacity = 0.4; });
10 assert_throws("NoModificationAllowedError", function() { return proxy.opacity; });
11 }, "This test checks that a compositor proxy cannot be mutated from the main thread.");
13 </script>