mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
|
@ -1,59 +0,0 @@
|
|||
test("encodeURI", () => {
|
||||
[
|
||||
["шеллы", "%D1%88%D0%B5%D0%BB%D0%BB%D1%8B"],
|
||||
[";,/?:@&=+$#", ";,/?:@&=+$#"],
|
||||
["-_.!~*'()", "-_.!~*'()"],
|
||||
["ABC abc 123", "ABC%20abc%20123"],
|
||||
].forEach(test => {
|
||||
expect(encodeURI(test[0])).toBe(test[1]);
|
||||
});
|
||||
});
|
||||
|
||||
test("decodeURI", () => {
|
||||
[
|
||||
["%D1%88%D0%B5%D0%BB%D0%BB%D1%8B", "шеллы"],
|
||||
[";,/?:@&=+$#", ";,/?:@&=+$#"],
|
||||
["-_.!~*'()", "-_.!~*'()"],
|
||||
["ABC%20abc%20123", "ABC abc 123"],
|
||||
].forEach(test => {
|
||||
expect(decodeURI(test[0])).toBe(test[1]);
|
||||
});
|
||||
});
|
||||
|
||||
test("decodeURI exception", () => {
|
||||
["%", "%a", "%gh", "%%%"].forEach(test => {
|
||||
expect(() => {
|
||||
decodeURI(test);
|
||||
}).toThrowWithMessage(URIError, "URI malformed");
|
||||
});
|
||||
});
|
||||
|
||||
test("encodeURIComponent", () => {
|
||||
[
|
||||
["шеллы", "%D1%88%D0%B5%D0%BB%D0%BB%D1%8B"],
|
||||
[";,/?:@&=+$#", "%3B%2C%2F%3F%3A%40%26%3D%2B%24%23"],
|
||||
["-_.!~*'()", "-_.!~*'()"],
|
||||
["ABC abc 123", "ABC%20abc%20123"],
|
||||
].forEach(test => {
|
||||
expect(encodeURIComponent(test[0])).toBe(test[1]);
|
||||
});
|
||||
});
|
||||
|
||||
test("decodeURIComponent", () => {
|
||||
[
|
||||
["%D1%88%D0%B5%D0%BB%D0%BB%D1%8B", "шеллы"],
|
||||
["%3B%2C%2F%3F%3A%40%26%3D%2B%24%23", ";,/?:@&=+$#"],
|
||||
["-_.!~*'()", "-_.!~*'()"],
|
||||
["ABC%20abc%20123", "ABC abc 123"],
|
||||
].forEach(test => {
|
||||
expect(decodeURIComponent(test[0])).toBe(test[1]);
|
||||
});
|
||||
});
|
||||
|
||||
test("decodeURIComponent exception", () => {
|
||||
["%", "%a", "%gh", "%%%"].forEach(test => {
|
||||
expect(() => {
|
||||
decodeURI(test);
|
||||
}).toThrowWithMessage(URIError, "URI malformed");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue