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

Unified Diff: third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js

Issue 2393443002: Adjust compositing tests to be SPv2-compatible. (Closed)
Patch Set: none Created 4 years, 2 months 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/compositing/overflow/resources/composited-scroll.js
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js b/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js
new file mode 100644
index 0000000000000000000000000000000000000000..d79d219e332b1a69d257344fdce4b3440cc1ac3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/resources/composited-scroll.js
@@ -0,0 +1,9 @@
+function isUsingCompositedScrolling(layers) {
+ var foundScrollingContentsLayer = false;
+ layers["layers"].forEach(function(layer) {
+ if (layer.name == "Scrolling Contents Layer")
+ foundScrollingContentsLayer = true;
+ });
+
+ return foundScrollingContentsLayer;
+}

Powered by Google App Engine
This is Rietveld 408576698