Changeset 217095 in webkit


Ignore:
Timestamp:
May 18, 2017 9:01:23 PM (7 years ago)
Author:
Chris Dumez
Message:

Re-sync url web-platform-tests
https://bugs.webkit.org/show_bug.cgi?id=172333

Reviewed by Youenn Fablet.

Re-sync url web-platform-tests from upstream 11216539.

  • web-platform-tests/url/README.md:
  • web-platform-tests/url/a-element-expected.txt:
  • web-platform-tests/url/a-element-origin-expected.txt:
  • web-platform-tests/url/a-element-origin-xhtml-expected.txt:
  • web-platform-tests/url/a-element-xhtml-expected.txt:
  • web-platform-tests/url/failure-expected.txt:
  • web-platform-tests/url/failure.html:
  • web-platform-tests/url/historical.any-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker-expected.txt.
  • web-platform-tests/url/historical.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
  • web-platform-tests/url/historical.any.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.js.

(self.GLOBAL.isWindow):

  • web-platform-tests/url/historical.any.worker-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker-expected.txt.
  • web-platform-tests/url/historical.any.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
  • web-platform-tests/url/historical.html: Removed.
  • web-platform-tests/url/interfaces.any-expected.txt: Added.
  • web-platform-tests/url/interfaces.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
  • web-platform-tests/url/interfaces.any.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/interfaces.html.
  • web-platform-tests/url/interfaces.any.worker-expected.txt: Added.
  • web-platform-tests/url/interfaces.any.worker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
  • web-platform-tests/url/url-constructor-expected.txt:
  • web-platform-tests/url/url-origin-expected.txt:
  • web-platform-tests/url/urlsearchparams-constructor-expected.txt:
  • web-platform-tests/url/urlsearchparams-constructor.html:
  • web-platform-tests/url/urltestdata.json:
  • web-platform-tests/url/w3c-import.log:
