From f37e188acd419d2459df3a4662d3a035b1349888 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Mon, 26 Sep 2016 14:58:04 -0400 Subject: [PATCH] adding type primitives to APITest --- test/helper/APITest.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/helper/APITest.js b/test/helper/APITest.js index ff4ca1e7..826aa4f9 100644 --- a/test/helper/APITest.js +++ b/test/helper/APITest.js @@ -1,5 +1,5 @@ -define(["Test", "Tone/type/Type", "Tone/core/Transport"], -function (Test, Type, Transport) { +define(["Test", "Tone/type/Type", "Tone/core/Transport", "Tone/type/Time", "Tone/type/Frequency"], +function (Test, Type, Transport, Time, Frequency) { //modified from http://stackoverflow.com/questions/15298912/javascript-generating-combinations-from-n-arrays-with-m-elements function generatePermutations(args) { @@ -22,13 +22,13 @@ function (Test, Type, Transport) { if (typeof param === "string" && param.indexOf("=") !== -1){ return [undefined].concat(getVariations(param.replace("=", ""))); } else if (param === "Time"){ - return ["2n", 1, "0.5"]; + return ["2n", 1, Time("4n")]; } else if (param === "Number"){ return [20, 0, -0.5]; } else if (param === "NormalRange"){ return [0, 0.5, 1]; } else if (param === "Frequency"){ - return ["2n", "C#4", 220]; + return ["C#4", 220, Frequency("A4")]; } else if (param === "Function"){ return [function(){}]; } else {