From dea94f20ec8df30328eb91f35cab0f6313ff586f Mon Sep 17 00:00:00 2001 From: John Reilly Date: Mon, 2 Dec 2013 09:53:43 +0000 Subject: [PATCH] jQuery: Added missing tests --- jquery/jquery-tests.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 69bb2251ea..a77de77d7f 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -2001,6 +2001,36 @@ function test_keyup() { }); } +function test_resize() { + $('#other').resize(); + $('#other').resize(function () { + alert('Handler for .resize() called.'); + }); + $('#other').resize({ "event": "Data" }, function () { + alert('Handler for .resize() called.'); + }); +} + +function test_scroll() { + $('#other').scroll(); + $('#other').scroll(function () { + alert('Handler for .scroll() called.'); + }); + $('#other').scroll({ "event": "Data" }, function () { + alert('Handler for .scroll() called.'); + }); +} + +function test_select() { + $('#other').select(); + $('#other').select(function () { + alert('Handler for .select() called.'); + }); + $('#other').select({ "event": "Data" }, function () { + alert('Handler for .select() called.'); + }); +} + function test_last() { $('li').last().css('background-color', 'red'); $("p span").last().addClass('highlight');