https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2302b20508e95573c2256cd4d4f3b5193759cc67 authored by Jim Evans on 15 March 2018, 19:56:59 UTC
Changing WebDriver test_parent_htmldocument to expect error
Tip revision: 2302b20
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