@@ -923,6 +923,26 @@ const parseTests = { |
|
|
923 |
923 |
pathname: "alert(1);a='@white-listed.com'", |
924 |
924 |
path: "alert(1);a='@white-listed.com'", |
925 |
925 |
href: "javascript:alert(1);a='@white-listed.com'" |
|
926 |
+}, |
|
927 |
+ |
|
928 |
+'ws://www.example.com': { |
|
929 |
+protocol: 'ws:', |
|
930 |
+slashes: true, |
|
931 |
+hostname: 'www.example.com', |
|
932 |
+host: 'www.example.com', |
|
933 |
+pathname: '/', |
|
934 |
+path: '/', |
|
935 |
+href: 'ws://www.example.com/' |
|
936 |
+}, |
|
937 |
+ |
|
938 |
+'wss://www.example.com': { |
|
939 |
+protocol: 'wss:', |
|
940 |
+slashes: true, |
|
941 |
+hostname: 'www.example.com', |
|
942 |
+host: 'www.example.com', |
|
943 |
+pathname: '/', |
|
944 |
+path: '/', |
|
945 |
+href: 'wss://www.example.com/' |
926 |
946 |
} |
927 |
947 |
}; |
928 |
948 |
|