Location:
trunk/LayoutTests
Files:
2 added
1 deleted
15 edited
4 copied
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/TestExpectations

    r216975 r217095  
    518518[ Debug ] fullscreen/full-screen-iframe-legacy.html [ Pass Crash ]
    519519webkit.org/b/151488 [ Debug ] imported/blink/editing/selection/deleteFromDocument-undo-crash.html [ Skip ]
     520
     521webkit.org/b/172337 [ Debug ] imported/w3c/web-platform-tests/url/failure.html [ Crash ]
    520522
    521523webkit.org/b/139634 [ Debug ] fast/selectors/matches-backtracking.html [ Slow ]
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r217069 r217095  
     12017-05-18  Chris Dumez  <cdumez@apple.com>
     2
     3        Re-sync url web-platform-tests
     4        https://bugs.webkit.org/show_bug.cgi?id=172333
     5
     6        Reviewed by Youenn Fablet.
     7
     8        Re-sync url web-platform-tests from upstream 11216539.
     9
     10        * web-platform-tests/url/README.md:
     11        * web-platform-tests/url/a-element-expected.txt:
     12        * web-platform-tests/url/a-element-origin-expected.txt:
     13        * web-platform-tests/url/a-element-origin-xhtml-expected.txt:
     14        * web-platform-tests/url/a-element-xhtml-expected.txt:
     15        * web-platform-tests/url/failure-expected.txt:
     16        * web-platform-tests/url/failure.html:
     17        * web-platform-tests/url/historical.any-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker-expected.txt.
     18        * web-platform-tests/url/historical.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
     19        * web-platform-tests/url/historical.any.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.js.
     20        (self.GLOBAL.isWindow):
     21        * web-platform-tests/url/historical.any.worker-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker-expected.txt.
     22        * web-platform-tests/url/historical.any.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
     23        * web-platform-tests/url/historical.html: Removed.
     24        * web-platform-tests/url/interfaces.any-expected.txt: Added.
     25        * web-platform-tests/url/interfaces.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
     26        * web-platform-tests/url/interfaces.any.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/interfaces.html.
     27        * web-platform-tests/url/interfaces.any.worker-expected.txt: Added.
     28        * web-platform-tests/url/interfaces.any.worker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.html.
     29        * web-platform-tests/url/url-constructor-expected.txt:
     30        * web-platform-tests/url/url-origin-expected.txt:
     31        * web-platform-tests/url/urlsearchparams-constructor-expected.txt:
     32        * web-platform-tests/url/urlsearchparams-constructor.html:
     33        * web-platform-tests/url/urltestdata.json:
     34        * web-platform-tests/url/w3c-import.log:
     35
    1362017-05-18  Daniel Bates  <dabates@apple.com>
    237
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/README.md

    r204948 r217095  
    2222[parsing]: https://url.spec.whatwg.org/#concept-basic-url-parser
    2323[API]: https://url.spec.whatwg.org/#api
    24 
    25 [`annevk/url`](https://github.com/annevk/url) hosts some other files that might be of
    26 interest if you want to create additional tests.
    27 
    28 Similar to `a-element.html` it would be trivial to add more tests for other objects that
    29 expose links (e.g. URL and `<area>`). There's also room for enhancement and bits that
    30 require independent tests:
    31 
    32 * The encoding part of the URL parser
    33 * The state override part of the URL parser (setting individual properties of a URL)
    34 * Origin serialization
    35 * `application/x-www-form-urlencoded`
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt

    r215164 r217095  
    265265PASS Parsing: <http://GOO  goo.com> against <http://other.com/>
    266266PASS Parsing: <http://GOO​⁠goo.com> against <http://other.com/>
     267PASS Parsing: <\0 http://example.com/ \r > against <about:blank>
    267268PASS Parsing: <http://www.foo。bar.com> against <http://other.com/>
    268269PASS Parsing: <http://﷐zyx.com> against <http://other.com/>
     
    289290PASS Parsing: <https://x x:12> against <about:blank>
    290291PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/>
     292PASS Parsing: <http://./> against <about:blank>
     293PASS Parsing: <http://../> against <about:blank>
     294PASS Parsing: <http://0..0x300/> against <about:blank>
    291295PASS Parsing: <http://[www.google.com]/> against <about:blank>
    292296PASS Parsing: <http://[google.com]> against <http://other.com/>
     
    423427FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos"
    424428FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai"
     429FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|"
     430PASS Parsing: <C|#> against <file://host/dir/file>
     431PASS Parsing: <C|?> against <file://host/dir/file>
     432PASS Parsing: <C|/> against <file://host/dir/file>
     433PASS Parsing: <C|
     434/> against <file://host/dir/file>
     435PASS Parsing: <C|\> against <file://host/dir/file>
     436PASS Parsing: <C> against <file://host/dir/file>
     437PASS Parsing: <C|a> against <file://host/dir/file>
    425438FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/"
    426439FAIL Parsing: <file://1.2.3.4/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://1.2.3.4/C:/"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-expected.txt

    r213882 r217095  
    206206PASS Parsing origin: <http://ExAmPlE.CoM> against <http://other.com/>
    207207PASS Parsing origin: <http://GOO​⁠goo.com> against <http://other.com/>
     208PASS Parsing origin: <\0 http://example.com/ \r > against <about:blank>
    208209PASS Parsing origin: <http://www.foo。bar.com> against <http://other.com/>
    209210PASS Parsing origin: <https://x/�?�#�> against <about:blank>
    210211PASS Parsing origin: <http://Go.com> against <http://other.com/>
    211 FAIL Parsing origin: <http://你好你好> against <http://other.com/> assert_equals: origin expected "http://你好你好" but got "http://xn--6qqa088eba"
    212 FAIL Parsing origin: <https://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "https://faß.example" but got "https://xn--fa-hia.example"
     212PASS Parsing origin: <http://你好你好> against <http://other.com/>
     213PASS Parsing origin: <https://faß.ExAmPlE/> against <about:blank>
     214FAIL Parsing origin: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example"
    213215PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/>
    214216PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/>
    215217PASS Parsing origin: <http://0Xc0.0250.01> against <http://other.com/>
     218PASS Parsing origin: <http://./> against <about:blank>
     219PASS Parsing origin: <http://../> against <about:blank>
     220PASS Parsing origin: <http://0..0x300/> against <about:blank>
    216221PASS Parsing origin: <http://foo:💩@example.com/bar> against <http://other.com/>
    217222FAIL Parsing origin: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
     
    254259FAIL Parsing origin: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    255260FAIL Parsing origin: <wow:%1G> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    256 FAIL Parsing origin: <ftp://%e2%98%83> against <about:blank> assert_equals: origin expected "ftp://☃" but got "ftp://xn--n3h"
    257 FAIL Parsing origin: <https://%e2%98%83> against <about:blank> assert_equals: origin expected "https://☃" but got "https://xn--n3h"
     261PASS Parsing origin: <ftp://%e2%98%83> against <about:blank>
     262PASS Parsing origin: <https://%e2%98%83> against <about:blank>
    258263PASS Parsing origin: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
    259264PASS Parsing origin: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-origin-xhtml-expected.txt

    r213882 r217095  
    206206PASS Parsing origin: <http://ExAmPlE.CoM> against <http://other.com/>
    207207PASS Parsing origin: <http://GOO​⁠goo.com> against <http://other.com/>
     208PASS Parsing origin: <\0 http://example.com/ \r > against <about:blank>
    208209PASS Parsing origin: <http://www.foo。bar.com> against <http://other.com/>
    209210PASS Parsing origin: <https://x/�?�#�> against <about:blank>
    210211PASS Parsing origin: <http://Go.com> against <http://other.com/>
    211 FAIL Parsing origin: <http://你好你好> against <http://other.com/> assert_equals: origin expected "http://你好你好" but got "http://xn--6qqa088eba"
    212 FAIL Parsing origin: <https://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "https://faß.example" but got "https://xn--fa-hia.example"
     212PASS Parsing origin: <http://你好你好> against <http://other.com/>
     213PASS Parsing origin: <https://faß.ExAmPlE/> against <about:blank>
     214FAIL Parsing origin: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example"
    213215PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/>
    214216PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/>
    215217PASS Parsing origin: <http://0Xc0.0250.01> against <http://other.com/>
     218PASS Parsing origin: <http://./> against <about:blank>
     219PASS Parsing origin: <http://../> against <about:blank>
     220PASS Parsing origin: <http://0..0x300/> against <about:blank>
    216221PASS Parsing origin: <http://foo:💩@example.com/bar> against <http://other.com/>
    217222FAIL Parsing origin: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
     
    254259FAIL Parsing origin: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    255260FAIL Parsing origin: <wow:%1G> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    256 FAIL Parsing origin: <ftp://%e2%98%83> against <about:blank> assert_equals: origin expected "ftp://☃" but got "ftp://xn--n3h"
    257 FAIL Parsing origin: <https://%e2%98%83> against <about:blank> assert_equals: origin expected "https://☃" but got "https://xn--n3h"
     261PASS Parsing origin: <ftp://%e2%98%83> against <about:blank>
     262PASS Parsing origin: <https://%e2%98%83> against <about:blank>
    258263PASS Parsing origin: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
    259264PASS Parsing origin: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-xhtml-expected.txt

    r215164 r217095  
    265265PASS Parsing: <http://GOO  goo.com> against <http://other.com/>
    266266PASS Parsing: <http://GOO​⁠goo.com> against <http://other.com/>
     267PASS Parsing: <\0 http://example.com/ \r > against <about:blank>
    267268PASS Parsing: <http://www.foo。bar.com> against <http://other.com/>
    268269PASS Parsing: <http://﷐zyx.com> against <http://other.com/>
     
    289290PASS Parsing: <https://x x:12> against <about:blank>
    290291PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/>
     292PASS Parsing: <http://./> against <about:blank>
     293PASS Parsing: <http://../> against <about:blank>
     294PASS Parsing: <http://0..0x300/> against <about:blank>
    291295PASS Parsing: <http://[www.google.com]/> against <about:blank>
    292296PASS Parsing: <http://[google.com]> against <http://other.com/>
     
    423427FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos"
    424428FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai"
     429FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|"
     430PASS Parsing: <C|#> against <file://host/dir/file>
     431PASS Parsing: <C|?> against <file://host/dir/file>
     432PASS Parsing: <C|/> against <file://host/dir/file>
     433PASS Parsing: <C|
     434/> against <file://host/dir/file>
     435PASS Parsing: <C|\> against <file://host/dir/file>
     436PASS Parsing: <C> against <file://host/dir/file>
     437PASS Parsing: <C|a> against <file://host/dir/file>
    425438FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/"
    426439FAIL Parsing: <file://1.2.3.4/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://1.2.3.4/C:/"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/failure-expected.txt

    r213882 r217095  
     1CONSOLE MESSAGE: line 38: Not allowed to load local resource: example:1
     2CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''.
     3
     4CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''.
     5
     6CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''.
     7
     8CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://user:pass@/'.
     9
     10CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://foo:-80/'.
     11
     12CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://user@/www.example.com'.
     13
     14CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://@/www.example.com'.
     15
     16CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https:@/www.example.com'.
     17
     18CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://a:b@/www.example.com'.
     19
     20CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://@:www.example.com'.
     21
     22CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://�'.
     23
     24CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://%EF%BF%BD'.
     25
     26CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://x x:12'.
     27
     28CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://[www.google.com]/'.
     29
     30CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://
     31CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc:// /'.
     32
     33CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://@/'.
     34
     35CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://te@s:t@/'.
     36
     37CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://:/'.
     38
     39CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://:12/'.
     40
     41CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://[/'.
     42
     43CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://\/'.
     44
     45CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://]/'.
     46
     47CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'ftp://example.com%80/'.
     48
     49CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'ftp://example.com%A0/'.
     50
     51CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://example.com%80/'.
     52
     53CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://example.com%A0/'.
     54
     55CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0::0::0]'.
     56
     57CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:.0]'.
     58
     59CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:0:]'.
     60
     61CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1:2:3:4:5:6:7.0.0.0.1]'.
     62
     63CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.00.0.0.0]'.
     64
     65CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.290.0.0.0]'.
     66
     67CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.23.23]'.
     68
     69CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://?'.
     70
     71CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://#'.
     72
     73CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'non-special://[:80/'.
     74
    175
    276PASS Loading data…
     
    579PASS sendBeacon(): file://example:1/ should throw
    680FAIL Location's href: file://example:1/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     81FAIL window.open(): file://example:1/ should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    782PASS URL's href: file://example:test/ should throw
    883FAIL XHR: file://example:test/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    984PASS sendBeacon(): file://example:test/ should throw
    1085FAIL Location's href: file://example:test/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     86FAIL window.open(): file://example:test/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    1187PASS URL's href: file://example%/ should throw
    1288FAIL XHR: file://example%/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    1389PASS sendBeacon(): file://example%/ should throw
    1490FAIL Location's href: file://example%/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     91FAIL window.open(): file://example%/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    1592PASS URL's href: file://[example]/ should throw
    1693FAIL XHR: file://[example]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    1794PASS sendBeacon(): file://[example]/ should throw
    1895FAIL Location's href: file://[example]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     96FAIL window.open(): file://[example]/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    1997PASS URL's href: http://user:pass@/ should throw
    2098FAIL XHR: http://user:pass@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    2199PASS sendBeacon(): http://user:pass@/ should throw
    22100FAIL Location's href: http://user:pass@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     101FAIL window.open(): http://user:pass@/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    23102PASS URL's href: http://foo:-80/ should throw
    24103FAIL XHR: http://foo:-80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    25104PASS sendBeacon(): http://foo:-80/ should throw
    26105FAIL Location's href: http://foo:-80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     106FAIL window.open(): http://foo:-80/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    27107PASS URL's href: http:/:@/www.example.com should throw
    28108FAIL XHR: http:/:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    29109PASS sendBeacon(): http:/:@/www.example.com should throw
    30110FAIL Location's href: http:/:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     111FAIL window.open(): http:/:@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    31112PASS URL's href: http://user@/www.example.com should throw
    32113FAIL XHR: http://user@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    33114PASS sendBeacon(): http://user@/www.example.com should throw
    34115FAIL Location's href: http://user@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     116FAIL window.open(): http://user@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    35117PASS URL's href: http:@/www.example.com should throw
    36118FAIL XHR: http:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    37119PASS sendBeacon(): http:@/www.example.com should throw
    38120FAIL Location's href: http:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     121FAIL window.open(): http:@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    39122PASS URL's href: http:/@/www.example.com should throw
    40123FAIL XHR: http:/@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    41124PASS sendBeacon(): http:/@/www.example.com should throw
    42125FAIL Location's href: http:/@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     126FAIL window.open(): http:/@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    43127PASS URL's href: http://@/www.example.com should throw
    44128FAIL XHR: http://@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    45129PASS sendBeacon(): http://@/www.example.com should throw
    46130FAIL Location's href: http://@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     131FAIL window.open(): http://@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    47132PASS URL's href: https:@/www.example.com should throw
    48133FAIL XHR: https:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    49134PASS sendBeacon(): https:@/www.example.com should throw
    50135FAIL Location's href: https:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     136FAIL window.open(): https:@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    51137PASS URL's href: http:a:b@/www.example.com should throw
    52138FAIL XHR: http:a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    53139PASS sendBeacon(): http:a:b@/www.example.com should throw
    54140FAIL Location's href: http:a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     141FAIL window.open(): http:a:b@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    55142PASS URL's href: http:/a:b@/www.example.com should throw
    56143FAIL XHR: http:/a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    57144PASS sendBeacon(): http:/a:b@/www.example.com should throw
    58145FAIL Location's href: http:/a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     146FAIL window.open(): http:/a:b@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    59147PASS URL's href: http://a:b@/www.example.com should throw
    60148FAIL XHR: http://a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    61149PASS sendBeacon(): http://a:b@/www.example.com should throw
    62150FAIL Location's href: http://a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     151FAIL window.open(): http://a:b@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    63152PASS URL's href: http::@/www.example.com should throw
    64153FAIL XHR: http::@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    65154PASS sendBeacon(): http::@/www.example.com should throw
    66155FAIL Location's href: http::@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     156FAIL window.open(): http::@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    67157PASS URL's href: http:@:www.example.com should throw
    68158FAIL XHR: http:@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    69159PASS sendBeacon(): http:@:www.example.com should throw
    70160FAIL Location's href: http:@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     161FAIL window.open(): http:@:www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    71162PASS URL's href: http:/@:www.example.com should throw
    72163FAIL XHR: http:/@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    73164PASS sendBeacon(): http:/@:www.example.com should throw
    74165FAIL Location's href: http:/@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     166FAIL window.open(): http:/@:www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw
    75167PASS URL's href: http://@:www.example.com should throw
    76168FAIL XHR: http://@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    77169PASS sendBeacon(): http://@:www.example.com should throw
    78170FAIL Location's href: http://@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw
     171FAIL window.open(): http://@:www.example.com should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    79172PASS URL's href: https://� should throw
    80173FAIL XHR: https://� should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    81174PASS sendBeacon(): https://� should throw
    82175FAIL Location's href: https://� should throw assert_throws: function "() => self[0].location = test.input" did not throw
     176FAIL window.open(): https://� should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    83177PASS URL's href: https://%EF%BF%BD should throw
    84178FAIL XHR: https://%EF%BF%BD should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    85179PASS sendBeacon(): https://%EF%BF%BD should throw
    86180FAIL Location's href: https://%EF%BF%BD should throw assert_throws: function "() => self[0].location = test.input" did not throw
     181FAIL window.open(): https://%EF%BF%BD should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    87182PASS URL's href: https://x x:12 should throw
    88183FAIL XHR: https://x x:12 should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    89184PASS sendBeacon(): https://x x:12 should throw
    90185FAIL Location's href: https://x x:12 should throw assert_throws: function "() => self[0].location = test.input" did not throw
     186FAIL window.open(): https://x x:12 should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    91187PASS URL's href: http://[www.google.com]/ should throw
    92188FAIL XHR: http://[www.google.com]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    93189PASS sendBeacon(): http://[www.google.com]/ should throw
    94190FAIL Location's href: http://[www.google.com]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     191FAIL window.open(): http://[www.google.com]/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    95192PASS URL's href: sc://\0/ should throw
    96193FAIL XHR: sc://\0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    97194PASS sendBeacon(): sc://\0/ should throw
    98195FAIL Location's href: sc://\0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     196FAIL window.open(): sc://\0/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    99197PASS URL's href: sc:// / should throw
    100198FAIL XHR: sc:// / should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    101199PASS sendBeacon(): sc:// / should throw
    102200FAIL Location's href: sc:// / should throw assert_throws: function "() => self[0].location = test.input" did not throw
     201FAIL window.open(): sc:// / should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    103202PASS URL's href: sc://@/ should throw
    104203FAIL XHR: sc://@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    105204PASS sendBeacon(): sc://@/ should throw
    106205FAIL Location's href: sc://@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     206FAIL window.open(): sc://@/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    107207PASS URL's href: sc://te@s:t@/ should throw
    108208FAIL XHR: sc://te@s:t@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    109209PASS sendBeacon(): sc://te@s:t@/ should throw
    110210FAIL Location's href: sc://te@s:t@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     211FAIL window.open(): sc://te@s:t@/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    111212PASS URL's href: sc://:/ should throw
    112213FAIL XHR: sc://:/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    113214PASS sendBeacon(): sc://:/ should throw
    114215FAIL Location's href: sc://:/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     216FAIL window.open(): sc://:/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    115217PASS URL's href: sc://:12/ should throw
    116218FAIL XHR: sc://:12/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    117219PASS sendBeacon(): sc://:12/ should throw
    118220FAIL Location's href: sc://:12/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     221FAIL window.open(): sc://:12/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    119222PASS URL's href: sc://[/ should throw
    120223FAIL XHR: sc://[/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    121224PASS sendBeacon(): sc://[/ should throw
    122225FAIL Location's href: sc://[/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     226FAIL window.open(): sc://[/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    123227PASS URL's href: sc://\/ should throw
    124228FAIL XHR: sc://\/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    125229PASS sendBeacon(): sc://\/ should throw
    126230FAIL Location's href: sc://\/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     231FAIL window.open(): sc://\/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    127232PASS URL's href: sc://]/ should throw
    128233FAIL XHR: sc://]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    129234PASS sendBeacon(): sc://]/ should throw
    130235FAIL Location's href: sc://]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     236FAIL window.open(): sc://]/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    131237PASS URL's href: ftp://example.com%80/ should throw
    132238FAIL XHR: ftp://example.com%80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    133239PASS sendBeacon(): ftp://example.com%80/ should throw
    134240FAIL Location's href: ftp://example.com%80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     241FAIL window.open(): ftp://example.com%80/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    135242PASS URL's href: ftp://example.com%A0/ should throw
    136243FAIL XHR: ftp://example.com%A0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    137244PASS sendBeacon(): ftp://example.com%A0/ should throw
    138245FAIL Location's href: ftp://example.com%A0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     246FAIL window.open(): ftp://example.com%A0/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    139247PASS URL's href: https://example.com%80/ should throw
    140248FAIL XHR: https://example.com%80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    141249PASS sendBeacon(): https://example.com%80/ should throw
    142250FAIL Location's href: https://example.com%80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     251FAIL window.open(): https://example.com%80/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    143252PASS URL's href: https://example.com%A0/ should throw
    144253FAIL XHR: https://example.com%A0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    145254PASS sendBeacon(): https://example.com%A0/ should throw
    146255FAIL Location's href: https://example.com%A0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
     256FAIL window.open(): https://example.com%A0/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    147257PASS URL's href: https://[0::0::0] should throw
    148258FAIL XHR: https://[0::0::0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    149259PASS sendBeacon(): https://[0::0::0] should throw
    150260FAIL Location's href: https://[0::0::0] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     261FAIL window.open(): https://[0::0::0] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    151262PASS URL's href: https://[0:.0] should throw
    152263FAIL XHR: https://[0:.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    153264PASS sendBeacon(): https://[0:.0] should throw
    154265FAIL Location's href: https://[0:.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     266FAIL window.open(): https://[0:.0] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    155267PASS URL's href: https://[0:0:] should throw
    156268FAIL XHR: https://[0:0:] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    157269PASS sendBeacon(): https://[0:0:] should throw
    158270FAIL Location's href: https://[0:0:] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     271FAIL window.open(): https://[0:0:] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    159272PASS URL's href: https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw
    160273FAIL XHR: https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    161274PASS sendBeacon(): https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw
    162275FAIL Location's href: https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     276FAIL window.open(): https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    163277PASS URL's href: https://[0:1.00.0.0.0] should throw
    164278FAIL XHR: https://[0:1.00.0.0.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    165279PASS sendBeacon(): https://[0:1.00.0.0.0] should throw
    166280FAIL Location's href: https://[0:1.00.0.0.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     281FAIL window.open(): https://[0:1.00.0.0.0] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    167282PASS URL's href: https://[0:1.290.0.0.0] should throw
    168283FAIL XHR: https://[0:1.290.0.0.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    169284PASS sendBeacon(): https://[0:1.290.0.0.0] should throw
    170285FAIL Location's href: https://[0:1.290.0.0.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     286FAIL window.open(): https://[0:1.290.0.0.0] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    171287PASS URL's href: https://[0:1.23.23] should throw
    172288FAIL XHR: https://[0:1.23.23] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    173289PASS sendBeacon(): https://[0:1.23.23] should throw
    174290FAIL Location's href: https://[0:1.23.23] should throw assert_throws: function "() => self[0].location = test.input" did not throw
     291FAIL window.open(): https://[0:1.23.23] should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    175292PASS URL's href: http://? should throw
    176293FAIL XHR: http://? should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    177294PASS sendBeacon(): http://? should throw
    178295FAIL Location's href: http://? should throw assert_throws: function "() => self[0].location = test.input" did not throw
     296FAIL window.open(): http://? should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    179297PASS URL's href: http://# should throw
    180298FAIL XHR: http://# should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    181299PASS sendBeacon(): http://# should throw
    182300FAIL Location's href: http://# should throw assert_throws: function "() => self[0].location = test.input" did not throw
     301FAIL window.open(): http://# should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
    183302PASS URL's href: non-special://[:80/ should throw
    184303FAIL XHR: non-special://[:80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw
    185304PASS sendBeacon(): non-special://[:80/ should throw
    186305FAIL Location's href: non-special://[:80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw
    187 
     306FAIL window.open(): non-special://[:80/ should throw assert_throws: function "() => self.open(test.input).close()" threw object "TypeError: null is not an object (evaluating 'self.open(test.input).close')" that is not a DOMException SyntaxError: property "code" is equal to undefined, expected 12
     307
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/failure.html

    r213882 r217095  
    3434      assert_throws(new TypeError, () => self[0].location = test.input)
    3535    }, "Location's href: " + name)
     36
     37    self.test(() => {
     38      assert_throws("SyntaxError", () => self.open(test.input).close())
     39    }, "window.open(): " + name)
    3640  }
    3741}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/historical.any-expected.txt

    r217093 r217095  
    11
    22PASS searchParams on location object
     3PASS <a> and <area>.searchParams should be undefined
    34FAIL Setting URL's href attribute and base URLs assert_throws: function "function () {
    45    url.href = "./bar";
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/historical.any.js

    r217093 r217095  
    1 importScripts("/resources/testharness.js");
    2 
    31test(function() {
    42  assert_false("searchParams" in self.location,
    53               "location object should not have a searchParams attribute");
    64}, "searchParams on location object");
     5
     6if(self.GLOBAL.isWindow()) {
     7  test(() => {
     8    assert_false("searchParams" in document.createElement("a"))
     9    assert_false("searchParams" in document.createElement("area"))
     10  }, "<a> and <area>.searchParams should be undefined");
     11}
    712
    813test(function() {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/interfaces.any.js

    r217093 r217095  
    1 <!doctype html>
    2 <title>URL IDL tests</title>
    3 <script src=/resources/testharness.js></script>
    4 <script src=/resources/testharnessreport.js></script>
    5 <script src=/resources/WebIDLParser.js></script>
    6 <script src=/resources/idlharness.js></script>
     1// META: script=/resources/WebIDLParser.js
     2// META: script=/resources/idlharness.js
    73
    8 <h1>URL IDL tests</h1>
    9 <div id=log></div>
    10 
    11 <script type=text/plain>
    12 [Constructor(USVString url, optional USVString base),
     4let idlArray,
     5    idl = `[Constructor(USVString url, optional USVString base),
    136 Exposed=(Window,Worker)]
    147interface URL {
     
    2922};
    3023
    31 [Constructor(optional (USVString or URLSearchParams) init = ""),
     24[Constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""),
    3225 Exposed=(Window,Worker)]
    3326interface URLSearchParams {
     
    3831  boolean has(USVString name);
    3932  void set(USVString name, USVString value);
     33
     34  void sort();
     35
    4036  iterable<USVString, USVString>;
    4137  stringifier;
    42 };
    43 </script>
    44 <script>
    45 "use strict";
    46 var idlArray;
     38};`;
    4739setup(function() {
    4840  idlArray = new IdlArray();
    49   [].forEach.call(document.querySelectorAll("script[type=text\\/plain]"), function(node) {
    50     if (node.className == "untested") {
    51       idlArray.add_untested_idls(node.textContent);
    52     } else {
    53       idlArray.add_idls(node.textContent);
    54     }
    55   });
     41  idlArray.add_idls(idl);
    5642}, {explicit_done:true});
    57 window.onload = function() {
    58   idlArray.add_objects({
    59     URL: ['new URL("http://foo")']
    60   });
    61   idlArray.test();
    62   done();
    63 };
    64 </script>
     43
     44idlArray.add_objects({
     45  URL: ['new URL("http://foo")'],
     46  URLSearchParams: ['new URLSearchParams("hi=there&thank=you")']
     47});
     48idlArray.test();
     49
     50done();
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt

    r215164 r217095  
    271271PASS Parsing: <http://GOO  goo.com> against <http://other.com/>
    272272PASS Parsing: <http://GOO​⁠goo.com> against <http://other.com/>
     273PASS Parsing: <\0 http://example.com/ \r > against <about:blank>
    273274PASS Parsing: <http://www.foo。bar.com> against <http://other.com/>
    274275PASS Parsing: <http://﷐zyx.com> against <http://other.com/>
     
    295296PASS Parsing: <https://x x:12> against <about:blank>
    296297PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/>
     298PASS Parsing: <http://./> against <about:blank>
     299PASS Parsing: <http://../> against <about:blank>
     300PASS Parsing: <http://0..0x300/> against <about:blank>
    297301PASS Parsing: <http://[www.google.com]/> against <about:blank>
    298302PASS Parsing: <http://[google.com]> against <http://other.com/>
     
    431435FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos"
    432436FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai"
     437FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|"
     438PASS Parsing: <C|#> against <file://host/dir/file>
     439PASS Parsing: <C|?> against <file://host/dir/file>
     440PASS Parsing: <C|/> against <file://host/dir/file>
     441PASS Parsing: <C|
     442/> against <file://host/dir/file>
     443PASS Parsing: <C|\> against <file://host/dir/file>
     444PASS Parsing: <C> against <file://host/dir/file>
     445PASS Parsing: <C|a> against <file://host/dir/file>
    433446FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/"
    434447FAIL Parsing: <file://1.2.3.4/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://1.2.3.4/C:/"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-origin-expected.txt

    r213882 r217095  
    206206PASS Origin parsing: <http://ExAmPlE.CoM> against <http://other.com/>
    207207PASS Origin parsing: <http://GOO​⁠goo.com> against <http://other.com/>
     208PASS Origin parsing: <\0 http://example.com/ \r > against <about:blank>
    208209PASS Origin parsing: <http://www.foo。bar.com> against <http://other.com/>
    209210PASS Origin parsing: <https://x/�?�#�> against <about:blank>
    210211PASS Origin parsing: <http://Go.com> against <http://other.com/>
    211 FAIL Origin parsing: <http://你好你好> against <http://other.com/> assert_equals: origin expected "http://你好你好" but got "http://xn--6qqa088eba"
    212 FAIL Origin parsing: <https://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "https://faß.example" but got "https://xn--fa-hia.example"
     212PASS Origin parsing: <http://你好你好> against <http://other.com/>
     213PASS Origin parsing: <https://faß.ExAmPlE/> against <about:blank>
     214FAIL Origin parsing: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example"
    213215PASS Origin parsing: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/>
    214216PASS Origin parsing: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/>
    215217PASS Origin parsing: <http://0Xc0.0250.01> against <http://other.com/>
     218PASS Origin parsing: <http://./> against <about:blank>
     219PASS Origin parsing: <http://../> against <about:blank>
     220PASS Origin parsing: <http://0..0x300/> against <about:blank>
    216221PASS Origin parsing: <http://foo:💩@example.com/bar> against <http://other.com/>
    217222FAIL Origin parsing: <#> against <test:test> assert_equals: origin expected "null" but got "test://"
     
    254259FAIL Origin parsing: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    255260FAIL Origin parsing: <wow:%1G> against <about:blank> assert_equals: origin expected "null" but got "wow://"
    256 FAIL Origin parsing: <ftp://%e2%98%83> against <about:blank> assert_equals: origin expected "ftp://☃" but got "ftp://xn--n3h"
    257 FAIL Origin parsing: <https://%e2%98%83> against <about:blank> assert_equals: origin expected "https://☃" but got "https://xn--n3h"
     261PASS Origin parsing: <ftp://%e2%98%83> against <about:blank>
     262PASS Origin parsing: <https://%e2%98%83> against <about:blank>
    258263PASS Origin parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank>
    259264PASS Origin parsing: <http://facebook.com/?foo=%7B%22abc%22> against <about:blank>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/urlsearchparams-constructor-expected.txt

    r215940 r217095  
    2121PASS Construct with object with two keys
    2222PASS Construct with array with two keys
     23PASS Construct with object with NULL, non-ASCII, and surrogate keys
    2324PASS Custom [Symbol.iterator]
    2425
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/urlsearchparams-constructor.html

    r215940 r217095  
    160160  { "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" },
    161161  { "input": {c: "x", a: "?"}, "output": [["c", "x"], ["a", "?"]], "name": "object with two keys" },
    162   { "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" }
     162  { "input": [["c", "x"], ["a", "?"]], "output": [["c", "x"], ["a", "?"]], "name": "array with two keys" },
     163  { "input": {"a\0b": "42", "c\uD83D": "23", "d\u1234": "foo"}, "output": [["a\0b", "42"], ["c\uFFFD", "23"], ["d\u1234", "foo"]], "name": "object with NULL, non-ASCII, and surrogate keys" }
    163164].forEach((val) => {
    164165    test(() => {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/urltestdata.json

    r215164 r217095  
    35603560    "hash": ""
    35613561  },
     3562  "Leading and trailing C0 control or space",
     3563  {
     3564    "input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \u000d ",
     3565    "base": "about:blank",
     3566    "href": "http://example.com/",
     3567    "origin": "http://example.com",
     3568    "protocol": "http:",
     3569    "username": "",
     3570    "password": "",
     3571    "host": "example.com",
     3572    "hostname": "example.com",
     3573    "port": "",
     3574    "pathname": "/",
     3575    "search": "",
     3576    "hash": ""
     3577  },
    35623578  "Ideographic full stop (full-width period for Chinese, etc.) should be treated as a dot. U+3002 is mapped to U+002E (dot)",
    35633579  {
     
    36573673    "base": "http://other.com/",
    36583674    "href": "http://xn--6qqa088eba/",
    3659     "origin": "http://你好你好",
     3675    "origin": "http://xn--6qqa088eba",
    36603676    "protocol": "http:",
    36613677    "username": "",
     
    36723688    "base": "about:blank",
    36733689    "href": "https://xn--fa-hia.example/",
    3674     "origin": "https://faß.example",
     3690    "origin": "https://xn--fa-hia.example",
    36753691    "protocol": "https:",
    36763692    "username": "",
     
    36873703    "base": "about:blank",
    36883704    "href": "sc://fa%C3%9F.ExAmPlE/",
     3705    "origin": "null",
    36893706    "protocol": "sc:",
    36903707    "username": "",
     
    37783795    "host": "192.168.0.1",
    37793796    "hostname": "192.168.0.1",
     3797    "port": "",
     3798    "pathname": "/",
     3799    "search": "",
     3800    "hash": ""
     3801  },
     3802  "Domains with empty labels",
     3803  {
     3804    "input": "http://./",
     3805    "base": "about:blank",
     3806    "href": "http://./",
     3807    "origin": "http://.",
     3808    "protocol": "http:",
     3809    "username": "",
     3810    "password": "",
     3811    "host": ".",
     3812    "hostname": ".",
     3813    "port": "",
     3814    "pathname": "/",
     3815    "search": "",
     3816    "hash": ""
     3817  },
     3818  {
     3819    "input": "http://../",
     3820    "base": "about:blank",
     3821    "href": "http://../",
     3822    "origin": "http://..",
     3823    "protocol": "http:",
     3824    "username": "",
     3825    "password": "",
     3826    "host": "..",
     3827    "hostname": "..",
     3828    "port": "",
     3829    "pathname": "/",
     3830    "search": "",
     3831    "hash": ""
     3832  },
     3833  {
     3834    "input": "http://0..0x300/",
     3835    "base": "about:blank",
     3836    "href": "http://0..0x300/",
     3837    "origin": "http://0..0x300",
     3838    "protocol": "http:",
     3839    "username": "",
     3840    "password": "",
     3841    "host": "0..0x300",
     3842    "hostname": "0..0x300",
    37803843    "port": "",
    37813844    "pathname": "/",
     
    45494612    "base": "about:blank",
    45504613    "href": "ftp://xn--n3h/",
    4551     "origin": "ftp://",
     4614    "origin": "ftp://xn--n3h",
    45524615    "protocol": "ftp:",
    45534616    "username": "",
     
    45644627    "base": "about:blank",
    45654628    "href": "https://xn--n3h/",
    4566     "origin": "https://",
     4629    "origin": "https://xn--n3h",
    45674630    "protocol": "https:",
    45684631    "username": "",
     
    53765439    "pathname": "/",
    53775440    "search": "?chai",
     5441    "hash": ""
     5442  },
     5443  "# Windows drive letter handling with the 'file:' base URL",
     5444  {
     5445    "input": "C|",
     5446    "base": "file://host/dir/file",
     5447    "href": "file:///C:",
     5448    "protocol": "file:",
     5449    "username": "",
     5450    "password": "",
     5451    "host": "",
     5452    "hostname": "",
     5453    "port": "",
     5454    "pathname": "/C:",
     5455    "search": "",
     5456    "hash": ""
     5457  },
     5458  {
     5459    "input": "C|#",
     5460    "base": "file://host/dir/file",
     5461    "href": "file:///C:#",
     5462    "protocol": "file:",
     5463    "username": "",
     5464    "password": "",
     5465    "host": "",
     5466    "hostname": "",
     5467    "port": "",
     5468    "pathname": "/C:",
     5469    "search": "",
     5470    "hash": ""
     5471  },
     5472  {
     5473    "input": "C|?",
     5474    "base": "file://host/dir/file",
     5475    "href": "file:///C:?",
     5476    "protocol": "file:",
     5477    "username": "",
     5478    "password": "",
     5479    "host": "",
     5480    "hostname": "",
     5481    "port": "",
     5482    "pathname": "/C:",
     5483    "search": "",
     5484    "hash": ""
     5485  },
     5486  {
     5487    "input": "C|/",
     5488    "base": "file://host/dir/file",
     5489    "href": "file:///C:/",
     5490    "protocol": "file:",
     5491    "username": "",
     5492    "password": "",
     5493    "host": "",
     5494    "hostname": "",
     5495    "port": "",
     5496    "pathname": "/C:/",
     5497    "search": "",
     5498    "hash": ""
     5499  },
     5500  {
     5501    "input": "C|\n/",
     5502    "base": "file://host/dir/file",
     5503    "href": "file:///C:/",
     5504    "protocol": "file:",
     5505    "username": "",
     5506    "password": "",
     5507    "host": "",
     5508    "hostname": "",
     5509    "port": "",
     5510    "pathname": "/C:/",
     5511    "search": "",
     5512    "hash": ""
     5513  },
     5514  {
     5515    "input": "C|\\",
     5516    "base": "file://host/dir/file",
     5517    "href": "file:///C:/",
     5518    "protocol": "file:",
     5519    "username": "",
     5520    "password": "",
     5521    "host": "",
     5522    "hostname": "",
     5523    "port": "",
     5524    "pathname": "/C:/",
     5525    "search": "",
     5526    "hash": ""
     5527  },
     5528  {
     5529    "input": "C",
     5530    "base": "file://host/dir/file",
     5531    "href": "file://host/dir/C",
     5532    "protocol": "file:",
     5533    "username": "",
     5534    "password": "",
     5535    "host": "host",
     5536    "hostname": "host",
     5537    "port": "",
     5538    "pathname": "/dir/C",
     5539    "search": "",
     5540    "hash": ""
     5541  },
     5542  {
     5543    "input": "C|a",
     5544    "base": "file://host/dir/file",
     5545    "href": "file://host/dir/C|a",
     5546    "protocol": "file:",
     5547    "username": "",
     5548    "password": "",
     5549    "host": "host",
     5550    "hostname": "host",
     5551    "port": "",
     5552    "pathname": "/dir/C|a",
     5553    "search": "",
    53785554    "hash": ""
    53795555  },
  • trunk/LayoutTests/imported/w3c/web-platform-tests/url/w3c-import.log

    r216354 r217095  
    2424/LayoutTests/imported/w3c/web-platform-tests/url/a-element.js
    2525/LayoutTests/imported/w3c/web-platform-tests/url/failure.html
    26 /LayoutTests/imported/w3c/web-platform-tests/url/historical.html
    27 /LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.js
    28 /LayoutTests/imported/w3c/web-platform-tests/url/interfaces.html
     26/LayoutTests/imported/w3c/web-platform-tests/url/historical.any.js
     27/LayoutTests/imported/w3c/web-platform-tests/url/interfaces.any.js
    2928/LayoutTests/imported/w3c/web-platform-tests/url/setters_tests.json
    3029/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.html
Note: See TracChangeset for help on using the changeset viewer.