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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/resources/test-runner-invalidation-logging.js

Issue 2397333002: Change layerTreeAsText to default to layer lists. (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/csspaint/resources/test-runner-invalidation-logging.js
diff --git a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-invalidation-logging.js b/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-invalidation-logging.js
index 09ee086b1b93092d3e5e0e8d938417e9112d6c1a..87e19283ed4ee9a975951b8f608cba325fdd1dbe 100644
--- a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-invalidation-logging.js
+++ b/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-invalidation-logging.js
@@ -77,7 +77,7 @@ function registerTest(imageType, test) {
// Check that the we got the correct paint invalidation.
if (window.internals) {
const layers = JSON.parse(internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS));
- const paintInvalidations = layers['children'][0]['paintInvalidations'];
+ const paintInvalidations = layers['layers'][0]['paintInvalidations'];
assert_equals(!paintInvalidations, !!test.noInvalidation);
if (paintInvalidations) {
assert_equals(paintInvalidations.length, 1, 'There should be only one paint invalidation.');

Powered by Google App Engine
This is Rietveld 408576698