Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
746 changes: 582 additions & 164 deletions deps/ada/ada.cpp

Large diffs are not rendered by default.

1,789 changes: 1,251 additions & 538 deletions deps/ada/ada.h

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions deps/ada/ada_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,14 @@ ada_string_pair ada_search_params_entries_iter_next(
bool ada_search_params_entries_iter_has_next(
ada_url_search_params_entries_iter result);

// Definitions for Ada's version number.
typedef struct {
int major;
int minor;
int revision;
} ada_version_components;

const char* ada_get_version();
ada_version_components ada_get_version_components();

#endif // ADA_C_H
2 changes: 1 addition & 1 deletion test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Last update:
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
- url: https://github.com/web-platform-tests/wpt/tree/593c46cf18/url
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
Expand Down
7 changes: 7 additions & 0 deletions test/fixtures/wpt/url/WEB_FEATURES.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
features:
- name: url
files:
- "*"
- "!url-statics-canparse.*"
- name: url-canparse
files:
- url-statics-canparse.*
- name: base
files:
- a-element*
6 changes: 6 additions & 0 deletions test/fixtures/wpt/url/javascript-urls.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"property": "shouldNotExistB",
"expected": undefined
},
{
"description": "javascript: URL with extra slashes at the start",
"input": "javascript:///globalThis.shouldNotExistC=1",
"property": "shouldNotExistC",
"expected": undefined
},
{
"description": "javascript: URL without an opaque path",
"input": "javascript://host/1%0a//../0/;globalThis.shouldBeOne=1;/%0aglobalThis.shouldBeOne=2;/..///",
Expand Down
39 changes: 23 additions & 16 deletions test/fixtures/wpt/url/resources/IdnaTestV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8708,14 +8708,14 @@
"output": null
},
{
"comment": "V7; A4_2 (ignored)",
"comment": "A4_2 (ignored)",
"input": "\ud88a\udd3120.\u97f3.\ua8661.",
"output": null
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
},
{
"comment": "V7; A4_2 (ignored)",
"comment": "A4_2 (ignored)",
"input": "xn--20-9802c.xn--0w5a.xn--1-eg4e.",
"output": null
"output": "xn--20-9802c.xn--0w5a.xn--1-eg4e."
},
{
"comment": "V7",
Expand Down Expand Up @@ -9095,57 +9095,64 @@
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200d\u00df",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a9\ua369\u17d3.\u200d\u00df",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSS",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dss",
"output": null
},
{
"comment": "V7",
"input": "xn--9-i0j5967eg3qz.ss",
"output": null
"output": "xn--9-i0j5967eg3qz.ss"
},
{
"comment": "C2; V7",
"input": "\ud88a\udf9a9\ua369\u17d3.ss",
"output": "xn--9-i0j5967eg3qz.ss"
},
{
"input": "\ud88a\udf9a9\ua369\u17d3.SS",
"output": "xn--9-i0j5967eg3qz.ss"
},
{
"comment": "C2",
"input": "xn--9-i0j5967eg3qz.xn--ss-l1t",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "xn--9-i0j5967eg3qz.xn--zca770n",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSS",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dss",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a9\ua369\u17d3.\u200dSs",
"output": null
},
{
"comment": "C2; V7",
"comment": "C2",
"input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSs",
"output": null
},
Expand Down
31 changes: 31 additions & 0 deletions test/fixtures/wpt/url/resources/setters_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,15 @@
"host": "test",
"hostname": "test"
}
},
{
"href": "foo://path/to",
"new_value": ":80",
"expected": {
"href": "foo://path/to",
"host": "path",
"port": ""
}
}
],
"hostname": [
Expand Down Expand Up @@ -1909,6 +1918,20 @@
"expected": {
"port": "4"
}
},
{
"href": "https://domain.com:3000",
"new_value": "\n\t80\n\t80\n\t",
"expected": {
"port": "8080"
}
},
{
"href": "https://domain.com:3000",
"new_value": "\n\n\t\t",
"expected": {
"port": "3000"
}
}
],
"pathname": [
Expand Down Expand Up @@ -2191,6 +2214,14 @@
"href": "http://example.net/%00",
"pathname": "/%00"
}
},
{
"href": "foo://path/to",
"new_value": "/..",
"expected": {
"href": "foo://path/",
"pathname": "/"
}
}
],
"search": [
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"path": "streams"
},
"url": {
"commit": "9504a83e014b6b26d6c09eaee89c6b83cb7410c2",
"commit": "593c46cf18ee325a8740d3f0f4c447840fb9919a",
"path": "url"
},
"urlpattern": {
Expand Down
22 changes: 16 additions & 6 deletions test/wpt/status/url.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
{
"percent-encoding.window.js": {
"skip": "TODO: port from .window.js"
"IdnaTestV2.window.js": {
"fail": {
"expected": [
"ToASCII(\"𲤱20.音.ꡦ1.\") A4_2 (ignored)",
"ToASCII(\"xn--20-9802c.xn--0w5a.xn--1-eg4e.\") A4_2 (ignored)",
"ToASCII(\"xn--9-i0j5967eg3qz.ss\")",
"ToASCII(\"𲮚9ꍩ៓.ss\")",
"ToASCII(\"𲮚9ꍩ៓.SS\")"
]
}
},
"historical.any.js": {
"fail": {
"note": "We are faking location with a URL object for the sake of the testharness and it has searchParams.",
"expected": [
"searchParams on location object"
]
}
},
"url-setters-a-area.window.js": {
"skip": "already tested in url-setters.any.js"
},
"javascript-urls.window.js": {
"skip": "requires document.body reference"
},
"percent-encoding.window.js": {
"skip": "TODO: port from .window.js"
},
"url-setters-a-area.window.js": {
"skip": "already tested in url-setters.any.js"
}
}
Loading