From 04bda326dc345704b22c1d3964a3e3fcf19ef6f9 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Thu, 18 Oct 2012 15:00:00 +0300 Subject: [PATCH] Renamed several files --- .../{humane-3.0.5.d.ts => humane-3.0.d.ts} | 42 +-- .../{qunit-1.10.0.d.ts => qunit-1.10.d.ts} | 258 +++++++++--------- Tests/{qunit-test.ts => qunit-tests.ts} | 0 3 files changed, 150 insertions(+), 150 deletions(-) rename Definitions/{humane-3.0.5.d.ts => humane-3.0.d.ts} (96%) rename Definitions/{qunit-1.10.0.d.ts => qunit-1.10.d.ts} (97%) rename Tests/{qunit-test.ts => qunit-tests.ts} (100%) diff --git a/Definitions/humane-3.0.5.d.ts b/Definitions/humane-3.0.d.ts similarity index 96% rename from Definitions/humane-3.0.5.d.ts rename to Definitions/humane-3.0.d.ts index eb149ada4..4232bc552 100644 --- a/Definitions/humane-3.0.5.d.ts +++ b/Definitions/humane-3.0.d.ts @@ -1,21 +1,21 @@ -interface HumaneOptions { - timeout:number; - clickToClose:Boolean; - baseCls:String; - addnCls:String; -} - -interface Humane { - create(options?:HumaneOptions):Humane; - info:Function; - error:Function; - spawn(options:HumaneOptions):Function; - remove(); - log(message:String):Humane; - log(message:String, callback:Function):Humane; - log(message:String, options:HumaneOptions):Humane; - log(message:String, callback:Function, options:HumaneOptions):Humane; - - log(listOfMessages:Array):Humane; -} -declare var humane:Humane; +interface HumaneOptions { + timeout:number; + clickToClose:Boolean; + baseCls:String; + addnCls:String; +} + +interface Humane { + create(options?:HumaneOptions):Humane; + info:Function; + error:Function; + spawn(options:HumaneOptions):Function; + remove(); + log(message:String):Humane; + log(message:String, callback:Function):Humane; + log(message:String, options:HumaneOptions):Humane; + log(message:String, callback:Function, options:HumaneOptions):Humane; + + log(listOfMessages:Array):Humane; +} +declare var humane:Humane; diff --git a/Definitions/qunit-1.10.0.d.ts b/Definitions/qunit-1.10.d.ts similarity index 97% rename from Definitions/qunit-1.10.0.d.ts rename to Definitions/qunit-1.10.d.ts index d7c313432..d21c61bac 100644 --- a/Definitions/qunit-1.10.0.d.ts +++ b/Definitions/qunit-1.10.d.ts @@ -1,130 +1,130 @@ -// Type definitions for QUnit 1.10.0 -// Project: http://qunitjs.com/ -// @by: Diullei Gomes - -interface DoneCallbackObject { - failed: number; - passed: number; - total: number; - runtime: number; -} - -interface LogCallbackObject { - result: bool; - actual: Object; - expected: Object; - message: string; -} - -interface ModuleDoneCallbackObject { - name: string; - failed: number; - passed: number; - total: number; -} - -interface TestDoneCallbackObject { - name: string; - module: string; - failed: number; - passed: number; - total: number; -} - -interface TestStartCallbackObject { - name: string; - module: string; - failed: number; - passed: number; - total: number; -} - -interface Config { - altertitle: bool; - autostart: bool; - current: Object; - reorder: bool; - requireExpects: bool; - urlConfig: Array; -} - -interface LifecycleObject { - setup: () => any; - teardown: () => any; -} - -interface QUnitAssert { - /* ASSERT */ - deepEqual(actual: Object, expected: Object, message: string); - equal(actual: Object, expected: Object, message: string); - notDeepEqual(actual: Object, expected: Object, message: string); - notEqual(actual: Object, expected: Object, message: string); - notStrictEqual(actual: Object, expected: Object, message: string); - ok(state: any, message: string); - strictEqual(actual: Object, expected: Object, message: string); - throws(block: () => any, expected: Object, message: string); - throws(block: () => any, message: string); -} - -interface QUnitStatic extends QUnitAssert{ - /* ASYNC CONTROL */ - start(decrement?: number); - stop(increment? : number); - - /* CALLBACKS */ - begin(callback: () => any); - done(callback: (details: DoneCallbackObject) => any); - log(callback: (details: LogCallbackObject) => any); - moduleDone(callback: (details: ModuleDoneCallbackObject) => any); - moduleStart(callback: (name: string) => any); - testDone(callback: (details: TestDoneCallbackObject) => any); - testStart(callback: (details: TestStartCallbackObject) => any); - - /* CONFIGURATION */ - config: Config; - - /* TEST */ - asyncTest(name: string, expected: number, test: () => any); - asyncTest(name: string, test: () => any); - expect(amount: number); - module(name: string, lifecycle?: LifecycleObject); - test(title: string, expected: number, test: (assert: any) => any); - test(title: string, test: (assert: any) => any); -} - -/* ASSERT */ -declare var deepEqual: (actual: Object, expected: Object, message: string) => any; -declare var equal: (actual: Object, expected: Object, message: string) => any; -declare var notDeepEqual: (actual: Object, expected: Object, message: string) => any; -declare var notEqual: (actual: Object, expected: Object, message: string) => any; -declare var notStrictEqual: (actual: Object, expected: Object, message: string) => any; -declare var ok: (state: any, message: string) => any; -declare var strictEqual: (actual: Object, expected: Object, message: string) => any; -// ** I Can't make overload here! :( -//declare var throws: (block: () => void, expected: Object, message: string) => any; -declare var throws: (block: () => void, message: string) => any; - -/* ASYNC CONTROL */ -declare var start: (decrement?: number) => any; -declare var stop: (increment? : number) => any; - -/* CALLBACKS */ -declare var begin: (callback: () => any) => any; -declare var done: (callback: (details: DoneCallbackObject) => any) => any; -declare var log: (callback: (details: LogCallbackObject) => any) => any; -declare var moduleDone: (callback: (details: ModuleDoneCallbackObject) => any) => any; -declare var moduleStart: (callback: (name: string) => any) => any; -declare var testDone: (callback: (details: TestDoneCallbackObject) => any) => any; -declare var testStart: (callback: (details: TestStartCallbackObject) => any) => any; - -/* TEST */ -declare var asyncTest: (name: string, /*expected?: number, */test: () => any) => any; -declare var expect: (amount: number) => any; -// ** conflict with TypeScript module keyword. Must be used on QUnit namespace -//declare var module: (name: string, lifecycle?: LifecycleObject) => any; -// ** I can't make an overload here! :( -//declare var test: (title: string, expected: number, test: (assert?: any) => any) => any; -declare var test: (title: string, test: (assert?: any) => any) => any; - -/* QUNIT */ +// Type definitions for QUnit 1.10.0 +// Project: http://qunitjs.com/ +// @by: Diullei Gomes + +interface DoneCallbackObject { + failed: number; + passed: number; + total: number; + runtime: number; +} + +interface LogCallbackObject { + result: bool; + actual: Object; + expected: Object; + message: string; +} + +interface ModuleDoneCallbackObject { + name: string; + failed: number; + passed: number; + total: number; +} + +interface TestDoneCallbackObject { + name: string; + module: string; + failed: number; + passed: number; + total: number; +} + +interface TestStartCallbackObject { + name: string; + module: string; + failed: number; + passed: number; + total: number; +} + +interface Config { + altertitle: bool; + autostart: bool; + current: Object; + reorder: bool; + requireExpects: bool; + urlConfig: Array; +} + +interface LifecycleObject { + setup: () => any; + teardown: () => any; +} + +interface QUnitAssert { + /* ASSERT */ + deepEqual(actual: Object, expected: Object, message: string); + equal(actual: Object, expected: Object, message: string); + notDeepEqual(actual: Object, expected: Object, message: string); + notEqual(actual: Object, expected: Object, message: string); + notStrictEqual(actual: Object, expected: Object, message: string); + ok(state: any, message: string); + strictEqual(actual: Object, expected: Object, message: string); + throws(block: () => any, expected: Object, message: string); + throws(block: () => any, message: string); +} + +interface QUnitStatic extends QUnitAssert{ + /* ASYNC CONTROL */ + start(decrement?: number); + stop(increment? : number); + + /* CALLBACKS */ + begin(callback: () => any); + done(callback: (details: DoneCallbackObject) => any); + log(callback: (details: LogCallbackObject) => any); + moduleDone(callback: (details: ModuleDoneCallbackObject) => any); + moduleStart(callback: (name: string) => any); + testDone(callback: (details: TestDoneCallbackObject) => any); + testStart(callback: (details: TestStartCallbackObject) => any); + + /* CONFIGURATION */ + config: Config; + + /* TEST */ + asyncTest(name: string, expected: number, test: () => any); + asyncTest(name: string, test: () => any); + expect(amount: number); + module(name: string, lifecycle?: LifecycleObject); + test(title: string, expected: number, test: (assert: any) => any); + test(title: string, test: (assert: any) => any); +} + +/* ASSERT */ +declare var deepEqual: (actual: Object, expected: Object, message: string) => any; +declare var equal: (actual: Object, expected: Object, message: string) => any; +declare var notDeepEqual: (actual: Object, expected: Object, message: string) => any; +declare var notEqual: (actual: Object, expected: Object, message: string) => any; +declare var notStrictEqual: (actual: Object, expected: Object, message: string) => any; +declare var ok: (state: any, message: string) => any; +declare var strictEqual: (actual: Object, expected: Object, message: string) => any; +// ** I Can't make overload here! :( +//declare var throws: (block: () => void, expected: Object, message: string) => any; +declare var throws: (block: () => void, message: string) => any; + +/* ASYNC CONTROL */ +declare var start: (decrement?: number) => any; +declare var stop: (increment? : number) => any; + +/* CALLBACKS */ +declare var begin: (callback: () => any) => any; +declare var done: (callback: (details: DoneCallbackObject) => any) => any; +declare var log: (callback: (details: LogCallbackObject) => any) => any; +declare var moduleDone: (callback: (details: ModuleDoneCallbackObject) => any) => any; +declare var moduleStart: (callback: (name: string) => any) => any; +declare var testDone: (callback: (details: TestDoneCallbackObject) => any) => any; +declare var testStart: (callback: (details: TestStartCallbackObject) => any) => any; + +/* TEST */ +declare var asyncTest: (name: string, /*expected?: number, */test: () => any) => any; +declare var expect: (amount: number) => any; +// ** conflict with TypeScript module keyword. Must be used on QUnit namespace +//declare var module: (name: string, lifecycle?: LifecycleObject) => any; +// ** I can't make an overload here! :( +//declare var test: (title: string, expected: number, test: (assert?: any) => any) => any; +declare var test: (title: string, test: (assert?: any) => any) => any; + +/* QUNIT */ declare var QUnit: QUnitStatic; \ No newline at end of file diff --git a/Tests/qunit-test.ts b/Tests/qunit-tests.ts similarity index 100% rename from Tests/qunit-test.ts rename to Tests/qunit-tests.ts