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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase error. 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/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html
new file mode 100644
index 0000000000000000000000000000000000000000..025c9ffb8525bbefdc2451fc4e72e9a159a1762d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<style>
+#container {
+ width: 100px;
+ height: 100px;
+ border: 1px solid black;
+ overflow: scroll;
+}
+
+#scrolled {
+ width: 80px;
+ height: 200px;
+ background: blue;
+}
+</style>
+<div id="container">
+ <div id="scrolled"></div>
+</div>
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var proxy = new CompositorProxy(document.getElementById('container'), ['opacity', 'transform', 'scrollTop', 'scrollLeft']);
+ assert_true(proxy.supports('opacity'));
+ assert_false(proxy.supports('opacit'));
+ assert_false(proxy.supports('opacitya'));
+
+ assert_true(proxy.supports('transform'));
+ assert_false(proxy.supports('transfor'));
+ assert_false(proxy.supports('transforma'));
+
+ assert_true(proxy.supports('scrollLeft'));
+ assert_false(proxy.supports('scrollLef'));
+ assert_false(proxy.supports('scrollLefta'));
+
+ assert_true(proxy.supports('scrollTop'));
+ assert_false(proxy.supports('scrollTo'));
+ assert_false(proxy.supports('scrollTopa'));
+
+ assert_false(proxy.supports('あ'));
+}, "This test ensures that supports correctly handles queries with strings that a prefix of a property or vice versa.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698