https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9c9417e5255836be1d428e82b48b92070258efd8 authored by Tsuyoshi Horo on 02 April 2018, 03:41:31 UTC
Set SkipServiceWorker flag for synchronous loads from the main thread.
Tip revision: 9c9417e
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