1 description('This tests that properties on the classList persists GC.');
5 if (window.GCController)
6 return GCController.collect();
8 for (var i = 0; i < 10000; i++) {
13 var d = document.createElement('div');
15 // Ensure the classList is created.
16 var classList = d.classList;
18 // Set a custom property.
19 d.classList.life = 42;
20 shouldEvaluateTo('d.classList.life', 42);
22 // Null out reference to the dataset.
27 // Test that the classList wrapper persisted the GC and still has the custom property.
28 shouldEvaluateTo('d.classList.life', 42);