| <script src="../../resources/gc.js"></script> |
| testRunner.waitUntilDone(); |
| style = document.createElement('style'); |
| style.textContent = '@font-face { font-family: "A"; }'; |
| document.head.appendChild(style); |
| rulestyle = document.styleSheets[0].cssRules[0].style; |
| document.head.removeChild(style); |
| obj = rulestyle.parentRule; |
| // If the gc() actually successfully reaps everything it can, then obj |
| // will end up null (post-fix). gc() is not guaranteed to reap the font-face |
| // rule, however, particularly in the browser context. |
| document.body.innerText = 'PASS'; |
| <body onload="load()"></body> |