Re: [url-tests] URL: file and non-special URL setters (#4696)

whatwg-url PR: https://github.com/jsdom/whatwg-url/pull/71

All the new tests appear to pass, but a bunch of old ones have become invalidated, for the host and hostname setters. I'll only list host since hostname is analogous. As usual, "expected" = new WPTs, "actual" = jsdom/whatwg-url with the spec patch applied.

```
  1) Web platform tests setters host <sc://x/>.host = " " :

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///

  2) Web platform tests setters host <sc://x/>.host = "
" :

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///
" :) Web platform tests setters host <sc://x/>.host = "

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///

  4) Web platform tests setters host <sc://x/>.host = "#" :

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///

  5) Web platform tests setters host <sc://x/>.host = "/" :

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///

  6) Web platform tests setters host <sc://x/>.host = "?" :

      AssertionError: 'sc://x/' == 'sc:///'
      + expected - actual

      -sc://x/
      +sc:///

  7) Web platform tests setters host <view-source+http://example.net/foo>.host = "" The empty host is OK for non-special schemes:

      AssertionError: 'view-source+http://example.net/foo' == 'view-source+http:///foo'
      + expected - actual

      -view-source+http://example.net/foo
      +view-source+http:///foo
```

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4696#issuecomment-276870320

Received on Thursday, 2 February 2017 05:13:17 UTC