Skip to content

Instantly share code, notes, and snippets.

@lele85
Created January 29, 2014 23:19
Show Gist options
  • Select an option

  • Save lele85/8699367 to your computer and use it in GitHub Desktop.

Select an option

Save lele85/8699367 to your computer and use it in GitHub Desktop.
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
module.exports = new function() {
var finish;
var valueOf;
this.init = function(testUtils) {
finish = testUtils.finish;
valueOf = testUtils.valueOf;
}
this.name = "timeout";
this.tests = [{
name: "clear"
}];
this.clear = function(testRun) {
valueOf(testRun, function() {
clearTimeout(undefined);
}).shouldNotThrowException();
finish(testRun);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment