<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<script src="../../resources/js-test.js"></script> | |
<script> | |
description("This tests that storage methods throw exceptions when storage is disabled with reasonable messages."); | |
if (window.testRunner) | |
testRunner.setStorageAllowed(false); | |
shouldThrow('window.sessionStorage'); | |
shouldThrow('window.localStorage'); | |
</script> | |
</body> | |
</html> |