mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
5e565b3a7b
using puppeteer
26 lines
No EOL
445 B
HTML
26 lines
No EOL
445 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>SAME TRANSPORT</title>
|
|
<script src="../../build/Tone.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<script>
|
|
|
|
function assert(statement, error){
|
|
if (!statement){
|
|
throw new Error(error);
|
|
}
|
|
}
|
|
if (Tone){
|
|
var Transport = Tone.Transport;
|
|
Tone.Offline(function(){}, 0.1).then(function(){});
|
|
assert(Tone.Transport === Transport, "Different Transports!");
|
|
} else {
|
|
throw new Error("NO TONE!");
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |