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

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

Issue 1552793002: CompositorWorker: Use a linear search in compositorMutablePropertyForName. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test which creates a 16-bit string for a valid property 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
index 025c9ffb8525bbefdc2451fc4e72e9a159a1762d..2a0437ae7ad4004e0e216aac589172390d96fb79 100644
--- 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
@@ -38,5 +38,10 @@ test(function() {
assert_false(proxy.supports('scrollTopa'));
assert_false(proxy.supports('あ'));
+
+ // This is a hack to get a 16-bit string for a supported property.
esprehn 2015/12/30 18:31:30 Our strings should select the latin1 storage for a
+ var transform16 = new TextDecoder('utf-16').decode(new TextEncoder('utf-16').encode('transform'));
+ assert_true(transform16 === 'transform');
+ assert_true(proxy.supports(transform16));
}, "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