From 7c82efb17aeb4372fcf164dff6d81cf06c164637 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 19 Nov 2012 01:28:08 +0200 Subject: [PATCH] Update reference paths --- angularjs/angular-1.0.d.ts | 2 +- async/async-tests.ts | 2 +- backbone/backbone-0.9.d.ts | 2 +- backbone/backbone-tests.ts | 2 +- bootstrap/bootstrap-2.1.d.ts | 3 ++- bootstrap/bootstrap-tests.ts | 4 ++-- breeze/breeze-tests.ts | 2 +- chosen/chosen-0.9.d.ts | 2 +- chosen/chosen-tests.ts | 2 +- codemirror/codemirror-tests.ts | 2 +- easeljs/easeljs-0.5.d.ts | 2 +- easeljs/easeljs-tests.ts | 2 +- ember/ember-tests.ts | 4 ++-- express/express-3.0.d.ts | 2 +- express/express-tests.ts | 2 +- fancybox/fancybox-tests.ts | 4 ++-- globalize/globalize-tests.ts | 2 +- handlebars/handlebars-tests.ts | 2 +- history/history-tests.ts | 2 +- humane/humane-tests.ts | 2 +- impress/impress-tests.ts | 2 +- jasmine/jasmine-1.2.d.ts | 18 +++++++++--------- jasmine/jasmine-tests.ts | 2 +- jquery.dynatree/jquery.dynatree-1.2.d.ts | 2 +- jquery.validation/jquery.validation-1.10.d.ts | 2 +- jquery.validation/jquery.validation-tests.ts | 4 ++-- jquery/jquery-tests.ts | 2 +- jquerymobile/jquerymobile-1.2.d.ts | 2 +- jquerymobile/jquerymobile-tests.ts | 4 ++-- jqueryui/jqueryui-1.9.d.ts | 2 +- jqueryui/jqueryui-tests.ts | 4 ++-- knockback/knockback-0.16.d.ts | 5 +++-- knockout/knockout-2.2.d.ts | 1 + knockout/knockout-tests.ts | 4 ++-- linq/linq-tests.ts | 4 ++-- modernizr/modernizr-2.6.d.ts | 1 + modernizr/modernizr-tests.ts | 2 +- moment/moment-tests.ts | 2 +- msnodesql/msnodesql-0.2.d.ts | 2 +- msnodesql/msnodesql-tests.ts | 2 +- mustache/mustache-tests.ts | 2 +- node_redis/node_redis-tests.ts | 2 +- phonegap/phonegap-tests.ts | 2 +- qunit/qunit-tests.ts | 2 +- raphael/raphael-tests.ts | 2 +- requirejs/require-tests.ts | 2 +- sammyjs/sammyjs-0.7.d.ts | 2 +- sammyjs/sammyjs-tests.ts | 2 +- signalr/signalr-1.0.d.ts | 2 +- signalr/signalr-tests.ts | 2 +- spin/spin-tests.ts | 2 +- teechart/teechart-1.3.d.ts | 2 -- toastr/toastr-1.0.d.ts | 2 +- toastr/toastr-tests.ts | 2 +- underscore/underscore-tests.ts | 2 +- unity-webapi/unity-webapi-tests.ts | 2 +- 56 files changed, 74 insertions(+), 72 deletions(-) diff --git a/angularjs/angular-1.0.d.ts b/angularjs/angular-1.0.d.ts index a74f9b98fe..92f66ae0e2 100644 --- a/angularjs/angular-1.0.d.ts +++ b/angularjs/angular-1.0.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// declare var angular: ng.IAngularStatic; diff --git a/async/async-tests.ts b/async/async-tests.ts index bf5381469d..1c763f065a 100644 --- a/async/async-tests.ts +++ b/async/async-tests.ts @@ -1,4 +1,4 @@ -/// +/// var fs, path; diff --git a/backbone/backbone-0.9.d.ts b/backbone/backbone-0.9.d.ts index b8f9d22097..d7dcfea839 100644 --- a/backbone/backbone-0.9.d.ts +++ b/backbone/backbone-0.9.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// declare module Backbone { diff --git a/backbone/backbone-tests.ts b/backbone/backbone-tests.ts index f7125d04d0..7c8a020376 100644 --- a/backbone/backbone-tests.ts +++ b/backbone/backbone-tests.ts @@ -1,4 +1,4 @@ -/// +/// declare var _, $; diff --git a/bootstrap/bootstrap-2.1.d.ts b/bootstrap/bootstrap-2.1.d.ts index 2766919cb2..fee17e1981 100644 --- a/bootstrap/bootstrap-2.1.d.ts +++ b/bootstrap/bootstrap-2.1.d.ts @@ -3,7 +3,8 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// + +/// interface ModalOptions { backdrop?: bool; diff --git a/bootstrap/bootstrap-tests.ts b/bootstrap/bootstrap-tests.ts index 3e15aaa8bd..14f34755b7 100644 --- a/bootstrap/bootstrap-tests.ts +++ b/bootstrap/bootstrap-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// $('body').off('.data-api'); $('body').off('.alert.data-api'); diff --git a/breeze/breeze-tests.ts b/breeze/breeze-tests.ts index bf71bb6348..9929af1931 100644 --- a/breeze/breeze-tests.ts +++ b/breeze/breeze-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_dataProperty() { var lastNameProp = new DataProperty({ diff --git a/chosen/chosen-0.9.d.ts b/chosen/chosen-0.9.d.ts index 29b2ca4ffb..4c80505fe6 100644 --- a/chosen/chosen-0.9.d.ts +++ b/chosen/chosen-0.9.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface ChosenOptions { allow_single_deselect?: bool; diff --git a/chosen/chosen-tests.ts b/chosen/chosen-tests.ts index 855aabe94d..e112f3e1d4 100644 --- a/chosen/chosen-tests.ts +++ b/chosen/chosen-tests.ts @@ -1,4 +1,4 @@ -/// +/// $(".chzn-select").chosen({ no_results_text: "No results matched" }); $("#form_field").chosen().change(); diff --git a/codemirror/codemirror-tests.ts b/codemirror/codemirror-tests.ts index 12c028b906..3452a11d98 100644 --- a/codemirror/codemirror-tests.ts +++ b/codemirror/codemirror-tests.ts @@ -1,4 +1,4 @@ -/// +/// var myCodeMirror = CodeMirror(document.body); diff --git a/easeljs/easeljs-0.5.d.ts b/easeljs/easeljs-0.5.d.ts index c6779c0507..719e02048e 100644 --- a/easeljs/easeljs-0.5.d.ts +++ b/easeljs/easeljs-0.5.d.ts @@ -11,7 +11,7 @@ */ -/// +/// // rename the native MouseEvent, to avoid conflit with createjs's MouseEvent interface NativeMouseEvent extends MouseEvent { diff --git a/easeljs/easeljs-tests.ts b/easeljs/easeljs-tests.ts index cf3bed55ce..0ce52cb57d 100644 --- a/easeljs/easeljs-tests.ts +++ b/easeljs/easeljs-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_simple() { var canvas = document.getElementById('canvas'); diff --git a/ember/ember-tests.ts b/ember/ember-tests.ts index 43f2b4dcf4..5a95851101 100644 --- a/ember/ember-tests.ts +++ b/ember/ember-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// var App; diff --git a/express/express-3.0.d.ts b/express/express-3.0.d.ts index d7fdc9cd89..e474bcb673 100644 --- a/express/express-3.0.d.ts +++ b/express/express-3.0.d.ts @@ -19,7 +19,7 @@ connect.session({}) */ -/// +/// // do not reference this. use module('express') instead declare module _express { diff --git a/express/express-tests.ts b/express/express-tests.ts index dbf9e436d8..8d6c162f7c 100644 --- a/express/express-tests.ts +++ b/express/express-tests.ts @@ -1,4 +1,4 @@ -/// +/// declare var _, $; diff --git a/fancybox/fancybox-tests.ts b/fancybox/fancybox-tests.ts index b3cd975837..875a9fcdd4 100644 --- a/fancybox/fancybox-tests.ts +++ b/fancybox/fancybox-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// $('.fancybox').fancybox(); $('.fancybox').fancybox({ diff --git a/globalize/globalize-tests.ts b/globalize/globalize-tests.ts index 21a5580da3..5773304242 100644 --- a/globalize/globalize-tests.ts +++ b/globalize/globalize-tests.ts @@ -1,4 +1,4 @@ -/// +/// Globalize.culture("fr"); console.log(Globalize.culture().name); diff --git a/handlebars/handlebars-tests.ts b/handlebars/handlebars-tests.ts index be78d887d0..6a8aa61bb3 100644 --- a/handlebars/handlebars-tests.ts +++ b/handlebars/handlebars-tests.ts @@ -1,4 +1,4 @@ -/// +/// var context = { author: { firstName: "Alan", lastName: "Johnson" }, diff --git a/history/history-tests.ts b/history/history-tests.ts index 0f76fbdcfa..f90cccd8e4 100644 --- a/history/history-tests.ts +++ b/history/history-tests.ts @@ -1,4 +1,4 @@ -/// +/// if (!History.enabled) { return false; diff --git a/humane/humane-tests.ts b/humane/humane-tests.ts index c73621de7b..01068d62a8 100644 --- a/humane/humane-tests.ts +++ b/humane/humane-tests.ts @@ -1,4 +1,4 @@ -/// +/// humane.log("Welcome Back"); humane.log(["List","of","Items"]); diff --git a/impress/impress-tests.ts b/impress/impress-tests.ts index 34c51d864f..8ac156bcf6 100644 --- a/impress/impress-tests.ts +++ b/impress/impress-tests.ts @@ -1,4 +1,4 @@ -/// +/// impress().init(); diff --git a/jasmine/jasmine-1.2.d.ts b/jasmine/jasmine-1.2.d.ts index 1eb7dbfcb1..0d16559e92 100644 --- a/jasmine/jasmine-1.2.d.ts +++ b/jasmine/jasmine-1.2.d.ts @@ -29,7 +29,7 @@ declare module jasmine { var Clock: Clock; function any(aclass: any); - function createSpy(name: string): any; + function createSpy(name: string): any; function createSpyObj(baseName: string, methodNames: any[]): any; function getEnv(): Env; @@ -230,16 +230,16 @@ declare module jasmine { } interface Spy { - identity: string; - calls: any[]; - mostRecentCall: { args: any[]; }; - argsForCall: any[]; - wasCalled: bool; + identity: string; + calls: any[]; + mostRecentCall: { args: any[]; }; + argsForCall: any[]; + wasCalled: bool; callCount: number; - andReturn(value): void; - andCallThrough(): void; - andCallFake(fakeFunc: Function): void; + andReturn(value): void; + andCallThrough(): void; + andCallFake(fakeFunc: Function): void; } interface Suite { diff --git a/jasmine/jasmine-tests.ts b/jasmine/jasmine-tests.ts index cb7c52bb31..c3211d16bb 100644 --- a/jasmine/jasmine-tests.ts +++ b/jasmine/jasmine-tests.ts @@ -1,4 +1,4 @@ -/// +/// describe("A suite", () => { it("contains spec with an expectation", () => { diff --git a/jquery.dynatree/jquery.dynatree-1.2.d.ts b/jquery.dynatree/jquery.dynatree-1.2.d.ts index 7154564c09..d4dea0f4e5 100644 --- a/jquery.dynatree/jquery.dynatree-1.2.d.ts +++ b/jquery.dynatree/jquery.dynatree-1.2.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface JQuery { dynatree(options?: DynatreeOptions): DynaTree; diff --git a/jquery.validation/jquery.validation-1.10.d.ts b/jquery.validation/jquery.validation-1.10.d.ts index e81d50af11..612a2fdd93 100644 --- a/jquery.validation/jquery.validation-1.10.d.ts +++ b/jquery.validation/jquery.validation-1.10.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface ValidationOptions { debug?: bool; diff --git a/jquery.validation/jquery.validation-tests.ts b/jquery.validation/jquery.validation-tests.ts index b4e7fc1d13..64e8915ae9 100644 --- a/jquery.validation/jquery.validation-tests.ts +++ b/jquery.validation/jquery.validation-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// function test_validate() { $("#commentForm").validate(); diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 07c61b779a..1580d80b18 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_add() { $("p").add("div").addClass("widget"); diff --git a/jquerymobile/jquerymobile-1.2.d.ts b/jquerymobile/jquerymobile-1.2.d.ts index 50a4b2f2c3..5ab7166d33 100644 --- a/jquerymobile/jquerymobile-1.2.d.ts +++ b/jquerymobile/jquerymobile-1.2.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface JQueryMobileEvent { (event: Event, ui): void; } diff --git a/jquerymobile/jquerymobile-tests.ts b/jquerymobile/jquerymobile-tests.ts index d081a304ca..2ec73ab469 100644 --- a/jquerymobile/jquerymobile-tests.ts +++ b/jquerymobile/jquerymobile-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// function test_api() { $.mobile.changePage("about/us.html", { transition: "slideup" }); diff --git a/jqueryui/jqueryui-1.9.d.ts b/jqueryui/jqueryui-1.9.d.ts index d515044897..293a1c9f46 100644 --- a/jqueryui/jqueryui-1.9.d.ts +++ b/jqueryui/jqueryui-1.9.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// // Accordion ////////////////////////////////////////////////// diff --git a/jqueryui/jqueryui-tests.ts b/jqueryui/jqueryui-tests.ts index 576008f3a8..84bcaf956e 100644 --- a/jqueryui/jqueryui-tests.ts +++ b/jqueryui/jqueryui-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// function test_draggable() { diff --git a/knockback/knockback-0.16.d.ts b/knockback/knockback-0.16.d.ts index e41857dfc0..37d01a5d63 100644 --- a/knockback/knockback-0.16.d.ts +++ b/knockback/knockback-0.16.d.ts @@ -1,5 +1,6 @@ -/// -/// +/// +/// + declare module Knockback { export interface EventWatcherOptions { emitter: (newEmitter) => void; diff --git a/knockout/knockout-2.2.d.ts b/knockout/knockout-2.2.d.ts index 0afaf12530..2520e9ad41 100644 --- a/knockout/knockout-2.2.d.ts +++ b/knockout/knockout-2.2.d.ts @@ -3,6 +3,7 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped + interface KnockoutSubscribableFunctions { extend(source); dispose(): void; diff --git a/knockout/knockout-tests.ts b/knockout/knockout-tests.ts index 664e005454..82974af143 100644 --- a/knockout/knockout-tests.ts +++ b/knockout/knockout-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// declare var $; diff --git a/linq/linq-tests.ts b/linq/linq-tests.ts index 32281dacd4..b737684a68 100644 --- a/linq/linq-tests.ts +++ b/linq/linq-tests.ts @@ -1,5 +1,5 @@ -/// -/// +/// +/// // tests were run from VisualStudio + Resharper7 describe("Linq.js tests", function () { diff --git a/modernizr/modernizr-2.6.d.ts b/modernizr/modernizr-2.6.d.ts index 61a3741273..202d5d727f 100644 --- a/modernizr/modernizr-2.6.d.ts +++ b/modernizr/modernizr-2.6.d.ts @@ -3,6 +3,7 @@ // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped + interface AudioBool { ogg: bool; mp3: bool; diff --git a/modernizr/modernizr-tests.ts b/modernizr/modernizr-tests.ts index 707ef065bd..8ae48ae6fe 100644 --- a/modernizr/modernizr-tests.ts +++ b/modernizr/modernizr-tests.ts @@ -1,4 +1,4 @@ -/// +/// declare var $: any; diff --git a/moment/moment-tests.ts b/moment/moment-tests.ts index afc55b07bf..8294b03bc6 100644 --- a/moment/moment-tests.ts +++ b/moment/moment-tests.ts @@ -1,4 +1,4 @@ -/// +/// moment().add('hours', 1).fromNow(); diff --git a/msnodesql/msnodesql-0.2.d.ts b/msnodesql/msnodesql-0.2.d.ts index a9ea2be4f9..b73b615492 100644 --- a/msnodesql/msnodesql-0.2.d.ts +++ b/msnodesql/msnodesql-0.2.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// declare module "msnodesql" { export function open(connectionString: string, callback: Function): Connection; diff --git a/msnodesql/msnodesql-tests.ts b/msnodesql/msnodesql-tests.ts index babbb59be9..ed1dafe6da 100644 --- a/msnodesql/msnodesql-tests.ts +++ b/msnodesql/msnodesql-tests.ts @@ -1,4 +1,4 @@ -/// +/// import sql = module('msnodesql'); diff --git a/mustache/mustache-tests.ts b/mustache/mustache-tests.ts index 8dad7ee45f..1c440eea37 100644 --- a/mustache/mustache-tests.ts +++ b/mustache/mustache-tests.ts @@ -1,4 +1,4 @@ -/// +/// var view = { title: "Joe", calc: function () { return 2 + 4; } }; var output = Mustache.render("{{title}} spends {{calc}}", view); diff --git a/node_redis/node_redis-tests.ts b/node_redis/node_redis-tests.ts index db3bfd6a49..86753bc6ea 100644 --- a/node_redis/node_redis-tests.ts +++ b/node_redis/node_redis-tests.ts @@ -1,4 +1,4 @@ -/// +/// import redis = module('redis'); diff --git a/phonegap/phonegap-tests.ts b/phonegap/phonegap-tests.ts index 212bb65369..bb01c38cd4 100644 --- a/phonegap/phonegap-tests.ts +++ b/phonegap/phonegap-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_accelerometer() { var watchID = null; diff --git a/qunit/qunit-tests.ts b/qunit/qunit-tests.ts index b18e3d182f..77fb7c507c 100644 --- a/qunit/qunit-tests.ts +++ b/qunit/qunit-tests.ts @@ -1,4 +1,4 @@ -/// +/// QUnit.test("deepEqual test", function () { var obj = { foo: "bar" }; diff --git a/raphael/raphael-tests.ts b/raphael/raphael-tests.ts index 8c4232ef5d..6b90a11a49 100644 --- a/raphael/raphael-tests.ts +++ b/raphael/raphael-tests.ts @@ -1,4 +1,4 @@ -/// +/// var paper = Raphael(10, 50, 320, 200); var circle = paper.circle(50, 40, 10); diff --git a/requirejs/require-tests.ts b/requirejs/require-tests.ts index 3c5877eefa..961fe009fa 100644 --- a/requirejs/require-tests.ts +++ b/requirejs/require-tests.ts @@ -1,4 +1,4 @@ -/// +/// // this test does not actually reference amd module 'main.ts', create one yourself. diff --git a/sammyjs/sammyjs-0.7.d.ts b/sammyjs/sammyjs-0.7.d.ts index 2d1344d142..2096cbb75f 100644 --- a/sammyjs/sammyjs-0.7.d.ts +++ b/sammyjs/sammyjs-0.7.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// module Sammy { export function (): Sammy.Application; diff --git a/sammyjs/sammyjs-tests.ts b/sammyjs/sammyjs-tests.ts index 588d08f2c6..e0961a4699 100644 --- a/sammyjs/sammyjs-tests.ts +++ b/sammyjs/sammyjs-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_general() { var app = Sammy('#main', function () { diff --git a/signalr/signalr-1.0.d.ts b/signalr/signalr-1.0.d.ts index 3deb84a435..cdff3395a4 100644 --- a/signalr/signalr-1.0.d.ts +++ b/signalr/signalr-1.0.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface HubMethod { (callback: (data: string) => void ); diff --git a/signalr/signalr-tests.ts b/signalr/signalr-tests.ts index 4dda69f92d..f8b2368e66 100644 --- a/signalr/signalr-tests.ts +++ b/signalr/signalr-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_client() { var connection = $.connection('/echo'); diff --git a/spin/spin-tests.ts b/spin/spin-tests.ts index 2b85bf4477..86eae87635 100644 --- a/spin/spin-tests.ts +++ b/spin/spin-tests.ts @@ -1,4 +1,4 @@ -/// +/// var spinner = new Spinner().spin(); target.appendChild(spinner.el); diff --git a/teechart/teechart-1.3.d.ts b/teechart/teechart-1.3.d.ts index af93aa7620..41f9de677e 100644 --- a/teechart/teechart-1.3.d.ts +++ b/teechart/teechart-1.3.d.ts @@ -18,8 +18,6 @@ */ -/// - module Tee { interface IPoint { diff --git a/toastr/toastr-1.0.d.ts b/toastr/toastr-1.0.d.ts index dc4779011e..e4c842ec96 100644 --- a/toastr/toastr-1.0.d.ts +++ b/toastr/toastr-1.0.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// interface ToastrOptions { tapToDismiss?: bool; diff --git a/toastr/toastr-tests.ts b/toastr/toastr-tests.ts index 14549bfccd..7e7e8352b7 100644 --- a/toastr/toastr-tests.ts +++ b/toastr/toastr-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_basic() { toastr.info('Are you the 6 fingered man?'); diff --git a/underscore/underscore-tests.ts b/underscore/underscore-tests.ts index a7775a0304..6fdf8b8b56 100644 --- a/underscore/underscore-tests.ts +++ b/underscore/underscore-tests.ts @@ -1,4 +1,4 @@ -/// +/// declare var $; diff --git a/unity-webapi/unity-webapi-tests.ts b/unity-webapi/unity-webapi-tests.ts index 5de89e3bac..aa96a4dfe5 100644 --- a/unity-webapi/unity-webapi-tests.ts +++ b/unity-webapi/unity-webapi-tests.ts @@ -1,4 +1,4 @@ -/// +/// var Unity = external.getUnityObject(1.0); var settings = new UnitySettings();