https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 339894deeec26cfdb7e9d084298abe68c9cdb646 authored by Anthony Ramine on 07 April 2018, 11:47:48 UTC
Avoid async/await in /webstorage/idlharness.html
Tip revision: 339894d
url-tojson.html
<!doctype html>
<meta charset=utf-8>
<title>URL's toJSON()</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(() => {
  const a = new URL("https://example.com/")
  assert_equals(JSON.stringify(a), "\"https://example.com/\"")
})
</script>
back to top