| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests that the Performance wrapper stays alive for as long as its frame."); |
| shouldBe("window.performance.__proto__", "Performance.prototype"); |
| shouldBeUndefined("window.performance.customProperty"); |
| evalAndLog("window.performance.customProperty = 1"); |
| shouldBe("window.performance.customProperty", "1"); |
| shouldBe("window.performance.customProperty", "1"); |
| shouldBe("window.performance.customProperty", "1"); |
| setTimeout(checkAndFinish, 0); |
| function checkAndFinish() |
| shouldBe("window.performance.customProperty", "1"); |
| <script src="../../resources/js-test-post.js"></script> |