Jörn Zaefferer
23a24f6106
Update to latest QUnit. Fix event tests that were calling both asyncTest
2011-10-04 17:34:33 -04:00
Jörn Zaefferer
0ed1460279
Add swarminject.js to prepare for TestSwarm integration
2011-10-04 15:02:17 -04:00
John Bender
5346a91595
added event test to make sure the which was being defined on triggered events
2011-09-15 10:36:12 -07:00
Kin Blas
abb812cc01
Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
...
jquery.mobile.vmouse.js:
- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.
- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.
- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the original mouse event.
jquery.mobile.event.js
- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.
- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.
- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
John Bender
ad7e5bc8d1
added comment for the touches event proto addition
2011-09-07 10:09:00 -04:00
John Bender
3dfcf5fd77
fixed event tests to trigger on a dom element
2011-09-07 10:09:00 -04:00
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
scottjehl
8ba4c27300
Ya'll can scale your pages now. Fixes #1645 . Note: we originally disabled user zooming to work around a bug in iOS that automatically zooms the page beyond the constraints of the viewport on orientation change. We are not working around this bug at all now, but you are free to include any meta tag you'd like, or better yet, consider this polyfill: http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
2011-05-17 17:28:19 -04:00
John Bender
31604bb75a
removed uncecessary clone for event names array to fix the tests
2011-04-27 22:04:00 -07:00
scottjehl
d97a964884
been meaning to do this for a while.
2011-04-14 16:04:47 -04: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
scottjehl
0d9627d54e
Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags.
2011-03-14 00:20:23 -04: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
c27122040a
removed page div from event index html
2010-11-30 19:48:38 -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