test: update WPT for urlpattern to cff1ac1123 · nodejs/node@6313706
@@ -2991,5 +2991,47 @@
29912991"pattern": [{ "pathname": "/([\\d&&[0-1]])" }],
29922992"inputs": [{ "pathname": "/3" }],
29932993"expected_match": null
2994+ },
2995+ {
2996+"pattern": [{ "protocol": "http", "hostname": "example.com/ignoredpath" }],
2997+"inputs": ["http://example.com/"],
2998+"expected_obj": {
2999+"protocol": "http",
3000+"hostname": "example.com",
3001+"pathname": "*"
3002+ },
3003+"expected_match": {
3004+"protocol": { "input": "http", "groups": {} },
3005+"hostname": { "input": "example.com", "groups": {} },
3006+"pathname": { "input": "/", "groups": { "0": "/" } }
3007+ }
3008+ },
3009+ {
3010+"pattern": [{ "protocol": "http", "hostname": "example.com\\?ignoredsearch" }],
3011+"inputs": ["http://example.com/"],
3012+"expected_obj": {
3013+"protocol": "http",
3014+"hostname": "example.com",
3015+"search": "*"
3016+ },
3017+"expected_match": {
3018+"protocol": { "input": "http", "groups": {} },
3019+"hostname": { "input": "example.com", "groups": {} },
3020+"pathname": { "input": "/", "groups": { "0": "/" } }
3021+ }
3022+ },
3023+ {
3024+"pattern": [{ "protocol": "http", "hostname": "example.com#ignoredhash" }],
3025+"inputs": ["http://example.com/"],
3026+"expected_obj": {
3027+"protocol": "http",
3028+"hostname": "example.com",
3029+"hash": "*"
3030+ },
3031+"expected_match": {
3032+"protocol": { "input": "http", "groups": {} },
3033+"hostname": { "input": "example.com", "groups": {} },
3034+"pathname": { "input": "/", "groups": { "0": "/" } }
3035+ }
29943036 }
29953037]