summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/storage/disallowed-storage.html
blob: 1378b18f37c625a390e32201c6d3099c26ab6b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <script src="../js/resources/js-test-pre.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>
    <script src="../js/resources/js-test-post.js"></script>
</body>
</html>