https://github.com/web-platform-tests/wpt
Raw File
Tip revision: efebd77ee5ec77d90333b10605c37aa1e6698ee5 authored by moz-wptsync-bot on 14 March 2018, 18:16:47 UTC
Use WorkerRef in FileReader,
Tip revision: efebd77
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