https://github.com/web-platform-tests/wpt
Raw File
Tip revision: de6dd7d3bda8de4c5a09703b3b976b296af46ee5 authored by Luke Bjerring on 28 March 2018, 20:27:32 UTC
Use includes instead of find
Tip revision: de6dd7d
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