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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/invalidate-caret-before-text-node-update.html

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/paint/invalidation/invalidate-caret-before-text-node-update.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/invalidate-caret-before-text-node-update.html b/third_party/WebKit/LayoutTests/paint/invalidation/invalidate-caret-before-text-node-update.html
index 3c90206400baca23e094cce33d908904dd3da87d..fb6ade7827c8484fa0162c276049f22b48675775 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/invalidate-caret-before-text-node-update.html
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/invalidate-caret-before-text-node-update.html
@@ -20,14 +20,14 @@ test(function() {
document.execCommand('delete');
if (window.internals) {
- var layers = JSON.parse(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS));
- assert_equals(layers.children[0].paintInvalidations[2].reason, "invalidate paint rectangle");
- var previousOffset = layers.children[0].paintInvalidations[2].rect[0];
- assert_equals(layers.children[0].paintInvalidations[2].rect[3], 20, "Old caret rect location");
+ var layers = JSON.parse(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS))["layers"]
+ assert_equals(layers[0].paintInvalidations[2].reason, "invalidate paint rectangle");
+ var previousOffset = layers[0].paintInvalidations[2].rect[0];
+ assert_equals(layers[0].paintInvalidations[2].rect[3], 20, "Old caret rect location");
- assert_equals(layers.children[0].paintInvalidations[3].reason, "invalidate paint rectangle");
+ assert_equals(layers[0].paintInvalidations[3].reason, "invalidate paint rectangle");
// Check that thet x offset is previousOffset - 1. This for the caret rect after delete.
- assert_not_equals(layers.children[0].paintInvalidations[3].rect[0], previousOffset, "New caret rect location");
+ assert_not_equals(layers[0].paintInvalidations[3].rect[0], previousOffset, "New caret rect location");
}
});
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698