https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 886f55b5a949bd22aa394d58084b1d56d182e000 authored by Frédéric Wang on 11 June 2018, 12:41:20 UTC
Regenerate WOFF2 support fonts
Tip revision: 886f55b
storage_key_empty_string.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebStorage Test: Storage - key with empty string</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
  ["localStorage", "sessionStorage"].forEach(function(name) {
    test(function () {
      var storage = window[name];
      storage.clear();

      storage.setItem("", "empty string");
      assert_equals(storage.getItem(""), "empty string");

    }, name + ".key with empty string");
  });
</script>

back to top