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

Unified Diff: third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change.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.html
diff --git a/third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change.html b/third_party/WebKit/LayoutTests/fast/compositorworker/compositor-attribute-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..3722bc2306c79ddb625cf8da73c4cf039e6f2836
--- /dev/null
+++ b/third_party/WebKit/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>

Powered by Google App Engine
This is Rietveld 408576698