| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ Last update: | |||
| 28 | 28 | - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing | |
| 29 | 29 | - resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources | |
| 30 | 30 | - streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams | |
| 31 | - - url: https://github.com/web-platform-tests/wpt/tree/67880a4eb8/url | ||
| 31 | + - url: https://github.com/web-platform-tests/wpt/tree/6fa3fe8a92/url | ||
| 32 | 32 | - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing | |
| 33 | 33 | - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi | |
| 34 | 34 | - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | [ | |
| 2 | - "This resource is focused on highlighting issues with UTS #46 ToASCII", | ||
| 2 | + "This contains assorted IDNA tests that IdnaTestV2 might not cover.", | ||
| 3 | + "Feel free to deduplicate with a clear commit message.", | ||
| 3 | 4 | { | |
| 4 | 5 | "comment": "Label with hyphens in 3rd and 4th position", | |
| 5 | 6 | "input": "aa--", | |
@@ -198,5 +199,175 @@ | |||
| 198 | 199 | { | |
| 199 | 200 | "input": ">\u00AD\u0338", | |
| 200 | 201 | "output": "xn--hdh" | |
| 202 | + }, | ||
| 203 | + "Tests below are from WebKit (fast/url/idna2003.html & fast/url/idna2008.html; contributed by Chris Weber back in 2011).", | ||
| 204 | + { | ||
| 205 | + "input": "fa\u00DF.de", | ||
| 206 | + "output": "xn--fa-hia.de" | ||
| 207 | + }, | ||
| 208 | + { | ||
| 209 | + "input": "\u03B2\u03CC\u03BB\u03BF\u03C2.com", | ||
| 210 | + "output": "xn--nxasmm1c.com" | ||
| 211 | + }, | ||
| 212 | + { | ||
| 213 | + "input": "\u0DC1\u0DCA\u200D\u0DBB\u0DD3.com", | ||
| 214 | + "output": "xn--10cl1a0b660p.com" | ||
| 215 | + }, | ||
| 216 | + { | ||
| 217 | + "input": "\u0646\u0627\u0645\u0647\u200C\u0627\u06CC.com", | ||
| 218 | + "output": "xn--mgba3gch31f060k.com" | ||
| 219 | + }, | ||
| 220 | + { | ||
| 221 | + "input": "www.loo\u0138out.net", | ||
| 222 | + "output": "www.xn--looout-5bb.net" | ||
| 223 | + }, | ||
| 224 | + { | ||
| 225 | + "input": "\u15EF\u15EF\u15EF.lookout.net", | ||
| 226 | + "output": "xn--1qeaa.lookout.net" | ||
| 227 | + }, | ||
| 228 | + { | ||
| 229 | + "input": "www.lookout.\u0441\u043E\u043C", | ||
| 230 | + "output": "www.lookout.xn--l1adi" | ||
| 231 | + }, | ||
| 232 | + { | ||
| 233 | + "input": "www\u2025lookout.net", | ||
| 234 | + "output": null | ||
| 235 | + }, | ||
| 236 | + { | ||
| 237 | + "input": "www.lookout\u2027net", | ||
| 238 | + "output": "www.xn--lookoutnet-406e" | ||
| 239 | + }, | ||
| 240 | + { | ||
| 241 | + "input": "www.lookout.net\u2A7480", | ||
| 242 | + "output": null | ||
| 243 | + }, | ||
| 244 | + { | ||
| 245 | + "input": "www\u00A0.lookout.net", | ||
| 246 | + "output": null | ||
| 247 | + }, | ||
| 248 | + { | ||
| 249 | + "input": "\u1680lookout.net", | ||
| 250 | + "output": null | ||
| 251 | + }, | ||
| 252 | + { | ||
| 253 | + "input": "\u001flookout.net", | ||
| 254 | + "output": null | ||
| 255 | + }, | ||
| 256 | + { | ||
| 257 | + "input": "look\u06DDout.net", | ||
| 258 | + "output": null | ||
| 259 | + }, | ||
| 260 | + { | ||
| 261 | + "input": "look\u180Eout.net", | ||
| 262 | + "output": null | ||
| 263 | + }, | ||
| 264 | + { | ||
| 265 | + "input": "look\u2060out.net", | ||
| 266 | + "output": "lookout.net" | ||
| 267 | + }, | ||
| 268 | + { | ||
| 269 | + "input": "look\uFEFFout.net", | ||
| 270 | + "output": "lookout.net" | ||
| 271 | + }, | ||
| 272 | + { | ||
| 273 | + "input": "look\uD83F\uDFFEout.net", | ||
| 274 | + "output": null | ||
| 275 | + }, | ||
| 276 | + { | ||
| 277 | + "input": "look\uFFFAout.net", | ||
| 278 | + "output": null | ||
| 279 | + }, | ||
| 280 | + { | ||
| 281 | + "input": "look\u2FF0out.net", | ||
| 282 | + "output": null | ||
| 283 | + }, | ||
| 284 | + { | ||
| 285 | + "input": "look\u0341out.net", | ||
| 286 | + "output": "xn--looout-kp7b.net" | ||
| 287 | + }, | ||
| 288 | + { | ||
| 289 | + "input": "look\u202Eout.net", | ||
| 290 | + "output": null | ||
| 291 | + }, | ||
| 292 | + { | ||
| 293 | + "input": "look\u206Bout.net", | ||
| 294 | + "output": null | ||
| 295 | + }, | ||
| 296 | + { | ||
| 297 | + "input": "look\uDB40\uDC01out.net", | ||
| 298 | + "output": null | ||
| 299 | + }, | ||
| 300 | + { | ||
| 301 | + "input": "look\uDB40\uDC20out.net", | ||
| 302 | + "output": null | ||
| 303 | + }, | ||
| 304 | + { | ||
| 305 | + "input": "look\u05BEout.net", | ||
| 306 | + "output": null | ||
| 307 | + }, | ||
| 308 | + { | ||
| 309 | + "input": "B\u00FCcher.de", | ||
| 310 | + "output": "xn--bcher-kva.de" | ||
| 311 | + }, | ||
| 312 | + { | ||
| 313 | + "input": "\u2665.net", | ||
| 314 | + "output": "xn--g6h.net" | ||
| 315 | + }, | ||
| 316 | + { | ||
| 317 | + "input": "\u0378.net", | ||
| 318 | + "output": null | ||
| 319 | + }, | ||
| 320 | + { | ||
| 321 | + "input": "\u04C0.com", | ||
| 322 | + "output": null | ||
| 323 | + }, | ||
| 324 | + { | ||
| 325 | + "comment": "This is U+2F868 (which is mapped to U+36FC starting with Unicode 16.0)", | ||
| 326 | + "input": "\uD87E\uDC68.com", | ||
| 327 | + "output": "xn--snl.com" | ||
| 328 | + }, | ||
| 329 | + { | ||
| 330 | + "input": "\u2183.com", | ||
| 331 | + "output": null | ||
| 332 | + }, | ||
| 333 | + { | ||
| 334 | + "input": "look\u034Fout.net", | ||
| 335 | + "output": "lookout.net" | ||
| 336 | + }, | ||
| 337 | + { | ||
| 338 | + "input": "gOoGle.com", | ||
| 339 | + "output": "google.com" | ||
| 340 | + }, | ||
| 341 | + { | ||
| 342 | + "input": "\u09dc.com", | ||
| 343 | + "output": "xn--15b8c.com" | ||
| 344 | + }, | ||
| 345 | + { | ||
| 346 | + "input": "\u1E9E.com", | ||
| 347 | + "output": "xn--zca.com" | ||
| 348 | + }, | ||
| 349 | + { | ||
| 350 | + "input": "\u1E9E.foo.com", | ||
| 351 | + "output": "xn--zca.foo.com" | ||
| 352 | + }, | ||
| 353 | + { | ||
| 354 | + "input": "-foo.bar.com", | ||
| 355 | + "output": "-foo.bar.com" | ||
| 356 | + }, | ||
| 357 | + { | ||
| 358 | + "input": "foo-.bar.com", | ||
| 359 | + "output": "foo-.bar.com" | ||
| 360 | + }, | ||
| 361 | + { | ||
| 362 | + "input": "ab--cd.com", | ||
| 363 | + "output": "ab--cd.com" | ||
| 364 | + }, | ||
| 365 | + { | ||
| 366 | + "input": "xn--0.com", | ||
| 367 | + "output": null | ||
| 368 | + }, | ||
| 369 | + { | ||
| 370 | + "input": "foo\u0300.bar.com", | ||
| 371 | + "output": "xn--fo-3ja.bar.com" | ||
| 201 | 372 | } | |
| 202 | 373 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,7 +72,7 @@ | |||
| 72 | 72 | "path": "streams" | |
| 73 | 73 | }, | |
| 74 | 74 | "url": { | |
| 75 | - "commit": "67880a4eb83ca9aa732eec4b35a1971ff5bf37ff", | ||
| 75 | + "commit": "6fa3fe8a929be45422cd46a8961e647e13d0cab8", | ||
| 76 | 76 | "path": "url" | |
| 77 | 77 | }, | |
| 78 | 78 | "user-timing": { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const { domainToASCII, domainToUnicode } = require('url'); | |||
| 13 | 13 | const tests = require('../fixtures/url-idna'); | |
| 14 | 14 | const fixtures = require('../common/fixtures'); | |
| 15 | 15 | const wptToASCIITests = require( | |
| 16 | - fixtures.path('wpt', 'url', 'resources', 'toascii.json') | ||
| 16 | + fixtures.path('wpt', 'url', 'resources', 'toascii.json'), | ||
| 17 | 17 | ); | |
| 18 | 18 | ||
| 19 | 19 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,8 @@ const { test, assert_equals, assert_throws } = require('../common/wpt').harness; | |||
| 10 | 10 | ||
| 11 | 11 | const request = { | |
| 12 | 12 | response: require( | |
| 13 | - fixtures.path('wpt', 'url', 'resources', 'toascii.json') | ||
| 14 | - ) | ||
| 13 | + fixtures.path('wpt', 'url', 'resources', 'toascii.json'), | ||
| 14 | + ), | ||
| 15 | 15 | }; | |
| 16 | 16 | ||
| 17 | 17 | // The following tests are copied from WPT. Modifications to them should be | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,22 @@ | |||
| 13 | 13 | ] | |
| 14 | 14 | } | |
| 15 | 15 | }, | |
| 16 | + "toascii.window.js": { | ||
| 17 | + "fail": { | ||
| 18 | + "note": "Unicode 15.1", | ||
| 19 | + "expected": [ | ||
| 20 | + "\uD87E\uDC68.com (using URL)", | ||
| 21 | + "\uD87E\uDC68.com (using URL.host)", | ||
| 22 | + "\uD87E\uDC68.com (using URL.hostname)", | ||
| 23 | + "\u1E9E.com (using URL)", | ||
| 24 | + "\u1E9E.com (using URL.host)", | ||
| 25 | + "\u1E9E.com (using URL.hostname)", | ||
| 26 | + "\u1E9E.foo.com (using URL)", | ||
| 27 | + "\u1E9E.foo.com (using URL.host)", | ||
| 28 | + "\u1E9E.foo.com (using URL.hostname)" | ||
| 29 | + ] | ||
| 30 | + } | ||
| 31 | + }, | ||
| 16 | 32 | "url-setters-a-area.window.js": { | |
| 17 | 33 | "skip": "already tested in url-setters.any.js" | |
| 18 | 34 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments