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

Side by Side 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: rebase 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 -->
esprehn 2015/12/07 20:54:24 remove comment?
Ian Vollick 2015/12/08 00:16:44 Whoops, done.
4 <style>
5 #container {
6 width: 100px;
7 height: 100px;
8 border: 1px solid black;
9 overflow: scroll;
10 }
11
12 #scrolled {
13 width: 80px;
14 height: 200px;
15 background: blue;
16 }
17 </style>
18 <div id="container">
19 <div id="scrolled"></div>
20 </div>
21 <script src="../../../../resources/testharness.js"></script>
22 <script src="../../../../resources/testharnessreport.js"></script>
23 <script>
24 test(function() {
25 var proxy = new CompositorProxy(document.getElementById('container'), ['opac ity', 'transform', 'scrollTop', 'scrollLeft']);
26 assert_true(proxy.supports('opacity'));
27 assert_false(proxy.supports('opacit'));
28 assert_false(proxy.supports('opacitya'));
29
30 assert_true(proxy.supports('transform'));
31 assert_false(proxy.supports('transfor'));
32 assert_false(proxy.supports('transforma'));
33
34 assert_true(proxy.supports('scrollLeft'));
35 assert_false(proxy.supports('scrollLef'));
36 assert_false(proxy.supports('scrollLefta'));
37
38 assert_true(proxy.supports('scrollTop'));
39 assert_false(proxy.supports('scrollTo'));
40 assert_false(proxy.supports('scrollTopa'));
41
42 assert_false(proxy.supports('あ'));
43 }, "This test ensures that supports correctly handles queries with strings that a prefix of a property or vice versa.");
44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698