update dependencies

This commit is contained in:
Harvey committed 2022-09-09 10:26:21 +08:00
1 parent 918d300e2a
commit cc65c58e4f
8 files changed
+113 -67

No files matched your search

+95 -49
View File
@@ -1,4 +1,10 @@
describe("Document", function () {
beforeEach(function () {
[...Artplayer.instances].forEach((art) => {
art.destroy(true);
});
});
afterEach(function () {
[...Artplayer.instances].forEach((art) => {
art.destroy(true);
@@ -652,7 +658,9 @@ describe("Document", function () {
var art = new Artplayer(
{
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
muted: true,
},
function () {
@@ -1269,8 +1277,6 @@ describe("Document", function () {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
muted: true,
autoplay: true,
autoPlayback: true,
});
@@ -1288,6 +1294,16 @@ describe("Document", function () {
});
it("Test78", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
airplay: true,
});
testAll(art, done);
});
it("Test79", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1310,12 +1326,20 @@ describe("Document", function () {
// 必须观看的时长,期间不能被跳过,单位为秒
// 当该值大于或等于totalDuration时,不能提前关闭广告
// 当该值等于或小于0时,则随时都可以关闭广告
playDuration: 5,
// 广告总时长,单位为秒
totalDuration: 10,
// 视频广告是否默认静音
muted: false,
// 多语言支持
i18n: {
@@ -1340,7 +1364,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test79", function (done) {
it("Test80", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1432,7 +1456,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test80", function (done) {
it("Test81", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1448,7 +1472,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test81", function (done) {
it("Test82", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1486,7 +1510,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test82", function (done) {
it("Test83", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1521,7 +1545,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test83", function (done) {
it("Test84", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1554,7 +1578,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test84", function (done) {
it("Test85", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1591,7 +1615,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test85", function (done) {
it("Test86", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1628,7 +1652,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test86", function (done) {
it("Test87", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1667,7 +1691,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test87", function (done) {
it("Test88", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1709,7 +1733,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test88", function (done) {
it("Test89", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1722,7 +1746,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test89", function (done) {
it("Test90", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1738,7 +1762,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test90", function (done) {
it("Test91", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1754,7 +1778,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test91", function (done) {
it("Test92", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1766,7 +1790,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test92", function (done) {
it("Test93", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1778,7 +1802,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test93", function (done) {
it("Test94", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1793,7 +1817,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test94", function (done) {
it("Test95", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1807,7 +1831,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test95", function (done) {
it("Test96", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1821,7 +1845,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test96", function (done) {
it("Test97", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1836,7 +1860,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test97", function (done) {
it("Test98", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1851,7 +1875,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test98", function (done) {
it("Test99", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1865,7 +1889,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test99", function (done) {
it("Test100", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1879,7 +1903,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test100", function (done) {
it("Test101", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1891,7 +1915,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test101", function (done) {
it("Test102", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1906,7 +1930,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test102", function (done) {
it("Test103", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1919,7 +1943,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test103", function (done) {
it("Test104", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1932,7 +1956,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test104", function (done) {
it("Test105", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1948,7 +1972,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test105", function (done) {
it("Test106", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1964,7 +1988,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test106", function (done) {
it("Test107", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1980,7 +2004,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test107", function (done) {
it("Test108", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -1995,7 +2019,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test108", function (done) {
it("Test109", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2007,7 +2031,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test109", function (done) {
it("Test110", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2022,7 +2046,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test110", function (done) {
it("Test111", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2036,7 +2060,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test111", function (done) {
it("Test112", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2048,7 +2072,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test112", function (done) {
it("Test113", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2062,7 +2086,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test113", function (done) {
it("Test114", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2076,7 +2100,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test114", function (done) {
it("Test115", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2090,7 +2114,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test115", function (done) {
it("Test116", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2104,7 +2128,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test116", function (done) {
it("Test117", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2118,7 +2142,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test117", function (done) {
it("Test118", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2132,7 +2156,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test118", function (done) {
it("Test119", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2146,7 +2170,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test119", function (done) {
it("Test120", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2160,7 +2184,29 @@ describe("Document", function () {
testAll(art, done);
});
it("Test120", function (done) {
it("Test121", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
controls: [
{
name: "airplay",
position: "right",
html: "AirPlay",
click: function () {
art.airplay();
},
},
],
});
testAll(art, done);
});
it("Test122", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2172,7 +2218,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test121", function (done) {
it("Test123", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2212,7 +2258,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test122", function (done) {
it("Test124", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2261,7 +2307,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test123", function (done) {
it("Test125", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2383,7 +2429,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test124", function (done) {
it("Test126", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",
@@ -2467,7 +2513,7 @@ describe("Document", function () {
testAll(art, done);
});
it("Test125", function (done) {
it("Test127", function (done) {
var art = new Artplayer({
container: ".artplayer-app",
url: "./assets/sample/video.mp4",