Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eseidelGoogle/99681c9b362596f2b45427d16896864e to your computer and use it in GitHub Desktop.
Save eseidelGoogle/99681c9b362596f2b45427d16896864e to your computer and use it in GitHub Desktop.
%dart url_test.dart [/src/dart_url_tests]
92 of 465 passed.
Failures:
TEST: http://example%09.%0Aorg
RESULT: origin mismatch: http://example%09.%0Aorg != null
TEST: http://user:pass@foo:21/bar;par?b#c
RESULT: origin mismatch: http://foo:21 != null
TEST: https://test:@test
RESULT: origin mismatch: https://test != null
TEST: https://:@test
RESULT: origin mismatch: https://test != null
TEST: non-special://test:@test/x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://test:@test/x
TEST: non-special://:@test/x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://:@test/x
TEST: http:foo.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:foo.com
TEST: %09%20%20%20:foo.com%20%20%20%0A
RESULT: Unexpected Exception -- FormatException: Scheme not starting with alphabetic character (at character 1)
:foo.com
^
TEST: %20foo.com%20%20
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %20foo.com%20%20
TEST: a:%09%20foo.com
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: a:
TEST: http://f:21/%20b%20?%20d%20#%20e%20
RESULT: origin mismatch: http://f:21 != null
TEST: lolscheme:x%20x#x%20x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: lolscheme:x%20x#x%20x
TEST: http://f:/c
RESULT: origin mismatch: http://f != null
TEST: http://f:0/c
RESULT: origin mismatch: http://f:0 != null
TEST: http://f:00000000000000/c
RESULT: origin mismatch: http://f:0 != null
TEST: http://f:00000000000000000000080/c
RESULT: origin mismatch: http://f != null
TEST: http://f:%0A/c
RESULT: Unexpected Exception -- FormatException: Invalid port (at character 10)
http://f:
^
TEST:
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme:
TEST: %20%20%09
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %20%20%09
TEST: :foo.com/
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:foo.com/
^
TEST: :foo.com%5C
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:foo.com\
^
TEST: :
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:
^
TEST: :a
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:a
^
TEST: :/
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:/
^
TEST: :%5C
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:\
^
TEST: :#
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:#
^
TEST: #
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #
TEST: #/
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #/
TEST: #%5C
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #%5C
TEST: #;?
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #;?
TEST: ?
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?
TEST: /
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /
TEST: :23
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
:23
^
TEST: /:23
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /:23
TEST: ::
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
::
^
TEST: ::23
RESULT: Unexpected Exception -- FormatException: Invalid empty scheme (at character 1)
::23
^
TEST: foo://
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: foo://
TEST: http://a:b@c:29/d
RESULT: origin mismatch: http://c:29 != null
TEST: http::@c:29
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http://&a:foo(b%5Dc@d:2/
RESULT: Unexpected Exception -- FormatException: Invalid character (at character 16)
http://&a:foo(b]c@d:2/
^
TEST: http://::@c@d:2
RESULT: Unexpected Exception -- FormatException: Invalid character (at character 10)
http://::@c@d:2
^
TEST: http://foo.com:b@d/
RESULT: origin mismatch: http://d != null
TEST: http://foo.com/%5C@
RESULT: origin mismatch: http://foo.com != null
TEST: http:%5C%5Cfoo.com%5C
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http:%5C%5Ca%5Cb:c%5Cd@foo.com%5C
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: foo:/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: foo:/
TEST: foo:/bar.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: foo:/bar.com/
TEST: foo://///////
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: foo://///////
TEST: foo://///////bar.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: foo://///////bar.com/
TEST: foo:////://///
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: foo:////://///
TEST: c:/foo
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: c:/foo
TEST: //foo/bar
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //foo/bar
TEST: http://foo/path;a??e#f#g
RESULT: Unexpected Exception -- FormatException: Invalid character (at character 23)
http://foo/path;a??e#f#g
^
TEST: http://foo/abcd?efgh?ijkl
RESULT: origin mismatch: http://foo != null
TEST: http://foo/abcd#foo?bar
RESULT: origin mismatch: http://foo != null
TEST: %5B61:24:74%5D:98
RESULT: Unexpected Exception -- FormatException: Scheme not starting with alphabetic character (at character 1)
[61:24:74]:98
^
TEST: http:%5B61:27%5D/:foo
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http://%5B2001::1%5D
RESULT: origin mismatch: http://[2001::1] != null
TEST: http://%5B::127.0.0.1%5D
RESULT: origin mismatch: http://[::127.0.0.1] != null
TEST: http://%5B0:0:0:0:0:0:13.1.68.3%5D
RESULT: origin mismatch: http://[0:0:0:0:0:0:13.1.68.3] != null
TEST: http://%5B2001::1%5D:80
RESULT: origin mismatch: http://[2001::1] != null
TEST: http:/example.com/
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/example.com/
TEST: ftp:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp:/example.com/
TEST: https:/example.com/
RESULT: Unexpected Exception -- Bad state: A https: URI should have a non-empty host name: https:/example.com/
TEST: madeupscheme:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: madeupscheme:/example.com/
TEST: file:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///example.com/
TEST: ftps:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftps:/example.com/
TEST: gopher:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher:/example.com/
TEST: ws:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws:/example.com/
TEST: wss:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss:/example.com/
TEST: data:/example.com/
RESULT: Unexpected Exception -- FormatException: Invalid MIME type (at character 18)
data:/example.com/
^
TEST: javascript:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: javascript:/example.com/
TEST: mailto:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: mailto:/example.com/
TEST: http:example.com/
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:example.com/
TEST: ftp:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp:example.com/
TEST: https:example.com/
RESULT: Unexpected Exception -- Bad state: A https: URI should have a non-empty host name: https:example.com/
TEST: madeupscheme:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: madeupscheme:example.com/
TEST: ftps:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftps:example.com/
TEST: gopher:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher:example.com/
TEST: ws:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws:example.com/
TEST: wss:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss:example.com/
TEST: data:example.com/
RESULT: Unexpected Exception -- FormatException: Expecting '='
data:example.com/
TEST: javascript:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: javascript:example.com/
TEST: mailto:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: mailto:example.com/
TEST: /a/b/c
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /a/b/c
TEST: /a/%20/c
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /a/%20/c
TEST: /a%252fc
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /a%2Fc
TEST: /a/%252f/c
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /a/%2F/c
TEST: #%CE%B2
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #%CE%B2
TEST: data:text/html,test#test
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: data:text/html,test%23test
TEST: tel:1234567890
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: tel:1234567890
TEST: file:c:%5Cfoo%5Cbar.html
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///c:%5Cfoo%5Cbar.html
TEST: %20%20File:c%7C////foo%5Cbar.html
RESULT: Unexpected Exception -- FormatException: Scheme not starting with alphabetic character (at character 1)
File:c|////foo\bar.html
^
TEST: C%7C/foo/bar
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: C%7C/foo/bar
TEST: /C%7C%5Cfoo%5Cbar
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /C%7C%5Cfoo%5Cbar
TEST: //C%7C/foo/bar
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //c%7C/foo/bar
TEST: //server/file
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //server/file
TEST: %5C%5Cserver%5Cfile
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %5C%5Cserver%5Cfile
TEST: /%5Cserver/file
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /%5Cserver/file
TEST: file:///foo/bar.txt
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///foo/bar.txt
TEST: file:///home/me
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///home/me
TEST: //
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //
TEST: ///
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ///
TEST: ///test
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ///test
TEST: file://test
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file://test/
TEST: file://localhost
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file://localhost/
TEST: file://localhost/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file://localhost/
TEST: file://localhost/test
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file://localhost/test
TEST: test
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: test
TEST: file:test
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///test
TEST: http://example.com/././foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/./.foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/.
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/./
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar/..
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar/../
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/..bar
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar/../ton
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar/../ton/../../a
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/../../..
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/../../../ton
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/%252e
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/%252e%252
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/%252e./%252e%252e/.%252e/%252e.bar
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com////../..
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar//../..
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo/bar//..
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%2520foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%25
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%252
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%252zbar
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%252%C3%82%C2%A9zbar
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%2541%257a
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%09%C2%91%2591
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%2500%2551
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/(%2528:%253A%2529)
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%253A%253a%253C%253c
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/foo%09bar
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com%5C%5Cfoo%5C%5Cbar
RESULT: origin mismatch: http://example.com%5C%5Cfoo%5C%5Cbar != null
TEST: http://example.com/%257Ffp3%253Eju%253Dduvgw%253Dd
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/@asdf%2540
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%E2%80%A5/foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%EF%BB%BF/foo
RESULT: origin mismatch: http://example.com != null
TEST: http://example.com/%E2%80%AE/foo/%E2%80%AD/bar
RESULT: origin mismatch: http://example.com != null
TEST: http://www.google.com/foo?bar=baz#
RESULT: origin mismatch: http://www.google.com != null
TEST: http://www.google.com/foo?bar=baz#%20%C2%BB
RESULT: origin mismatch: http://www.google.com != null
TEST: data:test#%20%C2%BB
RESULT: Unexpected Exception -- FormatException: Invalid MIME type (at character 13)
data:test# »
^
TEST: http://www.google.com
RESULT: origin mismatch: http://www.google.com != null
TEST: http://192.0x00A80001
RESULT: origin mismatch: http://192.0x00a80001 != null
TEST: http://www/foo%252Ehtml
RESULT: origin mismatch: http://www != null
TEST: http://www/foo/%252E/html
RESULT: origin mismatch: http://www != null
TEST: http://%2525DOMAIN:foobar@foodomain.com/
RESULT: origin mismatch: http://foodomain.com != null
TEST: http:%5C%5Cwww.google.com%5Cfoo
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http://foo:80/
RESULT: origin mismatch: http://foo != null
TEST: http://foo:81/
RESULT: origin mismatch: http://foo:81 != null
TEST: httpa://foo:80/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: httpa://foo:80/
TEST: https://foo:443/
RESULT: origin mismatch: https://foo != null
TEST: https://foo:80/
RESULT: origin mismatch: https://foo:80 != null
TEST: ftp://foo:21/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp://foo:21/
TEST: ftp://foo:80/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp://foo:80/
TEST: gopher://foo:70/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher://foo:70/
TEST: gopher://foo:443/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher://foo:443/
TEST: ws://foo:80/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws://foo:80/
TEST: ws://foo:81/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws://foo:81/
TEST: ws://foo:443/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws://foo:443/
TEST: ws://foo:815/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws://foo:815/
TEST: wss://foo:80/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss://foo:80/
TEST: wss://foo:81/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss://foo:81/
TEST: wss://foo:443/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss://foo:443/
TEST: wss://foo:815/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss://foo:815/
TEST: http:/example.com/
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/example.com/
TEST: ftp:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp:/example.com/
TEST: https:/example.com/
RESULT: Unexpected Exception -- Bad state: A https: URI should have a non-empty host name: https:/example.com/
TEST: madeupscheme:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: madeupscheme:/example.com/
TEST: file:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///example.com/
TEST: ftps:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftps:/example.com/
TEST: gopher:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher:/example.com/
TEST: ws:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws:/example.com/
TEST: wss:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss:/example.com/
TEST: data:/example.com/
RESULT: Unexpected Exception -- FormatException: Invalid MIME type (at character 18)
data:/example.com/
^
TEST: javascript:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: javascript:/example.com/
TEST: mailto:/example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: mailto:/example.com/
TEST: http:example.com/
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:example.com/
TEST: ftp:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftp:example.com/
TEST: https:example.com/
RESULT: Unexpected Exception -- Bad state: A https: URI should have a non-empty host name: https:example.com/
TEST: madeupscheme:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: madeupscheme:example.com/
TEST: ftps:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ftps:example.com/
TEST: gopher:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: gopher:example.com/
TEST: ws:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ws:example.com/
TEST: wss:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: wss:example.com/
TEST: data:example.com/
RESULT: Unexpected Exception -- FormatException: Expecting '='
data:example.com/
TEST: javascript:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: javascript:example.com/
TEST: mailto:example.com/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: mailto:example.com/
TEST: http:@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http:/@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/@www.example.com
TEST: http://@www.example.com
RESULT: origin mismatch: http://www.example.com != null
TEST: http:a:b@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:a:b@www.example.com
TEST: http:/a:b@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/a:b@www.example.com
TEST: http://a:b@www.example.com
RESULT: origin mismatch: http://www.example.com != null
TEST: http://@pple.com
RESULT: origin mismatch: http://pple.com != null
TEST: http::b@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: http:/:b@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/:b@www.example.com
TEST: http://:b@www.example.com
RESULT: origin mismatch: http://www.example.com != null
TEST: http:a:@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:a:@www.example.com
TEST: http:/a:@www.example.com
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:/a:@www.example.com
TEST: http://a:@www.example.com
RESULT: origin mismatch: http://www.example.com != null
TEST: http://www.@pple.com
RESULT: origin mismatch: http://pple.com != null
TEST: http://:@www.example.com
RESULT: origin mismatch: http://www.example.com != null
TEST: /
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /
TEST: /test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /test.txt
TEST: .
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ./
TEST: ..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../
TEST: test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: test.txt
TEST: ./test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: test.txt
TEST: ../test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../test.txt
TEST: ../aaa/test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../aaa/test.txt
TEST: ../../test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../../test.txt
TEST: %E4%B8%AD/test.txt
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %E4%B8%AD/test.txt
TEST: http://www.example2.com
RESULT: origin mismatch: http://www.example2.com != null
TEST: //www.example2.com
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //www.example2.com
TEST: file:...
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///...
TEST: file:..
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///
TEST: file:a
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///a
TEST: http://ExAmPlE.CoM
RESULT: origin mismatch: http://example.com != null
TEST: http://GOO%E2%80%8B%E2%81%A0%EF%BB%BFgoo.com
RESULT: origin mismatch: http://goo%E2%80%8B%E2%81%A0%EF%BB%BFgoo.com != null
TEST: http://www.foo%E3%80%82bar.com
RESULT: origin mismatch: http://www.foo%E3%80%82bar.com != null
TEST: https://x/%EF%BF%BD?%EF%BF%BD#%EF%BF%BD
RESULT: origin mismatch: https://x != null
TEST: http://%EF%BC%A7%EF%BD%8F.com
RESULT: origin mismatch: http://%EF%BC%A7%EF%BD%8F.com != null
TEST: http://%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD
RESULT: origin mismatch: http://%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD != null
TEST: https://fa%C3%9F.ExAmPlE/
RESULT: origin mismatch: https://fa%C3%9F.example != null
TEST: sc://fa%C3%9F.ExAmPlE/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://fa%C3%9F.example/
TEST: http://%2530%2578%2563%2530%252e%2530%2532%2535%2530.01
RESULT: origin mismatch: http://0xc0.0250.01 != null
TEST: http://%2530%2578%2563%2530%252e%2530%2532%2535%2530.01%252e
RESULT: origin mismatch: http://0xc0.0250.01. != null
TEST: http://%EF%BC%90%EF%BC%B8%EF%BD%83%EF%BC%90%EF%BC%8E%EF%BC%90%EF%BC%92%EF%BC%95%EF%BC%90%EF%BC%8E%EF%BC%90%EF%BC%91
RESULT: origin mismatch: http://%EF%BC%90%EF%BC%B8%EF%BD%83%EF%BC%90%EF%BC%8E%EF%BC%90%EF%BC%92%EF%BC%95%EF%BC%90%EF%BC%8E%EF%BC%90%EF%BC%91 != null
TEST: http://./
RESULT: origin mismatch: http://. != null
TEST: http://../
RESULT: origin mismatch: http://.. != null
TEST: http://0..0x300/
RESULT: origin mismatch: http://0..0x300 != null
TEST: http://foo:%F0%9F%92%A9@example.com/bar
RESULT: origin mismatch: http://example.com != null
TEST: #
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #
TEST: #x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #x
TEST: #x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #x
TEST: #x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #x
TEST: #
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #
TEST: https://@test@test@example:800/
RESULT: Unexpected Exception -- FormatException: Invalid character (at character 9)
https://@test@test@example:800/
^
TEST: https://@@@example
RESULT: Unexpected Exception -- FormatException: Invalid character (at character 9)
https://@@@example
^
TEST: http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?%60%7B%7D
RESULT: origin mismatch: http://h != null
TEST: /some/path
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /some/path
TEST:
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme:
TEST: /some/path
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /some/path
TEST: i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: i
TEST: i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: i
TEST: i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: i
TEST: ../i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../i
TEST: ../i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../i
TEST: ../i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../i
TEST: /i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /i
TEST: /i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /i
TEST: /i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /i
TEST: ?i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?i
TEST: ?i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?i
TEST: ?i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?i
TEST: #i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #i
TEST: #i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #i
TEST: #i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #i
TEST: #i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #i
TEST: #i
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #i
TEST: about:/../
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: about:/
TEST: data:/../
RESULT: Unexpected Exception -- FormatException: Invalid MIME type (at character 9)
data:/../
^
TEST: javascript:/../
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: javascript:/
TEST: mailto:/../
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: mailto:/
TEST: sc://%C3%B1.test/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%C3%B1.test/
TEST: sc://%1F!%22$&'()*+,-.;%3C=%3E%5E_%60%7B%7C%7D~/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%1F!%22$&'()*+,-.;%3C=%3E%5E_%60%7B%7C%7D~/
TEST: sc://%25/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%25/
TEST: x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: x
TEST: sc:%5C../
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc:
TEST: sc::a@example.net
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc:
TEST: wow:%25NBD
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: wow:
TEST: wow:%251G
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: wow:
TEST: ftp://%25e2%2598%2583
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: ftp://%E2%98%83
TEST: https://%25e2%2598%2583
RESULT: origin mismatch: https://%E2%98%83 != null
TEST: http://127.0.0.1:10100/relative_import.html
RESULT: origin mismatch: http://127.0.0.1:10100 != null
TEST: http://facebook.com/?foo=%257B%2522abc%2522
RESULT: origin mismatch: http://facebook.com != null
TEST: https://localhost:3000/jqueryui@1.2.3
RESULT: origin mismatch: https://localhost:3000 != null
TEST: h%09t%0At%0Dp://h%09o%0As%0Dt:9%090%0A0%0D0/p%09a%0At%0Dh?q%09u%0Ae%0Dry#f%09r%0Aa%0Dg
RESULT: Unexpected Exception -- FormatException: Illegal scheme character (at character 2)
h t
^
TEST: ?a=b&c=d
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?a=b&c=d
TEST: ??a=b&c=d
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ??a=b&c=d
TEST: http:
RESULT: Unexpected Exception -- Bad state: A http: URI should have a non-empty host name: http:
TEST: sc:
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: sc:
TEST: http://foo.bar/baz?qux#foo%08bar
RESULT: origin mismatch: http://foo.bar != null
TEST: http://192.168.257
RESULT: origin mismatch: http://192.168.257 != null
TEST: http://192.168.257.com
RESULT: origin mismatch: http://192.168.257.com != null
TEST: http://256
RESULT: origin mismatch: http://256 != null
TEST: http://256.com
RESULT: origin mismatch: http://256.com != null
TEST: http://999999999
RESULT: origin mismatch: http://999999999 != null
TEST: http://999999999.com
RESULT: origin mismatch: http://999999999.com != null
TEST: http://10000000000.com
RESULT: origin mismatch: http://10000000000.com != null
TEST: http://4294967295
RESULT: origin mismatch: http://4294967295 != null
TEST: http://0xffffffff
RESULT: origin mismatch: http://0xffffffff != null
TEST: http://256.256.256.256.256
RESULT: origin mismatch: http://256.256.256.256.256 != null
TEST: https://0x.0x.0
RESULT: origin mismatch: https://0x.0x.0 != null
TEST: file:///C%253A/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///C%3A/
TEST: file:///C%257C/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///C%7C/
TEST: pix/submit.gif
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: pix/submit.gif
TEST: ..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../
TEST: ..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../
TEST: /
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /
TEST: //d:
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //d
TEST: //d:/..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //d/
TEST: ..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../
TEST: ..
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ../
TEST:
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme:
TEST: file:
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///
TEST: ?x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?x
TEST: file:?x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///?x
TEST: #x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #x
TEST: file:#x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///#x
TEST: file:%5C%5C//
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///
TEST: file:%5C%5C%5C%5C
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///
TEST: file:%5C%5C%5C%5C?fox
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///?fox
TEST: file:%5C%5C%5C%5C#guppy
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///#guppy
TEST: file://spider///
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://spider///
TEST: file:%5C%5Clocalhost//
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///
TEST: file:///localhost//cat
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///localhost//cat
TEST: file://%5C/localhost//cat
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://%5C/localhost//cat
TEST: file://localhost//a//../..//
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://localhost///
TEST: /////mouse
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /////mouse
TEST: %5C//pig
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %5C//pig
TEST: %5C/localhost//pig
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: %5C/localhost//pig
TEST: //localhost//pig
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //localhost//pig
TEST: /..//localhost//pig
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: //localhost//pig
TEST: file://
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///
TEST: /rooibos
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /rooibos
TEST: /?chai
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: /?chai
TEST: file://example.net/C:/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://example.net/C:/
TEST: file://1.2.3.4/C:/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://1.2.3.4/C:/
TEST: file://%5B1::8%5D/C:/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://[1::8]/C:/
TEST: file:/C%7C/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file:///C%7C/
TEST: file://C%7C/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: file://c%7C/
TEST: file:
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///
TEST: file:?q=v
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///?q=v
TEST: file:#frag
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: file:///#frag
TEST: http://%5B1:0::%5D
RESULT: origin mismatch: http://[1:0::] != null
TEST: sc://%C3%B1
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%C3%B1
TEST: sc://%C3%B1?x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%C3%B1?x
TEST: sc://%C3%B1#x
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: sc://%C3%B1#x
TEST: #x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: #x
TEST: ?x
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ?x
TEST: sc://?
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: sc://?
TEST: sc://#
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: sc://#
TEST: ///
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ///
TEST: ////
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ////
TEST: ////x/
RESULT: Unexpected Exception -- Bad state: Cannot use origin without a scheme: ////x/
TEST: tftp://foobar.com/someconfig;mode=netascii
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: tftp://foobar.com/someconfig;mode=netascii
TEST: telnet://user:pass@foobar.com:23/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: telnet://user:pass@foobar.com:23/
TEST: ut2004://10.10.10.10:7777/Index.ut2
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ut2004://10.10.10.10:7777/Index.ut2
TEST: redis://foo:bar@somehost:6379/0?baz=bam&qux=baz
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: redis://foo:bar@somehost:6379/0?baz=bam&qux=baz
TEST: rsync://foo@host:911/sup
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: rsync://foo@host:911/sup
TEST: git://github.com/foo/bar.git
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: git://github.com/foo/bar.git
TEST: irc://myserver.com:6999/channel?passwd
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: irc://myserver.com:6999/channel?passwd
TEST: dns://fw.example.org:9999/foo.bar.org?type=TXT
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: dns://fw.example.org:9999/foo.bar.org?type=TXT
TEST: ldap://localhost:389/ou=People,o=JNDITutorial
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: ldap://localhost:389/ou=People,o=JNDITutorial
TEST: git+https://github.com/foo/bar
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: git+https://github.com/foo/bar
TEST: urn:ietf:rfc:2648
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: urn:ietf:rfc:2648
TEST: tag:joe@example.org,2001:foo/bar
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: tag:joe@example.org,2001:foo/bar
TEST: non-special://%25E2%2580%25A0/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://%E2%80%A0/
TEST: non-special://H%254fSt/path
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://host/path
TEST: non-special://%5B1:2:0:0:5:0:0:0%5D/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://[1:2:0:0:5:0:0:0]/
TEST: non-special://%5B1:2:0:0:0:0:0:3%5D/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://[1:2:0:0:0:0:0:3]/
TEST: non-special://%5B1:2::3%5D:80/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: non-special://[1:2::3]:80/
TEST: blob:https://example.com:443/
RESULT: Unexpected Exception -- Bad state: Origin is only applicable schemes http and https: blob:https://example.com:443/
TEST: blob:d3958f5c-0777-0845-9dcf-2cb28783acaf
RESULT: Unexpected Exception -- Bad state: Origin is only applicable to schemes http and https: blob:d3958f5c-0777-0845-9dcf-2cb28783acaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment