blob: 58dfe0d8c9386d597bc19aa80ced9ddb474504a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!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>
|