mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
Tests: Use .invalid TLD for invalid requests
RFC2606 and RFC6761 define .invalid as a guaranteed-invalid TLD, so let's use it. Theoretically this should make the request fail much faster.
This commit is contained in:
parent
c31f9815b4
commit
ea95e32539
|
|
@ -1,3 +1,3 @@
|
|||
failed to load: "data:"
|
||||
failed to load: "file:///i-do-no-exist-i-swear"
|
||||
failed to load: "https://i-do-no-exist-i-swear.net.uk/"
|
||||
failed to load: "https://something.invalid/"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<form name="bob">
|
||||
<button type="submit" id="fred" name="george" value="submit">Submit</button>
|
||||
</form>
|
||||
<img name="foo" id="bar" src="http://www.example.com" alt="Example" />
|
||||
<img id="baz" src="http://www.example.com" alt="Example" />
|
||||
<img name="foo" id="bar" src="http://something.invalid" alt="Example" />
|
||||
<img id="baz" src="http://something.invalid" alt="Example" />
|
||||
<form name="foo">
|
||||
</form>
|
||||
<meta name="kangaroo" />
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
println("FAILED");
|
||||
});
|
||||
|
||||
let notExistFont = new FontFace("NotExist", "url(https://example.com/not-exist.woff)");
|
||||
let notExistFont = new FontFace("NotExist", "url(https://something.invalid/not-exist.woff)");
|
||||
await notExistFont.load().then(() => {
|
||||
println("FAILED");
|
||||
}, (reason) => {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
const SOURCES = [
|
||||
"data:",
|
||||
"file:///i-do-no-exist-i-swear",
|
||||
"https://i-do-no-exist-i-swear.net.uk",
|
||||
"https://something.invalid",
|
||||
];
|
||||
|
||||
const runTest = source => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user