Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / storage / disallowed-storage.html
blob58dfe0d8c9386d597bc19aa80ced9ddb474504a8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <script src="../../resources/js-test.js"></script>
7 <script>
8 description("This tests that storage methods throw exceptions when storage is disabled with reasonable messages.");
10 if (window.testRunner)
11 testRunner.setStorageAllowed(false);
13 shouldThrow('window.sessionStorage');
14 shouldThrow('window.localStorage');
15 </script>
16 </body>
17 </html>