Created
January 29, 2014 23:19
-
-
Save lele85/8699367 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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