2018-07-30 17:07:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>SAME TRANSPORT</title>
|
|
|
|
<script src="../../build/Tone.js"></script>
|
2018-08-26 23:43:28 +00:00
|
|
|
|
2018-07-30 17:07:23 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-08-26 23:43:28 +00:00
|
|
|
<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>
|
2018-07-30 17:07:23 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|