| <script src="../../../resources/js-test-pre.js"></script> |
| description('This tests that properties on the classList persists GC.'); |
| return GCController.collect(); |
| for (var i = 0; i < 10000; i++) { |
| var d = document.createElement('div'); |
| // Ensure the classList is created. |
| var classList = d.classList; |
| // Set a custom property. |
| shouldEvaluateTo('d.classList.life', 42); |
| // Null out reference to the dataset. |
| // Test that the classList wrapper persisted the GC and still has the custom property. |
| shouldEvaluateTo('d.classList.life', 42); |
| <script src="../../../resources/js-test-post.js"></script> |