mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
Verify that aborted image requests do not cause extraneous load events.
This commit is contained in:
parent
330e222fe8
commit
db79dfb3aa
2 changed files with 35 additions and 0 deletions
|
@ -12874,6 +12874,12 @@
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"mozilla/img_multiple_request.html": [
|
||||||
|
[
|
||||||
|
"/_mozilla/mozilla/img_multiple_request.html",
|
||||||
|
{}
|
||||||
|
]
|
||||||
|
],
|
||||||
"mozilla/img_width_height.html": [
|
"mozilla/img_width_height.html": [
|
||||||
[
|
[
|
||||||
"/_mozilla/mozilla/img_width_height.html",
|
"/_mozilla/mozilla/img_width_height.html",
|
||||||
|
@ -25345,6 +25351,10 @@
|
||||||
"3c4f36abed83367c851d943b1f25b8394de6fe75",
|
"3c4f36abed83367c851d943b1f25b8394de6fe75",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
|
"mozilla/img_multiple_request.html": [
|
||||||
|
"0a6263ad87c9b3307f2dc694747b094a0517b79b",
|
||||||
|
"testharness"
|
||||||
|
],
|
||||||
"mozilla/img_width_height.html": [
|
"mozilla/img_width_height.html": [
|
||||||
"37a04735261a6d2b36c3d529ce81eda46ed6967e",
|
"37a04735261a6d2b36c3d529ce81eda46ed6967e",
|
||||||
"testharness"
|
"testharness"
|
||||||
|
|
25
tests/wpt/mozilla/tests/mozilla/img_multiple_request.html
Normal file
25
tests/wpt/mozilla/tests/mozilla/img_multiple_request.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="/resources/testharness.js"></script>
|
||||||
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
|
<script>
|
||||||
|
async_test(function(t) {
|
||||||
|
var i = new Image();
|
||||||
|
i.src = "2x2.png";
|
||||||
|
i.src = "2x2.png";
|
||||||
|
i.onload = t.step_func(function() {
|
||||||
|
i.onload = this.unreached_func("Load event for aborted request.");
|
||||||
|
t.step_timeout(t.step_func_done(), 100);
|
||||||
|
});
|
||||||
|
}, "Multiple requests for the same URL do not trigger multiple load events.");
|
||||||
|
|
||||||
|
async_test(function(t) {
|
||||||
|
var i = new Image();
|
||||||
|
i.src = "test.png";
|
||||||
|
i.src = "2x2.png";
|
||||||
|
i.onload = t.step_func(function() {
|
||||||
|
i.onload = this.unreached_func("Load event for aborted request.");
|
||||||
|
t.step_timeout(t.step_func_done(), 100);
|
||||||
|
});
|
||||||
|
}, "Multiple requests for different URL do not trigger multiple load events.");
|
||||||
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue