https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 40d551e832b97a6041f7b093d5f20cf07b381eef authored by Charles Harrison on 23 February 2018, 16:02:30 UTC
[tab-under] Add tentative WPT for tab-under blocking
Tip revision: 40d551e
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