https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d273149ec04b974e357473b2849ce6d916b2866c authored by Ms2ger on 21 September 2018, 14:10:07 UTC
Improve the handling of generic types in IdlInterfaceMember#toString.
Tip revision: d273149
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