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

Unified Diff: third_party/WebKit/LayoutTests/fast/compositorworker/resources/proxy-mutate.js

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/resources/proxy-mutate.js
diff --git a/third_party/WebKit/LayoutTests/fast/compositorworker/resources/proxy-mutate.js b/third_party/WebKit/LayoutTests/fast/compositorworker/resources/proxy-mutate.js
new file mode 100644
index 0000000000000000000000000000000000000000..3089a48ec3601a3a2b37532e9212bd3ef17806a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/compositorworker/resources/proxy-mutate.js
@@ -0,0 +1,14 @@
+onmessage = function(msg) {
+ var proxy = msg.data[0];
+ var attrib = msg.data[1];
+ try {
+ if (proxy.supports(attrib)) {
+ proxy[attrib] = 0;
+ postMessage('success');
+ } else {
+ postMessage('error: Received non-supported attribute "' + attrib + '"');
+ }
+ } catch (e) {
+ postMessage('error: ' + e);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698