| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body style="color:black"> | 5 <body style="color:black"> |
| 6 <script> | 6 <script> |
| 7 description("Test that custom properties on CSSValues of inline style declar
ations survive GC"); | 7 description("Test that custom properties on CSSValues of inline style declar
ations survive GC"); |
| 8 | 8 |
| 9 var expr = 'document.body.style.getPropertyCSSValue("color")'; | 9 var expr = 'document.body.style.getPropertyCSSValue("color")'; |
| 10 shouldBe(expr + ".cssText", '"black"'); | 10 shouldBe(expr + ".cssText", '"black"'); |
| 11 eval(expr).foo = "bar" | 11 eval(expr).foo = "bar" |
| 12 gc(); | 12 gc(); |
| 13 shouldBe(expr + ".foo", "'bar'"); | 13 shouldBe(expr + ".foo", "'bar'"); |
| 14 | 14 |
| 15 </script> | 15 </script> |
| 16 <script src="../../js/resources/js-test-post.js"></script> | |
| 17 </body> | 16 </body> |
| 18 </html> | 17 </html> |
| OLD | NEW |