https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f1016c6768b8c41100ecaab5e00da9c2853cdaf9 authored by James Graham on 22 April 2014, 20:07:16 UTC
Disable some tests that depend on https since we don't really support that yet.
Tip revision: f1016c6
storage_session_length_js.html
<!DOCTYPE HTML>
<html>
 <head>
  <title>Web Storage</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
 </head>
 <body>
    <h1>storage_session_length</h1>
    <div id="log"></div>
    <script>
        test(function() {
            sessionStorage.clear();
            assert_equals(sessionStorage.length, 0, "sessionStorage.length")

            sessionStorage["name"] = "user1";
            sessionStorage["age"] = "20";

            assert_equals(sessionStorage.length, 2, "sessionStorage.length")
        });
    </script>
 </body>
</html>
back to top