summaryrefslogtreecommitdiff
path: root/test/cctest
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-10 23:08:30 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-16 15:16:22 -0700
commit26814cf8e636d7c7c057da310a27cb2993d46a76 (patch)
tree910b8a2c3c5aacdfc7d176088f538a98dbaf8013 /test/cctest
parentbe9f7860e128d88abc5d92dbc94ca96437141da7 (diff)
downloadandroid-node-v8-26814cf8e636d7c7c057da310a27cb2993d46a76.tar.gz
android-node-v8-26814cf8e636d7c7c057da310a27cb2993d46a76.tar.bz2
android-node-v8-26814cf8e636d7c7c057da310a27cb2993d46a76.zip
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>
Diffstat (limited to 'test/cctest')
-rw-r--r--test/cctest/test_url.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cctest/test_url.cc b/test/cctest/test_url.cc
index 0b80d44caa..088634152a 100644
--- a/test/cctest/test_url.cc
+++ b/test/cctest/test_url.cc
@@ -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", "");