Skip to content

Commit 971ccca

Browse files
author
liangwei
committed
feat: add e2e test for multiple-imgs-load
1 parent 979b290 commit 971ccca

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

dist/assets-retry.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets-retry.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<script type="text/javascript" src="/dist/assets-retry.umd.js"></script>
7+
<script type="text/javascript">
8+
var succeeded = []
9+
var failed = []
10+
var stat = window.assetsRetry({
11+
domain: ['/e2e/not-exist', '/e2e/not-exist/twice', '/e2e'],
12+
maxRetryCount: 3,
13+
onSuccess: function (url) {
14+
succeeded.push(url)
15+
},
16+
onFail: function (url) {
17+
failed.push(url)
18+
}
19+
})
20+
</script>
21+
<link type="text/css" rel="stylesheet" href="/e2e/fixture/styles/ok.css" />
22+
</head>
23+
24+
<body>
25+
<img src="/e2e/not-exist/fixture/images/img-tag.png" height="60" />
26+
<img src="/e2e/not-exist/fixture/images/img-tag.png" height="60" />
27+
<img src="/e2e/not-exist/fixture/images/img-tag.png" height="60" />
28+
<img src="/e2e/not-exist/fixture/images/img-tag.png" height="60" />
29+
<img src="/e2e/not-exist/fixture/images/img-tag.png" height="60" />
30+
</body>
31+
32+
</html>

0 commit comments

Comments
 (0)