| 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()
|
|
|