https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ccef6bd283af10f72b14e455f8d9f22e3cf97424 authored by Chris Lilley on 12 April 2018, 14:39:49 UTC
test the ffs descriptor (property already tested)
Tip revision: ccef6bd
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