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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js

Issue 2397833005: Add a test that rects with fixed-size SVGs don't get invalidated on resize of container. (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-fixed-size-relative-child.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js b/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
index ab910edcf9d541f6eaee72494d9ecbb15701598c..34440d106ac702b22363ee2e5e124192cd8a6ef1 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/resources/text-based-repaint.js
@@ -16,6 +16,8 @@ if (window.internals) {
// Add string names of objects that should be invalidated here. If you use this feature,
// you must also include testharness.js.
window.expectedObjectInvalidations = [];
+// Objects which must *not* be invalidated.
+window.expectedObjectNonInvalidations = [];
function runRepaintTest()
{
@@ -64,6 +66,10 @@ function checkObjectPaintInvalidations(layersWithInvalidationsText)
window.expectedObjectInvalidations.forEach(function(objectName) {
assert_true(objectNameSet.has(objectName), "Expected object to be invalidated, but it was not: '" + objectName + "'");
});
+
+ window.expectedObjectNonInvalidations.forEach(function(objectName) {
+ assert_false(objectNameSet.has(objectName), "Expected object to *not* be invalidated, but it was: '" + objectName + "'");
+ });
}
function finishRepaintTest()
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-fixed-size-relative-child.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698