mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
Update index.html
This commit is contained in:
1 parent
b39b5c9eda
commit
42f2087b66
1 file changed
+48
-50
+48
-50
@@ -1,53 +1,51 @@
|
|||||||
<html>
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Mocha Tests</title>
|
||||||
|
<link href="../node_modules/mocha/mocha.css" rel="stylesheet" />
|
||||||
|
<script src="../node_modules/chai/chai.js"></script>
|
||||||
|
<script src="../node_modules/mocha/mocha.js"></script>
|
||||||
|
<style>
|
||||||
|
.artplayer-app {
|
||||||
|
display: flex;
|
||||||
|
height: 300px;
|
||||||
|
border-bottom: 1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
<head>
|
.artplayer-app > div {
|
||||||
<meta charset="utf-8" />
|
display: flex;
|
||||||
<title>Mocha Tests</title>
|
justify-content: center;
|
||||||
<link href="../node_modules/mocha/mocha.css" rel="stylesheet" />
|
align-items: center;
|
||||||
<script src="../node_modules/chai/chai.js"></script>
|
flex: 1;
|
||||||
<script src="../node_modules/mocha/mocha.js"></script>
|
padding: 10px;
|
||||||
<style>
|
border-right: 1px solid #999;
|
||||||
.artplayer-app {
|
}
|
||||||
display: flex;
|
</style>
|
||||||
height: 300px;
|
</head>
|
||||||
border-bottom: 1px solid #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
.artplayer-app>div {
|
<body>
|
||||||
display: flex;
|
<div class="artplayer-app">
|
||||||
justify-content: center;
|
<div class="sample1">sample1</div>
|
||||||
align-items: center;
|
<div class="sample2">sample2</div>
|
||||||
flex: 1;
|
<div class="sample3">sample3</div>
|
||||||
padding: 10px;
|
</div>
|
||||||
border-right: 1px solid #999;
|
<div id="mocha"></div>
|
||||||
}
|
<script>
|
||||||
</style>
|
window.mocha.setup('bdd');
|
||||||
</head>
|
window.expect = window.chai.expect;
|
||||||
|
</script>
|
||||||
<body>
|
<script src="../packages/artplayer/dist/artplayer.js"></script>
|
||||||
<div class="artplayer-app">
|
<script src="../packages/artplayer-plugin-danmuku/dist/artplayer-plugin-danmuku.js"></script>
|
||||||
<div class="sample1">sample1</div>
|
<script src="../packages/artplayer-plugin-ads/dist/artplayer-plugin-ads.js"></script>
|
||||||
<div class="sample2">sample2</div>
|
<script src="../packages/artplayer-plugin-iframe/dist/artplayer-helper-iframe.js"></script>
|
||||||
<div class="sample3">sample3</div>
|
<script src="../packages/artplayer-plugin-control/dist/artplayer-plugin-control.js"></script>
|
||||||
</div>
|
<!-- Test start -->
|
||||||
<div id="mocha"></div>
|
<script src="./document.test.js"></script>
|
||||||
<script>
|
<script src="./option.test.js"></script>
|
||||||
window.mocha.setup('bdd');
|
<!-- Test end -->
|
||||||
window.expect = window.chai.expect;
|
<script>
|
||||||
</script>
|
mocha.checkLeaks();
|
||||||
<script src="../packages/artplayer/dist/artplayer.js"></script>
|
mocha.run();
|
||||||
<script src="../packages/artplayer-plugin-danmuku/dist/artplayer-plugin-danmuku.js"></script>
|
</script>
|
||||||
<script src="../packages/artplayer-plugin-ads/dist/artplayer-plugin-ads.js"></script>
|
</body>
|
||||||
<script src="../packages/artplayer-plugin-iframe/dist/artplayer-helper-iframe.js"></script>
|
</html>
|
||||||
<script src="../packages/artplayer-plugin-control/dist/artplayer-plugin-control.js"></script>
|
|
||||||
<!-- Test start -->
|
|
||||||
<script src="./document.test.js"></script>
|
|
||||||
<script src="./option.test.js"></script>
|
|
||||||
<!-- Test end -->
|
|
||||||
<script>
|
|
||||||
mocha.checkLeaks();
|
|
||||||
mocha.run();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
Reference in new issue
Block a user