This commit is contained in:
Harvey committed 2020-05-20 14:04:53 +08:00
1 parent 4800c6f76c
commit 02d4c801ca
3 files changed
+17 -10

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
var url = 'https://zhw2590582.github.io/assets-cdn/video/one-more-time-one-more-chance-480p.mp4';
describe('Constructor', function() {
var url = 'https://zhw2590582.github.io/assets-cdn/video/one-more-time-one-more-chance-480p.mp4';
afterEach(function() {
[...Artplayer.instances].forEach(art => {
art.destroy(true);
+13 -6
View File
@@ -54,28 +54,35 @@ console.log(Artplayer.option);
it(`Class.instances`, function() {
console.log(Artplayer.instances.length);
console.info(Artplayer.instances);
});
it(`Class.scheme`, function() {
console.log(Artplayer.scheme);
console.info(Artplayer.scheme);
});
it(`Class.validator`, function() {
console.log(Artplayer.validator);
console.info(Artplayer.validator);
});
it(`Class.kindOf`, function() {
console.log(Artplayer.kindOf);
console.info(Artplayer.kindOf);
});
it(`Class.Emitter`, function() {
console.info(Artplayer.Emitter);
});
@@ -931,7 +938,7 @@ var art = new Artplayer({
});
art.layers.add({
html: `<img style="width: 100px" src="${url}/image/your-name.png">`,
html: `<img style="width: 100px" src="/assets/sample/layer.png">`,
style: {
position: 'absolute',
top: '20px',
@@ -1230,7 +1237,7 @@ var art = new Artplayer({
});
art.layers.add({
html: `<img style="width: 100px" src="${url}/image/your-name.png">`,
html: `<img style="width: 100px" src="/assets/sample/layer.png">`,
style: {
position: 'absolute',
top: '20px',
+2 -2
View File
@@ -1,6 +1,6 @@
var url = 'https://zhw2590582.github.io/assets-cdn/video/one-more-time-one-more-chance-480p.mp4';
describe('Option', function() {
var url = 'https://zhw2590582.github.io/assets-cdn/video/one-more-time-one-more-chance-480p.mp4';
afterEach(function() {
[...Artplayer.instances].forEach(art => {
art.destroy(true);