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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/skip-cleaning-up-anonymous-wrappers-when-subtree-being-destroyed.html

Issue 2816543003: Make skip-cleaning-up-anonymous-wrappers-when-subtree-being-destroyed.html deterministic (Closed)
Patch Set: Created 3 years, 8 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 <object> 2 <object>
3 <ul> </ul> 3 <ul> </ul>
4 <table> 4 <table>
5 <option> <option> 5 <option> <option>
6 </table> 6 </table>
7 </object> 7 </object>
8 <script> 8 <script>
9 window.setInterval(function(){ 9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
12 }
13 var count = 0;
14 var id = window.setInterval(function(){
10 var oe = document.getElementsByTagName("*"); 15 var oe = document.getElementsByTagName("*");
11 for (var i = 0; i < oe.length; i++) { 16 for (var i = 0; i < oe.length; i++) {
12 var o = oe.item(i); 17 var o = oe.item(i);
13 if (!o.firstElementChild && o != document.documentElement) { 18 if (!o.firstElementChild && o != document.documentElement) {
14 p = o.parentNode; 19 p = o.parentNode;
15 p.replaceChild(document.createTextNode("PASS"), o) 20 p.replaceChild(document.createTextNode("PASS"), o)
16 } 21 }
17 } 22 }
23 if (++count === 2) {
24 window.clearInterval(id);
25 if (window.testRunner)
26 testRunner.notifyDone();
27 }
18 }); 28 });
19 </script> 29 </script>
20 <p id="title">crbug.com/549544: Don't clean up anonymous wrappers when the eleme nt's branch or sub-tree is being destroyed.</p> 30 <p id="title">crbug.com/549544: Don't clean up anonymous wrappers when the eleme nt's branch or sub-tree is being destroyed.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698