Tone.js/test/html/same_transport.html
tambien 5e565b3a7b adding html tests
using puppeteer
2018-08-26 19:43:28 -04:00

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>