Chromium Code Reviews| 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..81352ab40b956c16ef4ad5021866940f58e7bc1c 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 be invalidated, but it was not: '" + objectName + "'"); |
|
fs
2016/10/07 07:55:33
Nit: Need to move the "not" in the description tex
chrishtr
2016/10/07 16:41:09
Done.
|
| + }); |
| } |
| function finishRepaintTest() |