https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 826375a734caf3cbe9b757ca69dbef9d578aa76d authored by Robert Ma on 26 March 2018, 20:24:51 UTC
Better explain test execution in resources/test/README
Tip revision: 826375a
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