mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Add `ECMAScriptRegex`, LibRegex's C++ facade for ECMAScript regexes. The facade owns compilation, execution, captures, named groups, and error translation for the Rust backend, which lets callers stop depending on the legacy parser and matcher types directly. Use it in the remaining non-LibJS callers: URLPattern, HTML input pattern handling, and the places in LibHTTP that only needed token validation. Where a full regex engine was unnecessary, replace those call sites with direct character checks. Also update focused LibURL, LibHTTP, and WPT coverage for the migrated callers and corrected surrogate handling.
409 lines
25 KiB
Plaintext
409 lines
25 KiB
Plaintext
Harness status: OK
|
||
|
||
Found 395 tests
|
||
|
||
395 Pass
|
||
Pass Loading data…
|
||
Pass Origin parsing: <http://example .
|
||
org> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://user:pass@foo:21/bar;par?b#c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <https://test:@test> without base
|
||
Pass Origin parsing: <https://:@test> without base
|
||
Pass Origin parsing: <non-special://test:@test/x> without base
|
||
Pass Origin parsing: <non-special://:@test/x> without base
|
||
Pass Origin parsing: <http:foo.com> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: < :foo.com
|
||
> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: < foo.com > against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <a: foo.com> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:21/ b ? d # e > against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:0/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:00000000000000000000080/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://f:
|
||
/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: < > against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:foo.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:foo.com\> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:a> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:\> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:#> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <#> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <#/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <#\> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <#;?> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <?> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <:23> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </:23> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <\x> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <\\x\hello> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <::> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <::23> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <foo://> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://a:b@c:29/d> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http::@c:29> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://&a:foo(b]c@d:2/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://::@c@d:2> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://foo.com:b@d/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://foo.com/\@> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http:\\foo.com\> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http:\\a\b:c\d@foo.com\> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://a:b@c\> without base
|
||
Pass Origin parsing: <ws://a@b\c> without base
|
||
Pass Origin parsing: <foo:/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <foo:/bar.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <foo://///////> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <foo://///////bar.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <foo:////://///> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <c:/foo> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <//foo/bar> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://foo/path;a??e#f#g> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://foo/abcd?efgh?ijkl> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://foo/abcd#foo?bar> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <[61:24:74]:98> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http:[61:27]/:foo> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://[2001::1]> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://[::127.0.0.1]> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://[0:0:0:0:0:0:13.1.68.3]> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http://[2001::1]:80> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ftp:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <https:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <madeupscheme:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ftps:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <gopher:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ws:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <wss:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <data:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <javascript:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <mailto:/example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <http:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ftp:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <https:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <madeupscheme:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ftps:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <gopher:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ws:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <wss:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <data:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <javascript:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <mailto:example.com/> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </a/b/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </a/ /c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </a%2fc> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: </a/%2f/c> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <#β> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <data:text/html,test#test> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <tel:1234567890> against <http://example.org/foo/bar>
|
||
Pass Origin parsing: <ssh://example.com/foo/bar.git> against <http://example.org/>
|
||
Pass Origin parsing: <http://example.com/././foo> without base
|
||
Pass Origin parsing: <http://example.com/./.foo> without base
|
||
Pass Origin parsing: <http://example.com/foo/.> without base
|
||
Pass Origin parsing: <http://example.com/foo/./> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar/..> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar/../> without base
|
||
Pass Origin parsing: <http://example.com/foo/..bar> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar/../ton> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar/../ton/../../a> without base
|
||
Pass Origin parsing: <http://example.com/foo/../../..> without base
|
||
Pass Origin parsing: <http://example.com/foo/../../../ton> without base
|
||
Pass Origin parsing: <http://example.com/foo/%2e> without base
|
||
Pass Origin parsing: <http://example.com/foo/%2e%2> without base
|
||
Pass Origin parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> without base
|
||
Pass Origin parsing: <http://example.com////../..> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar//../..> without base
|
||
Pass Origin parsing: <http://example.com/foo/bar//..> without base
|
||
Pass Origin parsing: <http://example.com/foo> without base
|
||
Pass Origin parsing: <http://example.com/%20foo> without base
|
||
Pass Origin parsing: <http://example.com/foo%> without base
|
||
Pass Origin parsing: <http://example.com/foo%2> without base
|
||
Pass Origin parsing: <http://example.com/foo%2zbar> without base
|
||
Pass Origin parsing: <http://example.com/foo%2©zbar> without base
|
||
Pass Origin parsing: <http://example.com/foo%41%7a> without base
|
||
Pass Origin parsing: <http://example.com/foo %91> without base
|
||
Pass Origin parsing: <http://example.com/foo%00%51> without base
|
||
Pass Origin parsing: <http://example.com/(%28:%3A%29)> without base
|
||
Pass Origin parsing: <http://example.com/%3A%3a%3C%3c> without base
|
||
Pass Origin parsing: <http://example.com/foo bar> without base
|
||
Pass Origin parsing: <http://example.com\\foo\\bar> without base
|
||
Pass Origin parsing: <http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd> without base
|
||
Pass Origin parsing: <http://example.com/@asdf%40> without base
|
||
Pass Origin parsing: <http://example.com/你好你好> without base
|
||
Pass Origin parsing: <http://example.com/‥/foo> without base
|
||
Pass Origin parsing: <http://example.com//foo> without base
|
||
Pass Origin parsing: <http://example.com//foo//bar> without base
|
||
Pass Origin parsing: <http://www.google.com/foo?bar=baz#> without base
|
||
Pass Origin parsing: <http://www.google.com/foo?bar=baz# »> without base
|
||
Pass Origin parsing: <data:test# »> without base
|
||
Pass Origin parsing: <http://www.google.com> without base
|
||
Pass Origin parsing: <http://192.0x00A80001> without base
|
||
Pass Origin parsing: <http://www/foo%2Ehtml> without base
|
||
Pass Origin parsing: <http://www/foo/%2E/html> without base
|
||
Pass Origin parsing: <http://%25DOMAIN:foobar@foodomain.com/> without base
|
||
Pass Origin parsing: <http:\\www.google.com\foo> without base
|
||
Pass Origin parsing: <http://foo:80/> without base
|
||
Pass Origin parsing: <http://foo:81/> without base
|
||
Pass Origin parsing: <httpa://foo:80/> without base
|
||
Pass Origin parsing: <https://foo:443/> without base
|
||
Pass Origin parsing: <https://foo:80/> without base
|
||
Pass Origin parsing: <ftp://foo:21/> without base
|
||
Pass Origin parsing: <ftp://foo:80/> without base
|
||
Pass Origin parsing: <gopher://foo:70/> without base
|
||
Pass Origin parsing: <gopher://foo:443/> without base
|
||
Pass Origin parsing: <ws://foo:80/> without base
|
||
Pass Origin parsing: <ws://foo:81/> without base
|
||
Pass Origin parsing: <ws://foo:443/> without base
|
||
Pass Origin parsing: <ws://foo:815/> without base
|
||
Pass Origin parsing: <wss://foo:80/> without base
|
||
Pass Origin parsing: <wss://foo:81/> without base
|
||
Pass Origin parsing: <wss://foo:443/> without base
|
||
Pass Origin parsing: <wss://foo:815/> without base
|
||
Pass Origin parsing: <http:/example.com/> without base
|
||
Pass Origin parsing: <ftp:/example.com/> without base
|
||
Pass Origin parsing: <https:/example.com/> without base
|
||
Pass Origin parsing: <madeupscheme:/example.com/> without base
|
||
Pass Origin parsing: <ftps:/example.com/> without base
|
||
Pass Origin parsing: <gopher:/example.com/> without base
|
||
Pass Origin parsing: <ws:/example.com/> without base
|
||
Pass Origin parsing: <wss:/example.com/> without base
|
||
Pass Origin parsing: <data:/example.com/> without base
|
||
Pass Origin parsing: <javascript:/example.com/> without base
|
||
Pass Origin parsing: <mailto:/example.com/> without base
|
||
Pass Origin parsing: <http:example.com/> without base
|
||
Pass Origin parsing: <ftp:example.com/> without base
|
||
Pass Origin parsing: <https:example.com/> without base
|
||
Pass Origin parsing: <madeupscheme:example.com/> without base
|
||
Pass Origin parsing: <ftps:example.com/> without base
|
||
Pass Origin parsing: <gopher:example.com/> without base
|
||
Pass Origin parsing: <ws:example.com/> without base
|
||
Pass Origin parsing: <wss:example.com/> without base
|
||
Pass Origin parsing: <data:example.com/> without base
|
||
Pass Origin parsing: <javascript:example.com/> without base
|
||
Pass Origin parsing: <mailto:example.com/> without base
|
||
Pass Origin parsing: <https://example.com/aaa/bbb/%2e%2e?query> without base
|
||
Pass Origin parsing: <http:@www.example.com> without base
|
||
Pass Origin parsing: <http:/@www.example.com> without base
|
||
Pass Origin parsing: <http://@www.example.com> without base
|
||
Pass Origin parsing: <http:a:b@www.example.com> without base
|
||
Pass Origin parsing: <http:/a:b@www.example.com> without base
|
||
Pass Origin parsing: <http://a:b@www.example.com> without base
|
||
Pass Origin parsing: <http://@pple.com> without base
|
||
Pass Origin parsing: <http::b@www.example.com> without base
|
||
Pass Origin parsing: <http:/:b@www.example.com> without base
|
||
Pass Origin parsing: <http://:b@www.example.com> without base
|
||
Pass Origin parsing: <http:a:@www.example.com> without base
|
||
Pass Origin parsing: <http:/a:@www.example.com> without base
|
||
Pass Origin parsing: <http://a:@www.example.com> without base
|
||
Pass Origin parsing: <http://www.@pple.com> without base
|
||
Pass Origin parsing: <http://:@www.example.com> without base
|
||
Pass Origin parsing: </> against <http://www.example.com/test>
|
||
Pass Origin parsing: </test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <.> against <http://www.example.com/test>
|
||
Pass Origin parsing: <..> against <http://www.example.com/test>
|
||
Pass Origin parsing: <test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <./test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <../test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <../aaa/test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <../../test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <中/test.txt> against <http://www.example.com/test>
|
||
Pass Origin parsing: <http://www.example2.com> against <http://www.example.com/test>
|
||
Pass Origin parsing: <//www.example2.com> against <http://www.example.com/test>
|
||
Pass Origin parsing: <http://ExAmPlE.CoM> against <http://other.com/>
|
||
Pass Origin parsing: <http://GOOgoo.com> against <http://other.com/>
|
||
Pass Origin parsing: < |