test: fix cctest URLTest.ToFilePath on Win32 without Intl
Skip one specific test that requires ICU Fixes: https://github.com/nodejs/node/issues/19051 PR-URL: https://github.com/nodejs/node/pull/22265 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
be9f7860e1
commit
26814cf8e6
@ -88,7 +88,12 @@ TEST_F(URLTest, ToFilePath) {
|
||||
T("file:///C:/Program%20Files/", "C:\\Program Files\\");
|
||||
T("file:///C:/a/b/c?query#fragment", "C:\\a\\b\\c");
|
||||
T("file://host/path/a/b/c?query#fragment", "\\\\host\\path\\a\\b\\c");
|
||||
#if defined(NODE_HAVE_I18N_SUPPORT)
|
||||
T("file://xn--weird-prdj8vva.com/host/a", "\\\\wͪ͊eiͬ͋rd.com\\host\\a");
|
||||
#else
|
||||
T("file://xn--weird-prdj8vva.com/host/a",
|
||||
"\\\\xn--weird-prdj8vva.com\\host\\a");
|
||||
#endif
|
||||
T("file:///C:/a%2Fb", "");
|
||||
T("file:///", "");
|
||||
T("file:///home", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user