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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/htmlcollection-reachable.html

Issue 1934183002: Have htmlcollection-reachable.html force the one GC needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync expectations Created 4 years, 7 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/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <form></form> 3 <form></form>
4 <table><tbody><tr></tr></tbody></table> 4 <table><tbody><tr></tr></tbody></table>
5 <fieldset></fieldset> 5 <fieldset></fieldset>
6 <select></select> 6 <select></select>
7 <datalist></datalist> 7 <datalist></datalist>
8 <map></map> 8 <map></map>
9 <script> 9 <script>
10 10
(...skipping 22 matching lines...) Expand all
33 'fieldset.elements', 33 'fieldset.elements',
34 'form.elements', 34 'form.elements',
35 'map.areas', 35 'map.areas',
36 'section.rows', 36 'section.rows',
37 'select.selectedOptions', 37 'select.selectedOptions',
38 'table.rows', 38 'table.rows',
39 'table.tBodies', 39 'table.tBodies',
40 'tableRow.cells', 40 'tableRow.cells',
41 ]; 41 ];
42 42
43 for (var i = 0; i < collections.length; i++) { 43 // Note: as document.plugins is [ImplementedAs=embeds],
44 var code = collections[i]; 44 // use customProperty{i} to ensure uniqueness.
45 eval(code).customProperty = i; 45 for (var i = 0; i < collections.length; ++i)
46 gc(); 46 eval(collections[i])['customProperty' + i] = i;
47 shouldBe(code + '.customProperty', '' + i);
48 }
49 47
48 gc();
49
50 for (var i = 0; i < collections.length; ++i)
51 shouldBe(collections[i] + '.customProperty' + i, '' + i);
50 </script> 52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698