message: silencing warnings in API Tests
diff: @@ -67,20 +67,30 @@ function (Test, Type, Transport, Time, Frequency) {
  }
  }
  + function silenceWarning(cb){
  + var warning = console.warn;
  + console.warn = function(){};
  + cb();
  + console.warn = warning;
  + }
  +
  return {
  method : function(constructor, fn, args, consArgs){
  it (fn+" ("+args.join(", ") + ")", function(){
  + silenceWarning(function(){
  var permutations = generateArgs(args);
  for (var i = 0; i < permutations.length; i++){
  var instance = new constructor(consArgs);
  instance[fn].apply(instance, permutations[i]);
  instance.dispose();
  }
  + })
  });
  },
  member : function(constructor, member, param, consArgs){
  it (member+" = "+param, function(){
  + silenceWarning(function(){
  var permutations = generateArgs([param]);
  for (var i = 0; i < permutations.length; i++){
  var instance = new constructor(consArgs);
  @@ -88,6 +98,7 @@ function (Test, Type, Transport, Time, Frequency) {
  instance.dispose();
  }
  });
  + });
  },
  constructor : function(constructor, args){
  @@ -99,6 +110,7 @@ function (Test, Type, Transport, Time, Frequency) {
  }
  it ("constructor ( "+ argString + " )", function(){
  + silenceWarning(function(){
  var permutations = generateArgs(args);
  for (var i = 0; i < permutations.length; i++){
  var Temp = function(){}; // temporary constructor
  @@ -108,6 +120,7 @@ function (Test, Type, Transport, Time, Frequency) {
  tmpInst.dispose();
  }
  });
  + });
  },
  };
  });
  