diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-05-24 13:12:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-24 11:12:11 +0000 |
commit | 7fd0c81f55803284a5edd1f191bc4e3bb51b5411 (patch) | |
tree | 883c823550fb1d1f54b85907a6f6dbfc812ba288 | |
parent | 0ed2c4816c02dc6dee8eb58bbe705c3c5042ffec (diff) | |
download | servo-7fd0c81f55803284a5edd1f191bc4e3bb51b5411.tar.gz servo-7fd0c81f55803284a5edd1f191bc4e3bb51b5411.zip |
Implement `URLPattern::{text, exec}` (#37044)
With this change the URLPattern API is fully implemented. I'll look into
the remaining failures and then enable the preference by default.
Testing: Covered by web platform tests
Depends on https://github.com/servo/servo/pull/37042
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
-rw-r--r-- | components/script/dom/urlpattern.rs | 182 | ||||
-rw-r--r-- | components/script_bindings/record.rs | 10 | ||||
-rw-r--r-- | components/script_bindings/webidls/URLPattern.webidl | 38 | ||||
-rw-r--r-- | tests/wpt/meta/urlpattern/urlpattern.any.js.ini | 1788 | ||||
-rw-r--r-- | tests/wpt/meta/urlpattern/urlpattern.https.any.js.ini | 1788 |
5 files changed, 171 insertions, 3635 deletions
diff --git a/components/script/dom/urlpattern.rs b/components/script/dom/urlpattern.rs index c811d3a9a70..63665f6df0b 100644 --- a/components/script/dom/urlpattern.rs +++ b/components/script/dom/urlpattern.rs @@ -4,6 +4,7 @@ use dom_struct::dom_struct; use js::rust::HandleObject; +use script_bindings::codegen::GenericBindings::URLPatternBinding::URLPatternResult; use script_bindings::codegen::GenericUnionTypes::USVStringOrURLPatternInit; use script_bindings::error::{Error, Fallible}; use script_bindings::reflector::Reflector; @@ -46,7 +47,7 @@ impl URLPattern { ) -> Fallible<DomRoot<URLPattern>> { // The section below converts from servos types to the types used in the urlpattern crate let base_url = base_url.map(|usv_string| usv_string.0); - let input = bindings_to_third_party::map_urlpattern_input(input, base_url.clone()); + let input = bindings_to_third_party::map_urlpattern_input(input); let options = urlpattern::UrlPatternOptions { ignore_case: options.ignoreCase, }; @@ -94,6 +95,50 @@ impl URLPatternMethods<crate::DomTypeHolder> for URLPattern { URLPattern::initialize(global, proto, input, None, options, can_gc) } + /// <https://urlpattern.spec.whatwg.org/#dom-urlpattern-test> + fn Test( + &self, + input: USVStringOrURLPatternInit, + base_url: Option<USVString>, + ) -> Fallible<bool> { + let input = bindings_to_third_party::map_urlpattern_input(input); + let inputs = urlpattern::quirks::process_match_input(input, base_url.as_deref()) + .map_err(|error| Error::Type(format!("{error}")))?; + let Some((match_input, _)) = inputs else { + return Ok(false); + }; + + self.associated_url_pattern + .test(match_input) + .map_err(|error| Error::Type(format!("{error}"))) + } + + /// <https://urlpattern.spec.whatwg.org/#dom-urlpattern-exec> + fn Exec( + &self, + input: USVStringOrURLPatternInit, + base_url: Option<USVString>, + ) -> Fallible<Option<URLPatternResult>> { + let input = bindings_to_third_party::map_urlpattern_input(input); + let inputs = urlpattern::quirks::process_match_input(input, base_url.as_deref()) + .map_err(|error| Error::Type(format!("{error}")))?; + let Some((match_input, inputs)) = inputs else { + return Ok(None); + }; + + let result = self + .associated_url_pattern + .exec(match_input) + .map_err(|error| Error::Type(format!("{error}")))?; + let Some(result) = result else { + return Ok(None); + }; + + Ok(Some(third_party_to_bindings::map_urlpattern_result( + result, inputs, + ))) + } + /// <https://urlpattern.spec.whatwg.org/#dom-urlpattern-protocol> fn Protocol(&self) -> USVString { // Step 1. Return this’s associated URL pattern’s protocol component’s pattern string. @@ -151,54 +196,115 @@ impl URLPatternMethods<crate::DomTypeHolder> for URLPattern { } mod bindings_to_third_party { + use script_bindings::codegen::GenericBindings::URLPatternBinding::URLPatternInit; + use crate::dom::urlpattern::USVStringOrURLPatternInit; + fn map_urlpatterninit(pattern_init: URLPatternInit) -> urlpattern::quirks::UrlPatternInit { + urlpattern::quirks::UrlPatternInit { + protocol: pattern_init.protocol.map(|protocol| protocol.0), + username: pattern_init.username.map(|username| username.0), + password: pattern_init.password.map(|password| password.0), + hostname: pattern_init.hostname.map(|hostname| hostname.0), + port: pattern_init.port.map(|hash| hash.0), + pathname: pattern_init + .pathname + .as_ref() + .map(|usv_string| usv_string.to_string()), + search: pattern_init.search.map(|search| search.0), + hash: pattern_init.hash.map(|hash| hash.0), + base_url: pattern_init.baseURL.map(|base_url| base_url.0), + } + } + pub(super) fn map_urlpattern_input( input: USVStringOrURLPatternInit, - base_url: Option<String>, ) -> urlpattern::quirks::StringOrInit { match input { USVStringOrURLPatternInit::USVString(usv_string) => { urlpattern::quirks::StringOrInit::String(usv_string.0) }, USVStringOrURLPatternInit::URLPatternInit(pattern_init) => { - let pattern_init = urlpattern::quirks::UrlPatternInit { - protocol: pattern_init - .protocol - .as_ref() - .map(|usv_string| usv_string.to_string()), - username: pattern_init - .username - .as_ref() - .map(|usv_string| usv_string.to_string()), - password: pattern_init - .password - .as_ref() - .map(|usv_string| usv_string.to_string()), - hostname: pattern_init - .hostname - .as_ref() - .map(|usv_string| usv_string.to_string()), - port: pattern_init - .port - .as_ref() - .map(|usv_string| usv_string.to_string()), - pathname: pattern_init - .pathname - .as_ref() - .map(|usv_string| usv_string.to_string()), - search: pattern_init - .search - .as_ref() - .map(|usv_string| usv_string.to_string()), - hash: pattern_init - .hash - .as_ref() - .map(|usv_string| usv_string.to_string()), - base_url, - }; - urlpattern::quirks::StringOrInit::Init(pattern_init) + urlpattern::quirks::StringOrInit::Init(map_urlpatterninit(pattern_init)) + }, + } + } +} + +mod third_party_to_bindings { + use script_bindings::codegen::GenericBindings::URLPatternBinding::{ + URLPatternComponentResult, URLPatternInit, URLPatternResult, + }; + use script_bindings::codegen::GenericUnionTypes::USVStringOrUndefined; + use script_bindings::record::Record; + use script_bindings::str::USVString; + + use crate::dom::bindings::codegen::UnionTypes::USVStringOrURLPatternInit; + + // FIXME: For some reason codegen puts a lot of options into these types that don't make sense + + fn map_component_result( + component_result: urlpattern::UrlPatternComponentResult, + ) -> URLPatternComponentResult { + let mut groups = Record::new(); + for (key, value) in component_result.groups.iter() { + let value = match value { + Some(value) => USVStringOrUndefined::USVString(USVString(value.to_owned())), + None => USVStringOrUndefined::Undefined(()), + }; + + groups.insert(USVString(key.to_owned()), value); + } + + URLPatternComponentResult { + input: Some(component_result.input.into()), + groups: Some(groups), + } + } + + fn map_urlpatterninit(pattern_init: urlpattern::quirks::UrlPatternInit) -> URLPatternInit { + URLPatternInit { + baseURL: pattern_init.base_url.map(USVString), + protocol: pattern_init.protocol.map(USVString), + username: pattern_init.username.map(USVString), + password: pattern_init.password.map(USVString), + hostname: pattern_init.hostname.map(USVString), + port: pattern_init.port.map(USVString), + pathname: pattern_init.pathname.map(USVString), + search: pattern_init.search.map(USVString), + hash: pattern_init.hash.map(USVString), + } + } + + pub(super) fn map_urlpattern_result( + result: urlpattern::UrlPatternResult, + (string_or_init, base_url): urlpattern::quirks::Inputs, + ) -> URLPatternResult { + let string_or_init = match string_or_init { + urlpattern::quirks::StringOrInit::String(string) => { + USVStringOrURLPatternInit::USVString(USVString(string)) + }, + urlpattern::quirks::StringOrInit::Init(pattern_init) => { + USVStringOrURLPatternInit::URLPatternInit(map_urlpatterninit(pattern_init)) }, + }; + + let mut inputs = vec![string_or_init]; + + if let Some(base_url) = base_url { + inputs.push(USVStringOrURLPatternInit::USVString(USVString(base_url))); + } + + URLPatternResult { + inputs: Some(inputs), + protocol: Some(map_component_result(result.protocol)), + username: Some(map_component_result(result.username)), + password: Some(map_component_result(result.password)), + hostname: Some(map_component_result(result.hostname)), + port: Some(map_component_result(result.port)), + pathname: Some(map_component_result(result.pathname)), + search: Some(map_component_result(result.search)), + hash: Some(map_component_result(result.hash)), } } } diff --git a/components/script_bindings/record.rs b/components/script_bindings/record.rs index 2668a84f42c..d469faefaf2 100644 --- a/components/script_bindings/record.rs +++ b/components/script_bindings/record.rs @@ -7,7 +7,7 @@ use std::cmp::Eq; use std::hash::Hash; use std::marker::Sized; -use std::ops::Deref; +use std::ops::{Deref, DerefMut}; use indexmap::IndexMap; use js::conversions::{ConversionResult, FromJSValConvertible, ToJSValConvertible}; @@ -94,11 +94,17 @@ impl<K: RecordKey, V> Record<K, V> { impl<K: RecordKey, V> Deref for Record<K, V> { type Target = IndexMap<K, V>; - fn deref(&self) -> &IndexMap<K, V> { + fn deref(&self) -> &Self::Target { &self.map } } +impl<K: RecordKey, V> DerefMut for Record<K, V> { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.map + } +} + impl<K, V, C> FromJSValConvertible for Record<K, V> where K: RecordKey, diff --git a/components/script_bindings/webidls/URLPattern.webidl b/components/script_bindings/webidls/URLPattern.webidl index f61b65702bc..721d7a5285d 100644 --- a/components/script_bindings/webidls/URLPattern.webidl +++ b/components/script_bindings/webidls/URLPattern.webidl @@ -11,9 +11,9 @@ interface URLPattern { [Throws] constructor(URLPatternInput input, USVString baseURL, optional URLPatternOptions options = {}); [Throws] constructor(optional URLPatternInput input = {}, optional URLPatternOptions options = {}); - // [Throws] boolean test(optional URLPatternInput input = {}, optional USVString baseURL); + [Throws] boolean test(optional URLPatternInput input = {}, optional USVString baseURL); - // [Throws] URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL); + [Throws] URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL); readonly attribute USVString protocol; readonly attribute USVString username; @@ -43,20 +43,20 @@ dictionary URLPatternOptions { boolean ignoreCase = false; }; -// dictionary URLPatternResult { -// sequence<URLPatternInput> inputs; - -// URLPatternComponentResult protocol; -// URLPatternComponentResult username; -// URLPatternComponentResult password; -// URLPatternComponentResult hostname; -// URLPatternComponentResult port; -// URLPatternComponentResult pathname; -// URLPatternComponentResult search; -// URLPatternComponentResult hash; -// }; - -// dictionary URLPatternComponentResult { -// USVString input; -// record<USVString, (USVString or undefined)> groups; -// }; +dictionary URLPatternResult { + sequence<URLPatternInput> inputs; + + URLPatternComponentResult protocol; + URLPatternComponentResult username; + URLPatternComponentResult password; + URLPatternComponentResult hostname; + URLPatternComponentResult port; + URLPatternComponentResult pathname; + URLPatternComponentResult search; + URLPatternComponentResult hash; +}; + +dictionary URLPatternComponentResult { + USVString input; + record<USVString, (USVString or undefined)> groups; +}; diff --git a/tests/wpt/meta/urlpattern/urlpattern.any.js.ini b/tests/wpt/meta/urlpattern/urlpattern.any.js.ini index 7248fced522..065a80d7f08 100644 --- a/tests/wpt/meta/urlpattern/urlpattern.any.js.ini +++ b/tests/wpt/meta/urlpattern/urlpattern.any.js.ini @@ -1,760 +1,7 @@ [urlpattern.any.worker.html] - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/ba"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?otherquery#otherhash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?otherquery#otherhash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?query#hash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["http://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://other.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"http://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/([^\\\\/\]+?)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/index.html"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"protocol":":café"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":café"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":café"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":café"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:café"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":café"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":café"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":℘"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":℘"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":℘"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":℘"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:℘"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":℘"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":℘"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":㐀"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":㐀"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":㐀"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":㐀"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:㐀"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":㐀"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":㐀"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"cafe"}\]] - expected: FAIL - - [Pattern: [{"protocol":"foo-bar"}\] Inputs: [{"protocol":"foo-bar"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%C3%A9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"café"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%c3%a9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%C3%A9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"café"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%c3%a9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"hostname":"xn--caf-dma.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: [{"hostname":"café.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: ["http://🚲.com/"\] Inputs: ["http://🚲.com/"\]] - expected: FAIL - - [Pattern: [{"pathname":"\\ud83d \\udeb2"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":":a󠄀b"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"test/:a𐑐b"}\] Inputs: [{"pathname":"test/foo"}\]] - expected: FAIL - - [Pattern: [{"port":""}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80{20}?"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - [Pattern: [{"protocol":"http","port":"80 "}\] Inputs: [{"protocol":"http","port":"80"}\]] expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"80"}\] Inputs: [{"port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"(.*)"}\] Inputs: [{"port":"invalid80"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/./bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/baz"}\] Inputs: [{"pathname":"/foo/bar/../baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%C3%A9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/café"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%c3%a9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/../bar"}\] Inputs: [{"pathname":"/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo/bar","baseURL":"https://example.com"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"","baseURL":"https://example.com"}\] Inputs: [{"pathname":"/","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{/bar}","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"\\\\/bar","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"b","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./b","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":":name.html","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo.html"\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%C3%A9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=café"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%c3%a9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%C3%A9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"café"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%c3%a9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"about","pathname":"(blank|sourcedoc)"}\] Inputs: ["about:blank"\]] - expected: FAIL - - [Pattern: [{"protocol":"data","pathname":":number([0-9\]+)"}\] Inputs: ["data:8675309"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo!"}\] Inputs: [{"pathname":"/foo!"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\:"}\] Inputs: [{"pathname":"/foo:"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\{"}\] Inputs: [{"pathname":"/foo{"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\("}\] Inputs: [{"pathname":"/foo("}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"baseURL":"javascript:var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(data|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(https|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["./foo/bar","https://example.com"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["http{s}?://{*.}?example.com/:product/:endpoint"\] Inputs: ["https://sub.example.com/foo/bar"\]] - expected: FAIL - - [Pattern: ["https://example.com?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080?foo"\] Inputs: ["https://example.com:8080/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080#foo"\] Inputs: ["https://example.com:8080/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*\\\\?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/"\] Inputs: ["https://example.com:8080/"\]] - expected: FAIL - - [Pattern: ["data\\\\:foobar"\] Inputs: ["data:foobar"\]] - expected: FAIL - - [Pattern: ["https://{sub.}?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example(.com/)foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub(?:.))?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["file:///foo/bar"\] Inputs: ["file:///foo/bar"\]] - expected: FAIL - - [Pattern: ["data:"\] Inputs: ["data:"\]] - expected: FAIL - - [Pattern: ["foo://bar"\] Inputs: ["foo://bad_url_browser_interop"\]] - expected: FAIL - - [Pattern: ["https://example.com/foo?bar#baz"\] Inputs: [{"protocol":"https:","search":"?bar","hash":"#baz","baseURL":"http://example.com/foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?:","search":"?bar","hash":"#baz"}\] Inputs: ["http://example.com/foo?bar#baz"\]] - expected: FAIL - - [Pattern: ["?bar#baz","https://example.com/foo"\] Inputs: ["?bar#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["?bar","https://example.com/foo#baz"\] Inputs: ["?bar","https://example.com/foo#snafu"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo?bar"\] Inputs: ["#baz","https://example.com/foo?bar"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo"\] Inputs: ["#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","data:data-urls-cannot-be-base-urls"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","not|a|valid|url"\]] - expected: FAIL - - [Pattern: ["https://foo\\\\:bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo@example.com"\] Inputs: ["https://foo@example.com"\]] - expected: FAIL - - [Pattern: ["https://\\\\:bar@example.com"\] Inputs: ["https://:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://:user::pass@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https\\\\:foo\\\\:bar@example.com"\] Inputs: ["https:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data\\\\:foo\\\\:bar@example.com"\] Inputs: ["data:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo{\\\\:}bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data{\\\\:}channel.html","https://example.com"\] Inputs: ["https://example.com/data:channel.html"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]:8080/"\] Inputs: ["http://[::1\]:8080/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:a\]/"\] Inputs: ["http://[::a\]/"\]] - expected: FAIL - - [Pattern: ["http://[:address\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:AB\\\\::num\]/"\] Inputs: ["http://[::ab:1\]/"\]] - expected: FAIL - - [Pattern: [{"hostname":"[\\\\:\\\\:AB\\\\::num\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\:ab\\\\::num\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\::num\\\\:1\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"[*\\\\:1\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: ["data\\\\:text/javascript,let x = 100/:tens?5;"\] Inputs: ["data:text/javascript,let x = 100/5;"\]] - expected: FAIL - - [Pattern: [{"pathname":":name*"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name+"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name*"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name+"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - [Pattern: [{"hostname":"bad#hostname"}\] Inputs: [{"hostname":"bad"}\]] expected: FAIL @@ -773,147 +20,9 @@ [Pattern: [{"hostname":"bad\\thostname"}\] Inputs: [{"hostname":"badhostname"}\]] expected: FAIL - [Pattern: [{}\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: [{}\]] - expected: FAIL - - [Pattern: [\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{(foo)bar}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(barbaz)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)bar}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{bar(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}:bar(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\.bar}"}\] Inputs: [{"pathname":"foo.bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo(foo)bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo\\\\bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}(.*)"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}?bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - [Pattern: [{"pathname":"*{}**?"}\] Inputs: [{"pathname":"foobar"}\]] expected: FAIL - [Pattern: [{"pathname":":foo(baz)(.*)"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo(baz)bar"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*\\\\/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/{*}"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*//*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo."}\] Inputs: [{"pathname":"/bar."}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo.."}\] Inputs: [{"pathname":"/bar.."}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo"}\] Inputs: [{"pathname":"./foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"../foo"}\] Inputs: [{"pathname":"../foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo./"}\] Inputs: [{"pathname":"bar./"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo../"}\] Inputs: [{"pathname":"bar../"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo\\\\bar"}\] Inputs: [{"pathname":"/bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"},{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: [{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\] Inputs: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\]] - expected: FAIL - - [Pattern: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\] Inputs: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\]] - expected: FAIL - - [Pattern: ["#foo","https://example.com/?q=*&v=?&hmm={}&umm=()"\] Inputs: ["https://example.com/?q=*&v=?&hmm={}&umm=()#foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/a"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/z"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/0"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/3"}\]] - expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"port":"8\\t0"}\]] expected: FAIL @@ -932,770 +41,14 @@ [Pattern: [{"hostname":"bad\\\\:hostname"}\] Inputs: undefined] expected: FAIL - [Pattern: [{"pathname":"/foo","baseURL":""}\] Inputs: undefined] - expected: FAIL - [urlpattern.any.sharedworker.html] expected: ERROR [urlpattern.any.html] - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/ba"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?otherquery#otherhash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?otherquery#otherhash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?query#hash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["http://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://other.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"http://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/([^\\\\/\]+?)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/index.html"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"protocol":":café"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":café"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":café"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":café"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:café"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":café"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":café"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":℘"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":℘"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":℘"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":℘"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:℘"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":℘"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":℘"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":㐀"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":㐀"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":㐀"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":㐀"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:㐀"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":㐀"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":㐀"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"cafe"}\]] - expected: FAIL - - [Pattern: [{"protocol":"foo-bar"}\] Inputs: [{"protocol":"foo-bar"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%C3%A9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"café"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%c3%a9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%C3%A9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"café"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%c3%a9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"hostname":"xn--caf-dma.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: [{"hostname":"café.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: ["http://🚲.com/"\] Inputs: ["http://🚲.com/"\]] - expected: FAIL - - [Pattern: [{"pathname":"\\ud83d \\udeb2"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":":a󠄀b"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"test/:a𐑐b"}\] Inputs: [{"pathname":"test/foo"}\]] - expected: FAIL - - [Pattern: [{"port":""}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80{20}?"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - [Pattern: [{"protocol":"http","port":"80 "}\] Inputs: [{"protocol":"http","port":"80"}\]] expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"80"}\] Inputs: [{"port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"(.*)"}\] Inputs: [{"port":"invalid80"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/./bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/baz"}\] Inputs: [{"pathname":"/foo/bar/../baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%C3%A9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/café"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%c3%a9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/../bar"}\] Inputs: [{"pathname":"/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo/bar","baseURL":"https://example.com"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"","baseURL":"https://example.com"}\] Inputs: [{"pathname":"/","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{/bar}","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"\\\\/bar","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"b","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./b","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":":name.html","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo.html"\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%C3%A9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=café"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%c3%a9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%C3%A9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"café"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%c3%a9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"about","pathname":"(blank|sourcedoc)"}\] Inputs: ["about:blank"\]] - expected: FAIL - - [Pattern: [{"protocol":"data","pathname":":number([0-9\]+)"}\] Inputs: ["data:8675309"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo!"}\] Inputs: [{"pathname":"/foo!"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\:"}\] Inputs: [{"pathname":"/foo:"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\{"}\] Inputs: [{"pathname":"/foo{"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\("}\] Inputs: [{"pathname":"/foo("}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"baseURL":"javascript:var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(data|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(https|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["./foo/bar","https://example.com"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["http{s}?://{*.}?example.com/:product/:endpoint"\] Inputs: ["https://sub.example.com/foo/bar"\]] - expected: FAIL - - [Pattern: ["https://example.com?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080?foo"\] Inputs: ["https://example.com:8080/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080#foo"\] Inputs: ["https://example.com:8080/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*\\\\?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/"\] Inputs: ["https://example.com:8080/"\]] - expected: FAIL - - [Pattern: ["data\\\\:foobar"\] Inputs: ["data:foobar"\]] - expected: FAIL - - [Pattern: ["https://{sub.}?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example(.com/)foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub(?:.))?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["file:///foo/bar"\] Inputs: ["file:///foo/bar"\]] - expected: FAIL - - [Pattern: ["data:"\] Inputs: ["data:"\]] - expected: FAIL - - [Pattern: ["foo://bar"\] Inputs: ["foo://bad_url_browser_interop"\]] - expected: FAIL - - [Pattern: ["https://example.com/foo?bar#baz"\] Inputs: [{"protocol":"https:","search":"?bar","hash":"#baz","baseURL":"http://example.com/foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?:","search":"?bar","hash":"#baz"}\] Inputs: ["http://example.com/foo?bar#baz"\]] - expected: FAIL - - [Pattern: ["?bar#baz","https://example.com/foo"\] Inputs: ["?bar#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["?bar","https://example.com/foo#baz"\] Inputs: ["?bar","https://example.com/foo#snafu"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo?bar"\] Inputs: ["#baz","https://example.com/foo?bar"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo"\] Inputs: ["#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","data:data-urls-cannot-be-base-urls"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","not|a|valid|url"\]] - expected: FAIL - - [Pattern: ["https://foo\\\\:bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo@example.com"\] Inputs: ["https://foo@example.com"\]] - expected: FAIL - - [Pattern: ["https://\\\\:bar@example.com"\] Inputs: ["https://:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://:user::pass@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https\\\\:foo\\\\:bar@example.com"\] Inputs: ["https:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data\\\\:foo\\\\:bar@example.com"\] Inputs: ["data:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo{\\\\:}bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data{\\\\:}channel.html","https://example.com"\] Inputs: ["https://example.com/data:channel.html"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]:8080/"\] Inputs: ["http://[::1\]:8080/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:a\]/"\] Inputs: ["http://[::a\]/"\]] - expected: FAIL - - [Pattern: ["http://[:address\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:AB\\\\::num\]/"\] Inputs: ["http://[::ab:1\]/"\]] - expected: FAIL - - [Pattern: [{"hostname":"[\\\\:\\\\:AB\\\\::num\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\:ab\\\\::num\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\::num\\\\:1\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"[*\\\\:1\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: ["data\\\\:text/javascript,let x = 100/:tens?5;"\] Inputs: ["data:text/javascript,let x = 100/5;"\]] - expected: FAIL - - [Pattern: [{"pathname":":name*"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name+"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name*"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name+"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - [Pattern: [{"hostname":"bad#hostname"}\] Inputs: [{"hostname":"bad"}\]] expected: FAIL @@ -1714,147 +67,9 @@ [Pattern: [{"hostname":"bad\\thostname"}\] Inputs: [{"hostname":"badhostname"}\]] expected: FAIL - [Pattern: [{}\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: [{}\]] - expected: FAIL - - [Pattern: [\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{(foo)bar}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(barbaz)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)bar}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{bar(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}:bar(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\.bar}"}\] Inputs: [{"pathname":"foo.bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo(foo)bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo\\\\bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}(.*)"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}?bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - [Pattern: [{"pathname":"*{}**?"}\] Inputs: [{"pathname":"foobar"}\]] expected: FAIL - [Pattern: [{"pathname":":foo(baz)(.*)"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo(baz)bar"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*\\\\/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/{*}"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*//*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo."}\] Inputs: [{"pathname":"/bar."}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo.."}\] Inputs: [{"pathname":"/bar.."}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo"}\] Inputs: [{"pathname":"./foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"../foo"}\] Inputs: [{"pathname":"../foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo./"}\] Inputs: [{"pathname":"bar./"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo../"}\] Inputs: [{"pathname":"bar../"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo\\\\bar"}\] Inputs: [{"pathname":"/bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"},{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: [{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\] Inputs: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\]] - expected: FAIL - - [Pattern: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\] Inputs: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\]] - expected: FAIL - - [Pattern: ["#foo","https://example.com/?q=*&v=?&hmm={}&umm=()"\] Inputs: ["https://example.com/?q=*&v=?&hmm={}&umm=()#foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/a"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/z"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/0"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/3"}\]] - expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"port":"8\\t0"}\]] expected: FAIL @@ -1873,9 +88,6 @@ [Pattern: [{"hostname":"bad\\\\:hostname"}\] Inputs: undefined] expected: FAIL - [Pattern: [{"pathname":"/foo","baseURL":""}\] Inputs: undefined] - expected: FAIL - [urlpattern.any.serviceworker.html] expected: ERROR diff --git a/tests/wpt/meta/urlpattern/urlpattern.https.any.js.ini b/tests/wpt/meta/urlpattern/urlpattern.https.any.js.ini index f1b0add7805..b94748d6714 100644 --- a/tests/wpt/meta/urlpattern/urlpattern.https.any.js.ini +++ b/tests/wpt/meta/urlpattern/urlpattern.https.any.js.ini @@ -2,762 +2,9 @@ expected: ERROR [urlpattern.https.any.html] - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/ba"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?otherquery#otherhash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?otherquery#otherhash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?query#hash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["http://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://other.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"http://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/([^\\\\/\]+?)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/index.html"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"protocol":":café"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":café"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":café"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":café"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:café"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":café"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":café"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":℘"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":℘"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":℘"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":℘"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:℘"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":℘"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":℘"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":㐀"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":㐀"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":㐀"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":㐀"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:㐀"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":㐀"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":㐀"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"cafe"}\]] - expected: FAIL - - [Pattern: [{"protocol":"foo-bar"}\] Inputs: [{"protocol":"foo-bar"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%C3%A9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"café"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%c3%a9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%C3%A9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"café"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%c3%a9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"hostname":"xn--caf-dma.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: [{"hostname":"café.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: ["http://🚲.com/"\] Inputs: ["http://🚲.com/"\]] - expected: FAIL - - [Pattern: [{"pathname":"\\ud83d \\udeb2"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":":a󠄀b"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"test/:a𐑐b"}\] Inputs: [{"pathname":"test/foo"}\]] - expected: FAIL - - [Pattern: [{"port":""}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80{20}?"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - [Pattern: [{"protocol":"http","port":"80 "}\] Inputs: [{"protocol":"http","port":"80"}\]] expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"80"}\] Inputs: [{"port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"(.*)"}\] Inputs: [{"port":"invalid80"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/./bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/baz"}\] Inputs: [{"pathname":"/foo/bar/../baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%C3%A9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/café"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%c3%a9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/../bar"}\] Inputs: [{"pathname":"/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo/bar","baseURL":"https://example.com"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"","baseURL":"https://example.com"}\] Inputs: [{"pathname":"/","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{/bar}","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"\\\\/bar","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"b","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./b","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":":name.html","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo.html"\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%C3%A9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=café"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%c3%a9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%C3%A9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"café"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%c3%a9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"about","pathname":"(blank|sourcedoc)"}\] Inputs: ["about:blank"\]] - expected: FAIL - - [Pattern: [{"protocol":"data","pathname":":number([0-9\]+)"}\] Inputs: ["data:8675309"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo!"}\] Inputs: [{"pathname":"/foo!"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\:"}\] Inputs: [{"pathname":"/foo:"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\{"}\] Inputs: [{"pathname":"/foo{"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\("}\] Inputs: [{"pathname":"/foo("}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"baseURL":"javascript:var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(data|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(https|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["./foo/bar","https://example.com"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["http{s}?://{*.}?example.com/:product/:endpoint"\] Inputs: ["https://sub.example.com/foo/bar"\]] - expected: FAIL - - [Pattern: ["https://example.com?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080?foo"\] Inputs: ["https://example.com:8080/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080#foo"\] Inputs: ["https://example.com:8080/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*\\\\?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/"\] Inputs: ["https://example.com:8080/"\]] - expected: FAIL - - [Pattern: ["data\\\\:foobar"\] Inputs: ["data:foobar"\]] - expected: FAIL - - [Pattern: ["https://{sub.}?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example(.com/)foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub(?:.))?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["file:///foo/bar"\] Inputs: ["file:///foo/bar"\]] - expected: FAIL - - [Pattern: ["data:"\] Inputs: ["data:"\]] - expected: FAIL - - [Pattern: ["foo://bar"\] Inputs: ["foo://bad_url_browser_interop"\]] - expected: FAIL - - [Pattern: ["https://example.com/foo?bar#baz"\] Inputs: [{"protocol":"https:","search":"?bar","hash":"#baz","baseURL":"http://example.com/foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?:","search":"?bar","hash":"#baz"}\] Inputs: ["http://example.com/foo?bar#baz"\]] - expected: FAIL - - [Pattern: ["?bar#baz","https://example.com/foo"\] Inputs: ["?bar#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["?bar","https://example.com/foo#baz"\] Inputs: ["?bar","https://example.com/foo#snafu"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo?bar"\] Inputs: ["#baz","https://example.com/foo?bar"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo"\] Inputs: ["#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","data:data-urls-cannot-be-base-urls"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","not|a|valid|url"\]] - expected: FAIL - - [Pattern: ["https://foo\\\\:bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo@example.com"\] Inputs: ["https://foo@example.com"\]] - expected: FAIL - - [Pattern: ["https://\\\\:bar@example.com"\] Inputs: ["https://:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://:user::pass@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https\\\\:foo\\\\:bar@example.com"\] Inputs: ["https:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data\\\\:foo\\\\:bar@example.com"\] Inputs: ["data:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo{\\\\:}bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data{\\\\:}channel.html","https://example.com"\] Inputs: ["https://example.com/data:channel.html"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]:8080/"\] Inputs: ["http://[::1\]:8080/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:a\]/"\] Inputs: ["http://[::a\]/"\]] - expected: FAIL - - [Pattern: ["http://[:address\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:AB\\\\::num\]/"\] Inputs: ["http://[::ab:1\]/"\]] - expected: FAIL - - [Pattern: [{"hostname":"[\\\\:\\\\:AB\\\\::num\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\:ab\\\\::num\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\::num\\\\:1\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"[*\\\\:1\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: ["data\\\\:text/javascript,let x = 100/:tens?5;"\] Inputs: ["data:text/javascript,let x = 100/5;"\]] - expected: FAIL - - [Pattern: [{"pathname":":name*"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name+"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name*"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name+"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - [Pattern: [{"hostname":"bad#hostname"}\] Inputs: [{"hostname":"bad"}\]] expected: FAIL @@ -776,147 +23,9 @@ [Pattern: [{"hostname":"bad\\thostname"}\] Inputs: [{"hostname":"badhostname"}\]] expected: FAIL - [Pattern: [{}\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: [{}\]] - expected: FAIL - - [Pattern: [\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{(foo)bar}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(barbaz)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)bar}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{bar(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}:bar(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\.bar}"}\] Inputs: [{"pathname":"foo.bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo(foo)bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo\\\\bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}(.*)"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}?bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - [Pattern: [{"pathname":"*{}**?"}\] Inputs: [{"pathname":"foobar"}\]] expected: FAIL - [Pattern: [{"pathname":":foo(baz)(.*)"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo(baz)bar"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*\\\\/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/{*}"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*//*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo."}\] Inputs: [{"pathname":"/bar."}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo.."}\] Inputs: [{"pathname":"/bar.."}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo"}\] Inputs: [{"pathname":"./foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"../foo"}\] Inputs: [{"pathname":"../foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo./"}\] Inputs: [{"pathname":"bar./"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo../"}\] Inputs: [{"pathname":"bar../"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo\\\\bar"}\] Inputs: [{"pathname":"/bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"},{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: [{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\] Inputs: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\]] - expected: FAIL - - [Pattern: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\] Inputs: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\]] - expected: FAIL - - [Pattern: ["#foo","https://example.com/?q=*&v=?&hmm={}&umm=()"\] Inputs: ["https://example.com/?q=*&v=?&hmm={}&umm=()#foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/a"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/z"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/0"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/3"}\]] - expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"port":"8\\t0"}\]] expected: FAIL @@ -935,767 +44,11 @@ [Pattern: [{"hostname":"bad\\\\:hostname"}\] Inputs: undefined] expected: FAIL - [Pattern: [{"pathname":"/foo","baseURL":""}\] Inputs: undefined] - expected: FAIL - [urlpattern.https.any.worker.html] - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/ba"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?otherquery#otherhash"}\] Inputs: [{"protocol":"https","hostname":"example.com","pathname":"/foo/bar","search":"otherquery","hash":"otherhash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?otherquery#otherhash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar?query#hash"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://example.com/foo/bar/baz"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["https://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: ["http://other.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar/baz","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"https://other.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar","baseURL":"https://example.com?query#hash"}\] Inputs: [{"pathname":"/foo/bar","baseURL":"http://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/([^\\\\/\]+?)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/index.html"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/bar/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar(.*)"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/:bar*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*?"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/*+"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/(.*)*"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/**"}\] Inputs: [{"pathname":"/fo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}?"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}+"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/bar/baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo{/bar}*"}\] Inputs: [{"pathname":"/foo/"}\]] - expected: FAIL - - [Pattern: [{"protocol":":café"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":café"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":café"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":café"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:café"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":café"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":café"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":℘"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":℘"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":℘"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":℘"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:℘"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":℘"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":℘"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":":㐀"}\] Inputs: [{"protocol":"foo"}\]] - expected: FAIL - - [Pattern: [{"username":":㐀"}\] Inputs: [{"username":"foo"}\]] - expected: FAIL - - [Pattern: [{"password":":㐀"}\] Inputs: [{"password":"foo"}\]] - expected: FAIL - - [Pattern: [{"hostname":":㐀"}\] Inputs: [{"hostname":"foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:㐀"}\] Inputs: [{"pathname":"/foo"}\]] - expected: FAIL - - [Pattern: [{"search":":㐀"}\] Inputs: [{"search":"foo"}\]] - expected: FAIL - - [Pattern: [{"hash":":㐀"}\] Inputs: [{"hash":"foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(.*)"}\] Inputs: [{"protocol":"cafe"}\]] - expected: FAIL - - [Pattern: [{"protocol":"foo-bar"}\] Inputs: [{"protocol":"foo-bar"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%C3%A9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"café"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"username":"caf%c3%a9"}\] Inputs: [{"username":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%C3%A9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"café"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"password":"caf%c3%a9"}\] Inputs: [{"password":"café"}\]] - expected: FAIL - - [Pattern: [{"hostname":"xn--caf-dma.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: [{"hostname":"café.com"}\] Inputs: [{"hostname":"café.com"}\]] - expected: FAIL - - [Pattern: ["http://🚲.com/"\] Inputs: ["http://🚲.com/"\]] - expected: FAIL - - [Pattern: [{"pathname":"\\ud83d \\udeb2"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":":a󠄀b"}\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"test/:a𐑐b"}\] Inputs: [{"pathname":"test/foo"}\]] - expected: FAIL - - [Pattern: [{"port":""}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http","port":"80{20}?"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - [Pattern: [{"protocol":"http","port":"80 "}\] Inputs: [{"protocol":"http","port":"80"}\]] expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?","port":"80"}\] Inputs: [{"protocol":"http","port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"80"}\] Inputs: [{"port":"80"}\]] - expected: FAIL - - [Pattern: [{"port":"(.*)"}\] Inputs: [{"port":"invalid80"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"/foo/./bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/baz"}\] Inputs: [{"pathname":"/foo/bar/../baz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%C3%A9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/café"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/caf%c3%a9"}\] Inputs: [{"pathname":"/café"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/../bar"}\] Inputs: [{"pathname":"/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo/bar","baseURL":"https://example.com"}\] Inputs: [{"pathname":"foo/bar","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"","baseURL":"https://example.com"}\] Inputs: [{"pathname":"/","baseURL":"https://example.com"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{/bar}","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"\\\\/bar","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./bar","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"b","baseURL":"https://example.com/foo/"}\] Inputs: [{"pathname":"./b","baseURL":"https://example.com/foo/"}\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":"foo/bar","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo/bar"\]] - expected: FAIL - - [Pattern: [{"pathname":":name.html","baseURL":"https://example.com"}\] Inputs: ["https://example.com/foo.html"\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%C3%A9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=café"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"search":"q=caf%c3%a9"}\] Inputs: [{"search":"q=café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%C3%A9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"café"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"hash":"caf%c3%a9"}\] Inputs: [{"hash":"café"}\]] - expected: FAIL - - [Pattern: [{"protocol":"about","pathname":"(blank|sourcedoc)"}\] Inputs: ["about:blank"\]] - expected: FAIL - - [Pattern: [{"protocol":"data","pathname":":number([0-9\]+)"}\] Inputs: ["data:8675309"\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo!"}\] Inputs: [{"pathname":"/foo!"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\:"}\] Inputs: [{"pathname":"/foo:"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\{"}\] Inputs: [{"pathname":"/foo{"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo\\\\("}\] Inputs: [{"pathname":"/foo("}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"javascript","pathname":"var x = 1;"}\] Inputs: [{"baseURL":"javascript:var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(data|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"protocol":"(https|javascript)","pathname":"var x = 1;"}\] Inputs: [{"protocol":"javascript","pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"var x = 1;"}\] Inputs: [{"pathname":"var x = 1;"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"}\] Inputs: ["./foo/bar","https://example.com"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080"\] Inputs: [{"pathname":"/foo","search":"bar","hash":"baz","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["http{s}?://{*.}?example.com/:product/:endpoint"\] Inputs: ["https://sub.example.com/foo/bar"\]] - expected: FAIL - - [Pattern: ["https://example.com?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080?foo"\] Inputs: ["https://example.com:8080/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com:8080#foo"\] Inputs: ["https://example.com:8080/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/#foo"\] Inputs: ["https://example.com/#foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/*\\\\?foo"\] Inputs: ["https://example.com/?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/:name\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/(bar)\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/{bar}\\\\?foo"\] Inputs: ["https://example.com/bar?foo"\]] - expected: FAIL - - [Pattern: ["https://example.com/"\] Inputs: ["https://example.com:8080/"\]] - expected: FAIL - - [Pattern: ["data\\\\:foobar"\] Inputs: ["data:foobar"\]] - expected: FAIL - - [Pattern: ["https://{sub.}?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub.)?example(.com/)foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["https://(sub(?:.))?example.com/foo"\] Inputs: ["https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["file:///foo/bar"\] Inputs: ["file:///foo/bar"\]] - expected: FAIL - - [Pattern: ["data:"\] Inputs: ["data:"\]] - expected: FAIL - - [Pattern: ["foo://bar"\] Inputs: ["foo://bad_url_browser_interop"\]] - expected: FAIL - - [Pattern: ["https://example.com/foo?bar#baz"\] Inputs: [{"protocol":"https:","search":"?bar","hash":"#baz","baseURL":"http://example.com/foo"}\]] - expected: FAIL - - [Pattern: [{"protocol":"http{s}?:","search":"?bar","hash":"#baz"}\] Inputs: ["http://example.com/foo?bar#baz"\]] - expected: FAIL - - [Pattern: ["?bar#baz","https://example.com/foo"\] Inputs: ["?bar#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: ["?bar","https://example.com/foo#baz"\] Inputs: ["?bar","https://example.com/foo#snafu"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo?bar"\] Inputs: ["#baz","https://example.com/foo?bar"\]] - expected: FAIL - - [Pattern: ["#baz","https://example.com/foo"\] Inputs: ["#baz","https://example.com/foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","data:data-urls-cannot-be-base-urls"\]] - expected: FAIL - - [Pattern: [{"pathname":"*"}\] Inputs: ["foo","not|a|valid|url"\]] - expected: FAIL - - [Pattern: ["https://foo\\\\:bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo@example.com"\] Inputs: ["https://foo@example.com"\]] - expected: FAIL - - [Pattern: ["https://\\\\:bar@example.com"\] Inputs: ["https://:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://:user::pass@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https\\\\:foo\\\\:bar@example.com"\] Inputs: ["https:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data\\\\:foo\\\\:bar@example.com"\] Inputs: ["data:foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["https://foo{\\\\:}bar@example.com"\] Inputs: ["https://foo:bar@example.com"\]] - expected: FAIL - - [Pattern: ["data{\\\\:}channel.html","https://example.com"\] Inputs: ["https://example.com/data:channel.html"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:1\]:8080/"\] Inputs: ["http://[::1\]:8080/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:a\]/"\] Inputs: ["http://[::a\]/"\]] - expected: FAIL - - [Pattern: ["http://[:address\]/"\] Inputs: ["http://[::1\]/"\]] - expected: FAIL - - [Pattern: ["http://[\\\\:\\\\:AB\\\\::num\]/"\] Inputs: ["http://[::ab:1\]/"\]] - expected: FAIL - - [Pattern: [{"hostname":"[\\\\:\\\\:AB\\\\::num\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\:ab\\\\::num\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"{[\\\\:\\\\::num\\\\:1\]}"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: [{"hostname":"[*\\\\:1\]"}\] Inputs: [{"hostname":"[::ab:1\]"}\]] - expected: FAIL - - [Pattern: ["data\\\\:text/javascript,let x = 100/:tens?5;"\] Inputs: ["data:text/javascript,let x = 100/5;"\]] - expected: FAIL - - [Pattern: [{"pathname":":name*"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name+"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":name"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name*"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name+"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - - [Pattern: [{"protocol":":name"}\] Inputs: [{"protocol":"foobar"}\]] - expected: FAIL - [Pattern: [{"hostname":"bad#hostname"}\] Inputs: [{"hostname":"bad"}\]] expected: FAIL @@ -1714,147 +67,9 @@ [Pattern: [{"hostname":"bad\\thostname"}\] Inputs: [{"hostname":"badhostname"}\]] expected: FAIL - [Pattern: [{}\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: ["https://example.com/"\]] - expected: FAIL - - [Pattern: [\] Inputs: [{}\]] - expected: FAIL - - [Pattern: [\] Inputs: [\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{(foo)bar}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"(foo)?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}(barbaz)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{(.*)bar}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}{bar(.*)}"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}:bar(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}?(.*)"}\] Inputs: [{"pathname":"foobarbaz"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo\\\\.bar}"}\] Inputs: [{"pathname":"foo.bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo(foo)bar}"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"{:foo}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo\\\\bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}(.*)"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo{}?bar"}\] Inputs: [{"pathname":"foobar"}\]] - expected: FAIL - [Pattern: [{"pathname":"*{}**?"}\] Inputs: [{"pathname":"foobar"}\]] expected: FAIL - [Pattern: [{"pathname":":foo(baz)(.*)"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo(baz)bar"}\] Inputs: [{"pathname":"bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*\\\\/*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*/{*}"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"*//*"}\] Inputs: [{"pathname":"foo/bar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo."}\] Inputs: [{"pathname":"/bar."}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo.."}\] Inputs: [{"pathname":"/bar.."}\]] - expected: FAIL - - [Pattern: [{"pathname":"./foo"}\] Inputs: [{"pathname":"./foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":"../foo"}\] Inputs: [{"pathname":"../foo"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo./"}\] Inputs: [{"pathname":"bar./"}\]] - expected: FAIL - - [Pattern: [{"pathname":":foo../"}\] Inputs: [{"pathname":"bar../"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/:foo\\\\bar"}\] Inputs: [{"pathname":"/bazbar"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/foo/bar"},{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: [{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO/BAR"}\]] - expected: FAIL - - [Pattern: ["https://example.com:8080/foo?bar#baz",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: ["/foo?bar#baz","https://example.com:8080",{"ignoreCase":true}\] Inputs: [{"pathname":"/FOO","search":"BAR","hash":"BAZ","baseURL":"https://example.com:8080"}\]] - expected: FAIL - - [Pattern: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\] Inputs: [{"search":"foo","baseURL":"https://example.com/a/+/b"}\]] - expected: FAIL - - [Pattern: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\] Inputs: [{"hash":"foo","baseURL":"https://example.com/?q=*&v=?&hmm={}&umm=()"}\]] - expected: FAIL - - [Pattern: ["#foo","https://example.com/?q=*&v=?&hmm={}&umm=()"\] Inputs: ["https://example.com/?q=*&v=?&hmm={}&umm=()#foo"\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/a"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([[a-z\]--a\])"}\] Inputs: [{"pathname":"/z"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/0"}\]] - expected: FAIL - - [Pattern: [{"pathname":"/([\\\\d&&[0-1\]\])"}\] Inputs: [{"pathname":"/3"}\]] - expected: FAIL - [Pattern: [{"port":"80"}\] Inputs: [{"port":"8\\t0"}\]] expected: FAIL @@ -1873,9 +88,6 @@ [Pattern: [{"hostname":"bad\\\\:hostname"}\] Inputs: undefined] expected: FAIL - [Pattern: [{"pathname":"/foo","baseURL":""}\] Inputs: undefined] - expected: FAIL - [urlpattern.https.any.serviceworker.html] expected: ERROR |