https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a8fad0798ea933c6e48cc7910959dd9add4b1ec1 authored by James Graham on 15 May 2018, 21:31:15 UTC
Don't assume file_is_test when there's a top-level non-assert error
Tip revision: a8fad07
local_change_item_iframe.html
<!DOCTYPE HTML>
<html>
  <body>
    <script>
        if (('localStorage' in window) && window.localStorage !== null){
            try {
                localStorage.setItem("name", "user1");
                localStorage.setItem("name", "user2");
            } catch (e) {
                parent.fail("setItem method is failed.");
            }
            localStorage.clear();
        } else {
            parent.fail("localStorage is not supported.");
        }
    </script>
  </body>
</html>
back to top