https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 26a6598cc1da7924bc2eeb5e83603e0881ce68ae authored by Emilio Cobos Álvarez on 09 April 2018, 07:01:25 UTC
Make LazyFC assertions actually hold.
Tip revision: 26a6598
document-domain.html
<!doctype html>
<title>localStorage and document.domain</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<iframe></iframe>
<script>
  async_test(function(t) {
    frames[0].addEventListener("storage", function(e) {
      t.step(function() {
        localStorage.clear()
        t.done()
      })
    })
    frames[0].document.domain = document.domain
    localStorage.setItem("test", "test")
  })
</script>
back to top