Index: LayoutTests/fast/css/invalidation/invalidation-set-not.html |
diff --git a/LayoutTests/fast/css/invalidation/invalidation-set-not.html b/LayoutTests/fast/css/invalidation/invalidation-set-not.html |
index 0e9f82632f2f5caa76eb70027e7636a808f5f75b..82b6916ec1b930fb260bb8a68e0c86b6d5202e46 100644 |
--- a/LayoutTests/fast/css/invalidation/invalidation-set-not.html |
+++ b/LayoutTests/fast/css/invalidation/invalidation-set-not.html |
@@ -86,7 +86,7 @@ test(function() { |
assert_equals(getComputedStyle(r2).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent"); |
t2.className = ""; |
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Recalc changed element and #r2"); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "Recalc changed element and #r2"); |
assert_equals(getComputedStyle(r2).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change"); |
}, "Id descendant of negated class"); |
@@ -110,7 +110,7 @@ test(function() { |
assert_equals(getComputedStyle(r5).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent"); |
t5.className = ""; |
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Recalc changed element and #r5"); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "Recalc changed element and #r5"); |
assert_equals(getComputedStyle(r5).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change"); |
}, "Id descendant of negated class in :-webkit-any"); |
@@ -118,7 +118,7 @@ test(function() { |
assert_equals(getComputedStyle(r6).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent"); |
t6.className = "t6"; |
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Recalc changed element and #r6"); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "Recalc changed element and #r6"); |
assert_equals(getComputedStyle(r6).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change"); |
}, "Negated class with id descendant of class"); |
@@ -126,7 +126,7 @@ test(function() { |
assert_equals(getComputedStyle(r7).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent"); |
t7.className = ""; |
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 4, "Recalc changed element and #r7"); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "Recalc changed element and #r7"); |
assert_equals(getComputedStyle(r7).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change"); |
}, "Id descendant of negated sibling class"); |
@@ -134,7 +134,7 @@ test(function() { |
assert_equals(getComputedStyle(r8).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent"); |
t8.className = "t8"; |
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 6, "Subtree style recalc"); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 3, "Subtree style recalc"); |
assert_equals(getComputedStyle(r8).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change"); |
}, "Negated class descendant of sibling class"); |