Changeset 217095 in webkit
- Timestamp:
- May 18, 2017 9:01:23 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 1 deleted
- 15 edited
- 4 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/TestExpectations
r216975 r217095 518 518 [ Debug ] fullscreen/full-screen-iframe-legacy.html [ Pass Crash ] 519 519 webkit.org/b/151488 [ Debug ] imported/blink/editing/selection/deleteFromDocument-undo-crash.html [ Skip ] 520 521 webkit.org/b/172337 [ Debug ] imported/w3c/web-platform-tests/url/failure.html [ Crash ] 520 522 521 523 webkit.org/b/139634 [ Debug ] fast/selectors/matches-backtracking.html [ Slow ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r217069 r217095 1 2017-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 1 36 2017-05-18 Daniel Bates <dabates@apple.com> 2 37 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/README.md
r204948 r217095 22 22 [parsing]: https://url.spec.whatwg.org/#concept-basic-url-parser 23 23 [API]: https://url.spec.whatwg.org/#api 24 25 [`annevk/url`](https://github.com/annevk/url) hosts some other files that might be of26 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 that29 expose links (e.g. URL and `<area>`). There's also room for enhancement and bits that30 require independent tests:31 32 * The encoding part of the URL parser33 * The state override part of the URL parser (setting individual properties of a URL)34 * Origin serialization35 * `application/x-www-form-urlencoded` -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/a-element-expected.txt
r215164 r217095 265 265 PASS Parsing: <http://GOO goo.com> against <http://other.com/> 266 266 PASS Parsing: <http://GOOgoo.com> against <http://other.com/> 267 PASS Parsing: <\0 http://example.com/ \r > against <about:blank> 267 268 PASS Parsing: <http://www.foo。bar.com> against <http://other.com/> 268 269 PASS Parsing: <http://zyx.com> against <http://other.com/> … … 289 290 PASS Parsing: <https://x x:12> against <about:blank> 290 291 PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/> 292 PASS Parsing: <http://./> against <about:blank> 293 PASS Parsing: <http://../> against <about:blank> 294 PASS Parsing: <http://0..0x300/> against <about:blank> 291 295 PASS Parsing: <http://[www.google.com]/> against <about:blank> 292 296 PASS Parsing: <http://[google.com]> against <http://other.com/> … … 423 427 FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos" 424 428 FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai" 429 FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|" 430 PASS Parsing: <C|#> against <file://host/dir/file> 431 PASS Parsing: <C|?> against <file://host/dir/file> 432 PASS Parsing: <C|/> against <file://host/dir/file> 433 PASS Parsing: <C| 434 /> against <file://host/dir/file> 435 PASS Parsing: <C|\> against <file://host/dir/file> 436 PASS Parsing: <C> against <file://host/dir/file> 437 PASS Parsing: <C|a> against <file://host/dir/file> 425 438 FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/" 426 439 FAIL 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 206 206 PASS Parsing origin: <http://ExAmPlE.CoM> against <http://other.com/> 207 207 PASS Parsing origin: <http://GOOgoo.com> against <http://other.com/> 208 PASS Parsing origin: <\0 http://example.com/ \r > against <about:blank> 208 209 PASS Parsing origin: <http://www.foo。bar.com> against <http://other.com/> 209 210 PASS Parsing origin: <https://x/�?�#�> against <about:blank> 210 211 PASS 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" 212 PASS Parsing origin: <http://你好你好> against <http://other.com/> 213 PASS Parsing origin: <https://faß.ExAmPlE/> against <about:blank> 214 FAIL Parsing origin: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example" 213 215 PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/> 214 216 PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/> 215 217 PASS Parsing origin: <http://0Xc0.0250.01> against <http://other.com/> 218 PASS Parsing origin: <http://./> against <about:blank> 219 PASS Parsing origin: <http://../> against <about:blank> 220 PASS Parsing origin: <http://0..0x300/> against <about:blank> 216 221 PASS Parsing origin: <http://foo:💩@example.com/bar> against <http://other.com/> 217 222 FAIL Parsing origin: <#> against <test:test> assert_equals: origin expected "null" but got "test://" … … 254 259 FAIL Parsing origin: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://" 255 260 FAIL 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" 261 PASS Parsing origin: <ftp://%e2%98%83> against <about:blank> 262 PASS Parsing origin: <https://%e2%98%83> against <about:blank> 258 263 PASS Parsing origin: <http://127.0.0.1:10100/relative_import.html> against <about:blank> 259 264 PASS 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 206 206 PASS Parsing origin: <http://ExAmPlE.CoM> against <http://other.com/> 207 207 PASS Parsing origin: <http://GOOgoo.com> against <http://other.com/> 208 PASS Parsing origin: <\0 http://example.com/ \r > against <about:blank> 208 209 PASS Parsing origin: <http://www.foo。bar.com> against <http://other.com/> 209 210 PASS Parsing origin: <https://x/�?�#�> against <about:blank> 210 211 PASS 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" 212 PASS Parsing origin: <http://你好你好> against <http://other.com/> 213 PASS Parsing origin: <https://faß.ExAmPlE/> against <about:blank> 214 FAIL Parsing origin: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example" 213 215 PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/> 214 216 PASS Parsing origin: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/> 215 217 PASS Parsing origin: <http://0Xc0.0250.01> against <http://other.com/> 218 PASS Parsing origin: <http://./> against <about:blank> 219 PASS Parsing origin: <http://../> against <about:blank> 220 PASS Parsing origin: <http://0..0x300/> against <about:blank> 216 221 PASS Parsing origin: <http://foo:💩@example.com/bar> against <http://other.com/> 217 222 FAIL Parsing origin: <#> against <test:test> assert_equals: origin expected "null" but got "test://" … … 254 259 FAIL Parsing origin: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://" 255 260 FAIL 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" 261 PASS Parsing origin: <ftp://%e2%98%83> against <about:blank> 262 PASS Parsing origin: <https://%e2%98%83> against <about:blank> 258 263 PASS Parsing origin: <http://127.0.0.1:10100/relative_import.html> against <about:blank> 259 264 PASS 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 265 265 PASS Parsing: <http://GOO goo.com> against <http://other.com/> 266 266 PASS Parsing: <http://GOOgoo.com> against <http://other.com/> 267 PASS Parsing: <\0 http://example.com/ \r > against <about:blank> 267 268 PASS Parsing: <http://www.foo。bar.com> against <http://other.com/> 268 269 PASS Parsing: <http://zyx.com> against <http://other.com/> … … 289 290 PASS Parsing: <https://x x:12> against <about:blank> 290 291 PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/> 292 PASS Parsing: <http://./> against <about:blank> 293 PASS Parsing: <http://../> against <about:blank> 294 PASS Parsing: <http://0..0x300/> against <about:blank> 291 295 PASS Parsing: <http://[www.google.com]/> against <about:blank> 292 296 PASS Parsing: <http://[google.com]> against <http://other.com/> … … 423 427 FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos" 424 428 FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai" 429 FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|" 430 PASS Parsing: <C|#> against <file://host/dir/file> 431 PASS Parsing: <C|?> against <file://host/dir/file> 432 PASS Parsing: <C|/> against <file://host/dir/file> 433 PASS Parsing: <C| 434 /> against <file://host/dir/file> 435 PASS Parsing: <C|\> against <file://host/dir/file> 436 PASS Parsing: <C> against <file://host/dir/file> 437 PASS Parsing: <C|a> against <file://host/dir/file> 425 438 FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/" 426 439 FAIL 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 1 CONSOLE MESSAGE: line 38: Not allowed to load local resource: example:1 2 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''. 3 4 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''. 5 6 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL ''. 7 8 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://user:pass@/'. 9 10 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://foo:-80/'. 11 12 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://user@/www.example.com'. 13 14 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://@/www.example.com'. 15 16 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https:@/www.example.com'. 17 18 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://a:b@/www.example.com'. 19 20 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://@:www.example.com'. 21 22 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://�'. 23 24 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://%EF%BF%BD'. 25 26 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://x x:12'. 27 28 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://[www.google.com]/'. 29 30 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc:// 31 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc:// /'. 32 33 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://@/'. 34 35 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://te@s:t@/'. 36 37 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://:/'. 38 39 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://:12/'. 40 41 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://[/'. 42 43 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://\/'. 44 45 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'sc://]/'. 46 47 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'ftp://example.com%80/'. 48 49 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'ftp://example.com%A0/'. 50 51 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://example.com%80/'. 52 53 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://example.com%A0/'. 54 55 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0::0::0]'. 56 57 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:.0]'. 58 59 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:0:]'. 60 61 CONSOLE 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 63 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.00.0.0.0]'. 64 65 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.290.0.0.0]'. 66 67 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'https://[0:1.23.23]'. 68 69 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://?'. 70 71 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'http://#'. 72 73 CONSOLE MESSAGE: line 38: Unable to open a window with invalid URL 'non-special://[:80/'. 74 1 75 2 76 PASS Loading data… … … 5 79 PASS sendBeacon(): file://example:1/ should throw 6 80 FAIL Location's href: file://example:1/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 81 FAIL window.open(): file://example:1/ should throw assert_throws: function "() => self.open(test.input).close()" did not throw 7 82 PASS URL's href: file://example:test/ should throw 8 83 FAIL XHR: file://example:test/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 9 84 PASS sendBeacon(): file://example:test/ should throw 10 85 FAIL Location's href: file://example:test/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 86 FAIL 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 11 87 PASS URL's href: file://example%/ should throw 12 88 FAIL XHR: file://example%/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 13 89 PASS sendBeacon(): file://example%/ should throw 14 90 FAIL Location's href: file://example%/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 91 FAIL 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 15 92 PASS URL's href: file://[example]/ should throw 16 93 FAIL XHR: file://[example]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 17 94 PASS sendBeacon(): file://[example]/ should throw 18 95 FAIL Location's href: file://[example]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 96 FAIL 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 19 97 PASS URL's href: http://user:pass@/ should throw 20 98 FAIL XHR: http://user:pass@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 21 99 PASS sendBeacon(): http://user:pass@/ should throw 22 100 FAIL Location's href: http://user:pass@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 101 FAIL 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 23 102 PASS URL's href: http://foo:-80/ should throw 24 103 FAIL XHR: http://foo:-80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 25 104 PASS sendBeacon(): http://foo:-80/ should throw 26 105 FAIL Location's href: http://foo:-80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 106 FAIL 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 27 107 PASS URL's href: http:/:@/www.example.com should throw 28 108 FAIL XHR: http:/:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 29 109 PASS sendBeacon(): http:/:@/www.example.com should throw 30 110 FAIL Location's href: http:/:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 111 FAIL window.open(): http:/:@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 31 112 PASS URL's href: http://user@/www.example.com should throw 32 113 FAIL XHR: http://user@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 33 114 PASS sendBeacon(): http://user@/www.example.com should throw 34 115 FAIL Location's href: http://user@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 116 FAIL 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 35 117 PASS URL's href: http:@/www.example.com should throw 36 118 FAIL XHR: http:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 37 119 PASS sendBeacon(): http:@/www.example.com should throw 38 120 FAIL Location's href: http:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 121 FAIL window.open(): http:@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 39 122 PASS URL's href: http:/@/www.example.com should throw 40 123 FAIL XHR: http:/@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 41 124 PASS sendBeacon(): http:/@/www.example.com should throw 42 125 FAIL Location's href: http:/@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 126 FAIL window.open(): http:/@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 43 127 PASS URL's href: http://@/www.example.com should throw 44 128 FAIL XHR: http://@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 45 129 PASS sendBeacon(): http://@/www.example.com should throw 46 130 FAIL Location's href: http://@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 131 FAIL 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 47 132 PASS URL's href: https:@/www.example.com should throw 48 133 FAIL XHR: https:@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 49 134 PASS sendBeacon(): https:@/www.example.com should throw 50 135 FAIL Location's href: https:@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 136 FAIL 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 51 137 PASS URL's href: http:a:b@/www.example.com should throw 52 138 FAIL XHR: http:a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 53 139 PASS sendBeacon(): http:a:b@/www.example.com should throw 54 140 FAIL Location's href: http:a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 141 FAIL window.open(): http:a:b@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 55 142 PASS URL's href: http:/a:b@/www.example.com should throw 56 143 FAIL XHR: http:/a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 57 144 PASS sendBeacon(): http:/a:b@/www.example.com should throw 58 145 FAIL Location's href: http:/a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 146 FAIL window.open(): http:/a:b@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 59 147 PASS URL's href: http://a:b@/www.example.com should throw 60 148 FAIL XHR: http://a:b@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 61 149 PASS sendBeacon(): http://a:b@/www.example.com should throw 62 150 FAIL Location's href: http://a:b@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 151 FAIL 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 63 152 PASS URL's href: http::@/www.example.com should throw 64 153 FAIL XHR: http::@/www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 65 154 PASS sendBeacon(): http::@/www.example.com should throw 66 155 FAIL Location's href: http::@/www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 156 FAIL window.open(): http::@/www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 67 157 PASS URL's href: http:@:www.example.com should throw 68 158 FAIL XHR: http:@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 69 159 PASS sendBeacon(): http:@:www.example.com should throw 70 160 FAIL Location's href: http:@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 161 FAIL window.open(): http:@:www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 71 162 PASS URL's href: http:/@:www.example.com should throw 72 163 FAIL XHR: http:/@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 73 164 PASS sendBeacon(): http:/@:www.example.com should throw 74 165 FAIL Location's href: http:/@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 166 FAIL window.open(): http:/@:www.example.com should throw assert_throws: function "() => self.open(test.input).close()" did not throw 75 167 PASS URL's href: http://@:www.example.com should throw 76 168 FAIL XHR: http://@:www.example.com should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 77 169 PASS sendBeacon(): http://@:www.example.com should throw 78 170 FAIL Location's href: http://@:www.example.com should throw assert_throws: function "() => self[0].location = test.input" did not throw 171 FAIL 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 79 172 PASS URL's href: https://� should throw 80 173 FAIL XHR: https://� should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 81 174 PASS sendBeacon(): https://� should throw 82 175 FAIL Location's href: https://� should throw assert_throws: function "() => self[0].location = test.input" did not throw 176 FAIL 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 83 177 PASS URL's href: https://%EF%BF%BD should throw 84 178 FAIL XHR: https://%EF%BF%BD should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 85 179 PASS sendBeacon(): https://%EF%BF%BD should throw 86 180 FAIL Location's href: https://%EF%BF%BD should throw assert_throws: function "() => self[0].location = test.input" did not throw 181 FAIL 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 87 182 PASS URL's href: https://x x:12 should throw 88 183 FAIL XHR: https://x x:12 should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 89 184 PASS sendBeacon(): https://x x:12 should throw 90 185 FAIL Location's href: https://x x:12 should throw assert_throws: function "() => self[0].location = test.input" did not throw 186 FAIL 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 91 187 PASS URL's href: http://[www.google.com]/ should throw 92 188 FAIL XHR: http://[www.google.com]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 93 189 PASS sendBeacon(): http://[www.google.com]/ should throw 94 190 FAIL Location's href: http://[www.google.com]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 191 FAIL 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 95 192 PASS URL's href: sc://\0/ should throw 96 193 FAIL XHR: sc://\0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 97 194 PASS sendBeacon(): sc://\0/ should throw 98 195 FAIL Location's href: sc://\0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 196 FAIL 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 99 197 PASS URL's href: sc:// / should throw 100 198 FAIL XHR: sc:// / should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 101 199 PASS sendBeacon(): sc:// / should throw 102 200 FAIL Location's href: sc:// / should throw assert_throws: function "() => self[0].location = test.input" did not throw 201 FAIL 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 103 202 PASS URL's href: sc://@/ should throw 104 203 FAIL XHR: sc://@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 105 204 PASS sendBeacon(): sc://@/ should throw 106 205 FAIL Location's href: sc://@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 206 FAIL 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 107 207 PASS URL's href: sc://te@s:t@/ should throw 108 208 FAIL XHR: sc://te@s:t@/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 109 209 PASS sendBeacon(): sc://te@s:t@/ should throw 110 210 FAIL Location's href: sc://te@s:t@/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 211 FAIL 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 111 212 PASS URL's href: sc://:/ should throw 112 213 FAIL XHR: sc://:/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 113 214 PASS sendBeacon(): sc://:/ should throw 114 215 FAIL Location's href: sc://:/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 216 FAIL 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 115 217 PASS URL's href: sc://:12/ should throw 116 218 FAIL XHR: sc://:12/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 117 219 PASS sendBeacon(): sc://:12/ should throw 118 220 FAIL Location's href: sc://:12/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 221 FAIL 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 119 222 PASS URL's href: sc://[/ should throw 120 223 FAIL XHR: sc://[/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 121 224 PASS sendBeacon(): sc://[/ should throw 122 225 FAIL Location's href: sc://[/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 226 FAIL 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 123 227 PASS URL's href: sc://\/ should throw 124 228 FAIL XHR: sc://\/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 125 229 PASS sendBeacon(): sc://\/ should throw 126 230 FAIL Location's href: sc://\/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 231 FAIL 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 127 232 PASS URL's href: sc://]/ should throw 128 233 FAIL XHR: sc://]/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 129 234 PASS sendBeacon(): sc://]/ should throw 130 235 FAIL Location's href: sc://]/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 236 FAIL 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 131 237 PASS URL's href: ftp://example.com%80/ should throw 132 238 FAIL XHR: ftp://example.com%80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 133 239 PASS sendBeacon(): ftp://example.com%80/ should throw 134 240 FAIL Location's href: ftp://example.com%80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 241 FAIL 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 135 242 PASS URL's href: ftp://example.com%A0/ should throw 136 243 FAIL XHR: ftp://example.com%A0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 137 244 PASS sendBeacon(): ftp://example.com%A0/ should throw 138 245 FAIL Location's href: ftp://example.com%A0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 246 FAIL 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 139 247 PASS URL's href: https://example.com%80/ should throw 140 248 FAIL XHR: https://example.com%80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 141 249 PASS sendBeacon(): https://example.com%80/ should throw 142 250 FAIL Location's href: https://example.com%80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 251 FAIL 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 143 252 PASS URL's href: https://example.com%A0/ should throw 144 253 FAIL XHR: https://example.com%A0/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 145 254 PASS sendBeacon(): https://example.com%A0/ should throw 146 255 FAIL Location's href: https://example.com%A0/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 256 FAIL 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 147 257 PASS URL's href: https://[0::0::0] should throw 148 258 FAIL XHR: https://[0::0::0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 149 259 PASS sendBeacon(): https://[0::0::0] should throw 150 260 FAIL Location's href: https://[0::0::0] should throw assert_throws: function "() => self[0].location = test.input" did not throw 261 FAIL 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 151 262 PASS URL's href: https://[0:.0] should throw 152 263 FAIL XHR: https://[0:.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 153 264 PASS sendBeacon(): https://[0:.0] should throw 154 265 FAIL Location's href: https://[0:.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw 266 FAIL 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 155 267 PASS URL's href: https://[0:0:] should throw 156 268 FAIL XHR: https://[0:0:] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 157 269 PASS sendBeacon(): https://[0:0:] should throw 158 270 FAIL Location's href: https://[0:0:] should throw assert_throws: function "() => self[0].location = test.input" did not throw 271 FAIL 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 159 272 PASS URL's href: https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw 160 273 FAIL 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 161 274 PASS sendBeacon(): https://[0:1:2:3:4:5:6:7.0.0.0.1] should throw 162 275 FAIL 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 276 FAIL 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 163 277 PASS URL's href: https://[0:1.00.0.0.0] should throw 164 278 FAIL XHR: https://[0:1.00.0.0.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 165 279 PASS sendBeacon(): https://[0:1.00.0.0.0] should throw 166 280 FAIL Location's href: https://[0:1.00.0.0.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw 281 FAIL 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 167 282 PASS URL's href: https://[0:1.290.0.0.0] should throw 168 283 FAIL XHR: https://[0:1.290.0.0.0] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 169 284 PASS sendBeacon(): https://[0:1.290.0.0.0] should throw 170 285 FAIL Location's href: https://[0:1.290.0.0.0] should throw assert_throws: function "() => self[0].location = test.input" did not throw 286 FAIL 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 171 287 PASS URL's href: https://[0:1.23.23] should throw 172 288 FAIL XHR: https://[0:1.23.23] should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 173 289 PASS sendBeacon(): https://[0:1.23.23] should throw 174 290 FAIL Location's href: https://[0:1.23.23] should throw assert_throws: function "() => self[0].location = test.input" did not throw 291 FAIL 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 175 292 PASS URL's href: http://? should throw 176 293 FAIL XHR: http://? should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 177 294 PASS sendBeacon(): http://? should throw 178 295 FAIL Location's href: http://? should throw assert_throws: function "() => self[0].location = test.input" did not throw 296 FAIL 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 179 297 PASS URL's href: http://# should throw 180 298 FAIL XHR: http://# should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 181 299 PASS sendBeacon(): http://# should throw 182 300 FAIL Location's href: http://# should throw assert_throws: function "() => self[0].location = test.input" did not throw 301 FAIL 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 183 302 PASS URL's href: non-special://[:80/ should throw 184 303 FAIL XHR: non-special://[:80/ should throw assert_throws: function "() => client.open("GET", test.input)" did not throw 185 304 PASS sendBeacon(): non-special://[:80/ should throw 186 305 FAIL Location's href: non-special://[:80/ should throw assert_throws: function "() => self[0].location = test.input" did not throw 187 306 FAIL 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 34 34 assert_throws(new TypeError, () => self[0].location = test.input) 35 35 }, "Location's href: " + name) 36 37 self.test(() => { 38 assert_throws("SyntaxError", () => self.open(test.input).close()) 39 }, "window.open(): " + name) 36 40 } 37 41 } -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/historical.any-expected.txt
r217093 r217095 1 1 2 2 PASS searchParams on location object 3 PASS <a> and <area>.searchParams should be undefined 3 4 FAIL Setting URL's href attribute and base URLs assert_throws: function "function () { 4 5 url.href = "./bar"; -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/historical.any.js
r217093 r217095 1 importScripts("/resources/testharness.js");2 3 1 test(function() { 4 2 assert_false("searchParams" in self.location, 5 3 "location object should not have a searchParams attribute"); 6 4 }, "searchParams on location object"); 5 6 if(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 } 7 12 8 13 test(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 7 3 8 <h1>URL IDL tests</h1> 9 <div id=log></div> 10 11 <script type=text/plain> 12 [Constructor(USVString url, optional USVString base), 4 let idlArray, 5 idl = `[Constructor(USVString url, optional USVString base), 13 6 Exposed=(Window,Worker)] 14 7 interface URL { … … 29 22 }; 30 23 31 [Constructor(optional ( USVString or URLSearchParams) init = ""),24 [Constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""), 32 25 Exposed=(Window,Worker)] 33 26 interface URLSearchParams { … … 38 31 boolean has(USVString name); 39 32 void set(USVString name, USVString value); 33 34 void sort(); 35 40 36 iterable<USVString, USVString>; 41 37 stringifier; 42 }; 43 </script> 44 <script> 45 "use strict"; 46 var idlArray; 38 };`; 47 39 setup(function() { 48 40 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); 56 42 }, {explicit_done:true}); 57 window.onload = function() { 58 59 URL: ['new URL("http://foo")']60 });61 idlArray.test();62 done();63 }; 64 </script> 43 44 idlArray.add_objects({ 45 URL: ['new URL("http://foo")'], 46 URLSearchParams: ['new URLSearchParams("hi=there&thank=you")'] 47 }); 48 idlArray.test(); 49 50 done(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/url-constructor-expected.txt
r215164 r217095 271 271 PASS Parsing: <http://GOO goo.com> against <http://other.com/> 272 272 PASS Parsing: <http://GOOgoo.com> against <http://other.com/> 273 PASS Parsing: <\0 http://example.com/ \r > against <about:blank> 273 274 PASS Parsing: <http://www.foo。bar.com> against <http://other.com/> 274 275 PASS Parsing: <http://zyx.com> against <http://other.com/> … … 295 296 PASS Parsing: <https://x x:12> against <about:blank> 296 297 PASS Parsing: <http://0Xc0.0250.01> against <http://other.com/> 298 PASS Parsing: <http://./> against <about:blank> 299 PASS Parsing: <http://../> against <about:blank> 300 PASS Parsing: <http://0..0x300/> against <about:blank> 297 301 PASS Parsing: <http://[www.google.com]/> against <about:blank> 298 302 PASS Parsing: <http://[google.com]> against <http://other.com/> … … 431 435 FAIL Parsing: </rooibos> against <file://tea/> assert_equals: href expected "file://tea/rooibos" but got "file:///rooibos" 432 436 FAIL Parsing: </?chai> against <file://tea/> assert_equals: href expected "file://tea/?chai" but got "file:///?chai" 437 FAIL Parsing: <C|> against <file://host/dir/file> assert_equals: href expected "file:///C:" but got "file://host/dir/C|" 438 PASS Parsing: <C|#> against <file://host/dir/file> 439 PASS Parsing: <C|?> against <file://host/dir/file> 440 PASS Parsing: <C|/> against <file://host/dir/file> 441 PASS Parsing: <C| 442 /> against <file://host/dir/file> 443 PASS Parsing: <C|\> against <file://host/dir/file> 444 PASS Parsing: <C> against <file://host/dir/file> 445 PASS Parsing: <C|a> against <file://host/dir/file> 433 446 FAIL Parsing: <file://example.net/C:/> against <about:blank> assert_equals: href expected "file:///C:/" but got "file://example.net/C:/" 434 447 FAIL 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 206 206 PASS Origin parsing: <http://ExAmPlE.CoM> against <http://other.com/> 207 207 PASS Origin parsing: <http://GOOgoo.com> against <http://other.com/> 208 PASS Origin parsing: <\0 http://example.com/ \r > against <about:blank> 208 209 PASS Origin parsing: <http://www.foo。bar.com> against <http://other.com/> 209 210 PASS Origin parsing: <https://x/�?�#�> against <about:blank> 210 211 PASS 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" 212 PASS Origin parsing: <http://你好你好> against <http://other.com/> 213 PASS Origin parsing: <https://faß.ExAmPlE/> against <about:blank> 214 FAIL Origin parsing: <sc://faß.ExAmPlE/> against <about:blank> assert_equals: origin expected "null" but got "sc://fa%c3%9f.example" 213 215 PASS Origin parsing: <http://%30%78%63%30%2e%30%32%35%30.01> against <http://other.com/> 214 216 PASS Origin parsing: <http://%30%78%63%30%2e%30%32%35%30.01%2e> against <http://other.com/> 215 217 PASS Origin parsing: <http://0Xc0.0250.01> against <http://other.com/> 218 PASS Origin parsing: <http://./> against <about:blank> 219 PASS Origin parsing: <http://../> against <about:blank> 220 PASS Origin parsing: <http://0..0x300/> against <about:blank> 216 221 PASS Origin parsing: <http://foo:💩@example.com/bar> against <http://other.com/> 217 222 FAIL Origin parsing: <#> against <test:test> assert_equals: origin expected "null" but got "test://" … … 254 259 FAIL Origin parsing: <wow:%NBD> against <about:blank> assert_equals: origin expected "null" but got "wow://" 255 260 FAIL 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" 261 PASS Origin parsing: <ftp://%e2%98%83> against <about:blank> 262 PASS Origin parsing: <https://%e2%98%83> against <about:blank> 258 263 PASS Origin parsing: <http://127.0.0.1:10100/relative_import.html> against <about:blank> 259 264 PASS 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 21 21 PASS Construct with object with two keys 22 22 PASS Construct with array with two keys 23 PASS Construct with object with NULL, non-ASCII, and surrogate keys 23 24 PASS Custom [Symbol.iterator] 24 25 -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/urlsearchparams-constructor.html
r215940 r217095 160 160 { "input": {"+": "%C2"}, "output": [["+", "%C2"]], "name": "object with +" }, 161 161 { "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" } 163 164 ].forEach((val) => { 164 165 test(() => { -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/urltestdata.json
r215164 r217095 3560 3560 "hash": "" 3561 3561 }, 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 }, 3562 3578 "Ideographic full stop (full-width period for Chinese, etc.) should be treated as a dot. U+3002 is mapped to U+002E (dot)", 3563 3579 { … … 3657 3673 "base": "http://other.com/", 3658 3674 "href": "http://xn--6qqa088eba/", 3659 "origin": "http:// 你好你好",3675 "origin": "http://xn--6qqa088eba", 3660 3676 "protocol": "http:", 3661 3677 "username": "", … … 3672 3688 "base": "about:blank", 3673 3689 "href": "https://xn--fa-hia.example/", 3674 "origin": "https:// faß.example",3690 "origin": "https://xn--fa-hia.example", 3675 3691 "protocol": "https:", 3676 3692 "username": "", … … 3687 3703 "base": "about:blank", 3688 3704 "href": "sc://fa%C3%9F.ExAmPlE/", 3705 "origin": "null", 3689 3706 "protocol": "sc:", 3690 3707 "username": "", … … 3778 3795 "host": "192.168.0.1", 3779 3796 "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", 3780 3843 "port": "", 3781 3844 "pathname": "/", … … 4549 4612 "base": "about:blank", 4550 4613 "href": "ftp://xn--n3h/", 4551 "origin": "ftp:// ☃",4614 "origin": "ftp://xn--n3h", 4552 4615 "protocol": "ftp:", 4553 4616 "username": "", … … 4564 4627 "base": "about:blank", 4565 4628 "href": "https://xn--n3h/", 4566 "origin": "https:// ☃",4629 "origin": "https://xn--n3h", 4567 4630 "protocol": "https:", 4568 4631 "username": "", … … 5376 5439 "pathname": "/", 5377 5440 "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": "", 5378 5554 "hash": "" 5379 5555 }, -
trunk/LayoutTests/imported/w3c/web-platform-tests/url/w3c-import.log
r216354 r217095 24 24 /LayoutTests/imported/w3c/web-platform-tests/url/a-element.js 25 25 /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 29 28 /LayoutTests/imported/w3c/web-platform-tests/url/setters_tests.json 30 29 /LayoutTests/imported/w3c/web-platform-tests/url/url-constructor.html
Note: See TracChangeset
for help on using the changeset viewer.