Commit graph

28 commits

Author SHA1 Message Date
John Bender
5a14398c55 throttledresize event tests use eventSequence 2011-06-29 12:48:09 -07:00
John Bender
7451a4b30e event test fixes with one test removal. still _very_ time sensitive 2011-06-20 22:26:24 -07:00
John Bender
66fc726321 whitespace fix for event core tests 2011-06-20 22:26:24 -07:00
scottjehl
8c6164dbf0 Added new throttledresize special event, including unit tests. This event prevents browsers from running continuous callbacks on resize, which we use internally for orientationchange in browsers like IE. It still ensures that a held event will execute after the timeout, so logic that depends on the final conditions after a resize is complete will still execute properly. This improves performance noticeably, and... Fixes #1496. Fixes #1848. Fixes #1422.
The included tests pass most of the time, but they need improvements as they will occasionally fail due to faulty timing in the tests themselves, as far as I can tell (the code tests out fine in our functional demos).
2011-06-18 11:41:47 -04:00
John Bender
31604bb75a removed uncecessary clone for event names array to fix the tests 2011-04-27 22:04:00 -07:00
Kin Blas
f80d286ecb Fixing tap/taphold tests that broke when fastclick/vmouse changes landed. 2011-03-29 12:01:58 -07:00
John Bender
caedd81cfd give swipe event triggers a 100ms buffer to allow for async sequences 2011-03-26 00:48:41 -07:00
John Bender
c7ed33cfeb increase swipe check timout to allow for test browser speed 2011-03-25 23:59:57 -07:00
John Bender
62a8a4039a stabilized event tests a bit more 2011-03-25 23:45:22 -07:00
John Bender
7d3642f3ab fixed init tests for ie 2011-03-24 09:46:13 -07:00
John Bender
2d56e5c2fb whitespace in event_core tests 2011-03-21 01:40:31 -07:00
John Bender
5d75e3dfa7 fixed event tests 2011-03-21 01:27:50 -07:00
John Bender
5d7938cb4e minor indentation issue and mocking to fix test failures 2011-02-06 23:06:33 -08:00
John Bender
d4fd6d06dc rewrapped event core tests in immediate function 2011-02-06 22:58:25 -08:00
jzaefferer
458a56839b Updated unit tests: Drop document-ready block, use #qunit-fixture instead of #main and drop extra styles now provided by QUnit. 2010-12-16 10:34:23 +01:00
John Bender
7e0cdbef5e small whitespace correction 2010-12-11 00:56:56 -08:00
John Bender
6f8aada084 orientation support tests for native vs resize 2010-12-11 00:39:27 -08:00
John Bender
7f51d4fcf5 added test for scroll prevention on swipe and move swipe movehandler prevention 2010-12-10 23:59:18 -08:00
John Bender
fc2a405d21 added swipe distance threshold tests and fixed the taphold async test 2010-12-09 00:05:41 -08:00
John Bender
25c5d2697a basic swipe timing tests 2010-12-07 23:30:02 -08:00
John Bender
0574cd78ef test for tap event not fired when movement is recorded 2010-12-07 20:22:06 -08:00
John Bender
639eaf897e added test for pushing back taphold with touchmove 2010-12-05 22:59:53 -08:00
John Bender
16ed9dc661 added tap hold test 2010-12-05 22:38:49 -08:00
John Bender
bb5d247786 removed console log 2010-11-30 23:10:41 -08:00
John Bender
5a89066e98 setup function fully tested 2010-11-30 23:08:06 -08:00
John Bender
b2905ee08c started event.special.scrollstart.setup tests 2010-11-30 22:57:49 -08:00
John Bender
c20b589686 added test for trigger inside new event closure 2010-11-29 23:47:38 -08:00
John Bender
524008f5f3 started mobile.event unit tests 2010-11-29 23:41:29 -08:00