-
Notifications
You must be signed in to change notification settings - Fork 2
/
tests-interface.html
61 lines (54 loc) · 2.34 KB
/
tests-interface.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>cpu-audio tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
<style>
#qunit {position : relative !important ;}
</style>
<script>
// needed to avoid a unwanted hot start
window.localStorage.clear();
</script>
<script src="../build/cpu-audio.js"></script>
</head>
<body>
<p><a href="..">CPU-Audio Webcomponent</a></p>
<p>
This is the graphic interface, working only web the webcomponent is fully supported by the browser.
</p>
<p>
See also :
</p>
<ul>
<li><a href="./tests-minimal.html">Minimum services, as hash links</a></li>
<li>Graphic interface, if WebComponent fully supported</li>
<li><a href="./tests-controller.html">Controller interface</a></li>
<li><a href="./tests-api.html">API</a></li>
<li><a href="./tests-parameters.html">Parameters in <head> test</a></li>
<li><a href="./tests-browser.html">Browser compliance and implementation tests</a></li>
<li><a href="../examples.html">Back to examples lists</a></li>
</ul>
<cpu-audio canonical="https://dascritch.net/post/2014/09/03/Timecodehash-%3A-Lier-vers-un-moment-d-un-sonore">
<audio id="track" controls="controls" preload="auto" muted="muted">
<source src="../tests-assets/blank.mp3" type="audio/mpeg" />
</audio>
</cpu-audio>
<p>
<button type="button" id="get_focus">
To launch the tests, <strong>please click on this button</strong>, giving focus, to autorize auto-play and click events.
</button>
Elsewhere, numerous tests will fail. See <a href="https://github.com/dascritch/cpu-audio/issues/17">issue #17 on our github for details</a>.
</p>
<p>
We also have a <a href="https://stackoverflow.com/questions/52620284/make-html5-video-start-at-specified-currenttime-in-chrome">surprising bug in Chrome that avoid to use <code>audiotag.currentTime={number}</code> ONLY if the source is hosted on localhost</a> if your local server doesn't support HTTP response 206 (partial content). If you need to local test on Chrome, please use file:/// protocol or a complete web server.
</p>
<div id="playground"></div>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../node_modules/qunit/qunit/qunit.js"></script>
<script src="./tests-interface.js"></script>
</body>
</html>