blob: 434a904bded72be9c68ce81ced56824c0488b23b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<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>
<script src="../resources/js-test-post.js"></script>
</body>
</html>