chromium/third_party/blink/web_tests/external/wpt/webstorage/resources/local_set_item_iframe.html

<!DOCTYPE HTML>
<html>
 <body>
    <script>
        if (('localStorage' in window) && window.localStorage !== null){
            try {
                localStorage.setItem("name", "user1");
            } catch (e) {
                parent.fail("setItem method is failed.");
            }
        } else {
            parent.fail("localStorage is not supported.");
        }
    </script>
 </body>
</html>