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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html

Issue 1509853002: Remove checkForChildrenAdjacentRuleChanges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 #t1 + div + div + #r1, 5 #t1 + div + div + #r1,
6 #t2 + div + div + #r2, 6 #t2 + div + div + #r2,
7 #t3 + div + div + #r3 { background-color: rgb(0, 128, 0); } 7 #t3 + div + div + #r3 { background-color: rgb(0, 128, 0); }
8 </style> 8 </style>
9 <div> 9 <div>
10 <div id="t1"></div> 10 <div id="t1"></div>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }, "Insert between siblings"); 45 }, "Insert between siblings");
46 46
47 test(function() { 47 test(function() {
48 var i2 = document.getElementById('i2'); 48 var i2 = document.getElementById('i2');
49 var r2 = document.getElementById('r2'); 49 var r2 = document.getElementById('r2');
50 assert_equals(getComputedStyle(r2).backgroundColor, "rgba(0, 0, 0, 0)", "Bac kground color should initially be transparent"); 50 assert_equals(getComputedStyle(r2).backgroundColor, "rgba(0, 0, 0, 0)", "Bac kground color should initially be transparent");
51 51
52 var t2 = document.createElement('div'); 52 var t2 = document.createElement('div');
53 t2.id = 't2'; 53 t2.id = 't2';
54 i2.parentNode.insertBefore(t2, i2); 54 i2.parentNode.insertBefore(t2, i2);
55 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 5, "Subt ree style recalc"); 55 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 4, "Subt ree style recalc");
56 assert_equals(getComputedStyle(r2).backgroundColor, "rgb(0, 128, 0)", "Backg round color is green after class change"); 56 assert_equals(getComputedStyle(r2).backgroundColor, "rgb(0, 128, 0)", "Backg round color is green after class change");
57 }, "Insert before siblings"); 57 }, "Insert before siblings");
58 58
59 test(function() { 59 test(function() {
60 var d3 = document.getElementById('d3'); 60 var d3 = document.getElementById('d3');
61 var r3 = document.getElementById('r3'); 61 var r3 = document.getElementById('r3');
62 assert_true(!!window.eventSender, "This test only works with eventSender pre sent");
63 62
64 d3.parentNode.removeChild(d3); 63 d3.parentNode.removeChild(d3);
65 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 3, "Subt ree style recalc"); 64 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 3, "Subt ree style recalc");
66 assert_equals(getComputedStyle(r3).backgroundColor, "rgb(0, 128, 0)", "Backg round color is green after class change"); 65 assert_equals(getComputedStyle(r3).backgroundColor, "rgb(0, 128, 0)", "Backg round color is green after class change");
67 }, "Remove between siblings"); 66 }, "Remove between siblings");
68 67
69 </script> 68 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698