From 11f6048075f6bc7fd770a6cfbb9d29401af1679c Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Tue, 27 Jun 2017 05:58:11 -0400 Subject: [PATCH] [jquery] Fix typo that broke a bunch of tests. --- types/jquery/jquery-tests.ts | 86 ++++++++++++++++++------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index f34cc443a5..b4b4f10aaf 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -3482,10 +3482,10 @@ function JQueryStatic() { } function call_signature() { - // #ExpectType JQuery + // $ExpectType JQuery $('

', new Document()); - // #ExpectType JQuery + // $ExpectType JQuery $('

', { class: 'my-div', on: { @@ -3495,149 +3495,149 @@ function JQueryStatic() { } }); - // #ExpectType JQuery + // $ExpectType JQuery $('span', new HTMLElement()); - // #ExpectType JQuery + // $ExpectType JQuery $('span', new Document()); - // #ExpectType JQuery + // $ExpectType JQuery $('span', $('p')); - // #ExpectType JQuery + // $ExpectType JQuery $('span'); - // #ExpectType JQuery + // $ExpectType JQuery $('

'); - // #ExpectType JQuery + // $ExpectType JQuery $(new HTMLElement()); - // #ExpectType JQuery + // $ExpectType JQuery $([new HTMLElement()]); - // #ExpectType JQuery + // $ExpectType JQuery $({ foo: 'bar', hello: 'world' }); - // #ExpectType JQuery + // $ExpectType JQuery $($('p')); - // #ExpectType JQuery + // $ExpectType JQuery $(function($) { - // #ExpectType Document + // $ExpectType Document this; - // #ExpectType JQueryStatic + // $ExpectType JQueryStatic $; }); - // #ExpectType JQuery + // $ExpectType JQuery $(); } function Event() { - // #ExpectType Event + // $ExpectType EventStatic $.Event; } function cssHooks() { - // #ExpectType PlainObject> + // $ExpectType PlainObject> $.cssHooks; } function cssNumber() { - // #ExpectType PlainObject + // $ExpectType PlainObject $.cssNumber; } function fn() { - // #ExpectType JQuery + // $ExpectType JQuery $.fn; } function fx() { function interval() { - // #ExpectType JQuery + // $ExpectType number $.fx.interval; } function off() { - // #ExpectType boolean + // $ExpectType boolean $.fx.off; } function step() { - // #ExpectType PlainObject> + // $ExpectType PlainObject> $.fx.step; } } function ready() { - // #ExpectType Thenable> + // $ExpectType Thenable> $.ready; } function support() { - // #ExpectType PlainObject + // $ExpectType PlainObject $.support; } function valHooks() { - // #ExpectType PlainObject> + // $ExpectType PlainObject> $.valHooks; } function Callbacks() { - // #ExpectType Callbacks + // $ExpectType Callbacks $.Callbacks('once'); - // #ExpectType Callbacks + // $ExpectType Callbacks $.Callbacks(); } function Deferred() { function call_signature() { - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(function(deferred) { - // #ExpectType Deferred + // $ExpectType Deferred this; - // #ExpectType Deferred + // $ExpectType Deferred deferred; }); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(function(deferred) { - // #ExpectType Deferred + // $ExpectType Deferred this; - // #ExpectType Deferred + // $ExpectType Deferred deferred; }); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(function(deferred) { - // #ExpectType Deferred + // $ExpectType Deferred this; - // #ExpectType Deferred + // $ExpectType Deferred deferred; }); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(function(deferred) { - // #ExpectType Deferred + // $ExpectType Deferred this; - // #ExpectType Deferred + // $ExpectType Deferred deferred; }); - // #ExpectType Deferred + // $ExpectType Deferred $.Deferred(); }