| <script src="../resources/js-test-pre.js"></script> |
| description("Basic test for the memory pressure simulation mechanism."); |
| debug("Verify that we're not running under memory pressure from the beginning."); |
| shouldBe("internals.isUnderMemoryPressure", "false"); |
| debug("Begin simulated memory pressure."); |
| internals.beginSimulatedMemoryPressure(); |
| shouldBe("internals.isUnderMemoryPressure", "true"); |
| debug("End simulated memory pressure."); |
| internals.endSimulatedMemoryPressure(); |
| shouldBe("internals.isUnderMemoryPressure", "false"); |
| <script src="../resources/js-test-post.js"></script> |