scottjehl
e35327c894
rewrote the transitions test suite and handlers to account for our new sequence. The main difference is most tests are async now, and use two functions: onFromComplete and onToComplete to test conditions before each page's animationComplete handler finishes (while animation classes are still present, for instance). onToComplete must call start() so that pages stay in proper sequences, as fromComplete may not always run depending on pages in play, and it's only halfway done in the trans.Needs more tests now!
2012-01-10 17:30:28 +07:00
scottjehl
679a46dbf0
even when stubbing out the function for testing, this $.fn needs to return this (it's relied upon for chaining in nav)
2012-01-10 13:23:55 +07:00
John Bender
cf611bc1c7
conceding defeat on determining the load order issue that's causing the test failure
2012-01-06 15:27:21 -08:00
John Bender
f60dd96178
remove duplicate test run
2012-01-06 15:27:21 -08:00
John Bender
12f112d6d4
check to make sure cached test page appears
2012-01-06 15:27:21 -08:00
jblas@adobe.com
f0cc30719d
Corrected the title for the functional test.
2012-01-06 10:23:54 -08:00
jblas@adobe.com
1a5224047b
Fix for issue #2933 - get_orientation() and hence getScreenHeight() doesn't work on some devices
...
It seems that some device/browser vendors use window.orientation values 0 and 180 to denote the "default" orientation. For iOS devices, and most other smart-phones tested, the default orientation is always "portrait", but in some Android and RIM based tablets, the default orientation is "landscape".
- Modified the orientationchange plugin so that it injects a landscape orientation media query into the document to figure out what the initial orientation is, it then makes adjustments to a portrait_map if necessary, so that we can properly decode the window.orientation value whenever get_orientation() is called.
2012-01-06 10:19:04 -08:00
John Bender
3cea545f73
enforce test order ... dying a little inside
2012-01-05 14:23:17 -08:00
John Bender
3c2bfaca8a
remove define stub, it's now stubbed through including jquery.mobile.define.js in js/index.php
2012-01-04 14:26:03 -08:00
John Bender
ea01f9f960
update functional tests to use requirejs
2012-01-04 14:04:18 -08:00
John Bender
b47d9ba24e
fix async loading select test issue where keepnative isn't defined in time for the leading test
2012-01-04 13:13:24 -08:00
John Bender
95073892f0
Merge branch 'amd'
2012-01-04 12:24:33 -08:00
John Bender
223ad8daab
move to reloadModule as it returns a deferred
2012-01-04 11:26:36 -08:00
John Bender
bda2834acc
make sure the slider core runs before init to set keepNative properly
2012-01-04 11:23:21 -08:00
John Bender
0a48b9168f
update select cached tests to use async
2012-01-04 11:10:04 -08:00
John Bender
dc3e42ec86
update listview pushstate test to use async
2012-01-04 11:08:21 -08:00
John Bender
912a7e852f
init test order and other small fixes
2012-01-04 11:05:52 -08:00
John Bender
739452ded0
fixed listview tests async loading
2012-01-04 09:45:36 -08:00
Mat Marquis
573fcf8668
Updating select menu tests to match recent dialog markup changes.
2012-01-04 12:35:13 -05:00
John Bender
16391e4af9
stub define in event tests
2012-01-04 09:10:52 -08:00
John Bender
81d1f6f282
stubbed define in nav tests
2012-01-04 08:56:35 -08:00
John Bender
9c7e1b755f
fix url checks to use search where appropriate
2012-01-04 08:02:31 -08:00
Mat Marquis
9b3aefae84
Moved .ui-dialog to element wrapping dialog header/content/footer, switched overlay non-theming class to .ui-dialog-page.
2012-01-03 18:16:29 -05:00
John Bender
d82b6aacfc
update nav base tests to use new push state helper
2012-01-03 14:13:56 -08:00
Ghislain Seguin
c5415307ba
Fixed checkboxradio tests
2011-12-28 14:08:18 -08:00
Ghislain Seguin
83de694e9f
Reverted unwanted changes
2011-12-24 00:51:39 -08:00
Ghislain Seguin
0bd10de3e8
Added require.js 1.0.3 as a submodule
2011-12-24 00:48:08 -08:00
Ghislain Seguin
42190caef2
AMDized
2011-12-22 17:32:01 -08:00
Ghislain Seguin
d97118d891
Added $.testHelper.deferredSequence
...
Renamed reloadLib to reloadModule
Resuscitated $.testHelper.reloadLib
2011-12-22 17:31:11 -08:00
Ghislain Seguin
1bbd67bc98
Remove .js suffix from libName
2011-12-22 10:44:08 -08:00
Ghislain Seguin
db5a919928
Use new testHelper.reloadLib
2011-12-22 09:55:07 -08:00
Ghislain Seguin
b249dbe519
Changed reloadLib to use requirejs' context. That process being async it now returns a $.Deferred
2011-12-22 09:54:34 -08:00
Ghislain Seguin
a3392bc0ff
Remove .js suffix from libName
2011-12-22 09:53:26 -08:00
Ghislain Seguin
22c6409f63
AMDized
2011-12-22 09:49:33 -08:00
Ghislain Seguin
c58022c8ff
AMDized
2011-12-21 16:41:43 -08:00
Ghislain Seguin
67df0cdf10
Minimized imported resources
...
Added css links
2011-12-21 14:41:48 -08:00
Ghislain Seguin
dba47fee54
Fixed test name
2011-12-21 14:41:19 -08:00
Ghislain Seguin
5c4c62e5e5
AMDized
2011-12-21 14:39:45 -08:00
Ghislain Seguin
2f43368fda
Trailing comma
2011-12-21 14:37:43 -08:00
Ghislain Seguin
4bb45a9b70
Minimized imported resources
2011-12-21 14:35:14 -08:00
Ghislain Seguin
ee91030bb3
AMDized
2011-12-21 14:29:09 -08:00
Ghislain Seguin
69d69092d5
AMDized
2011-12-21 13:59:48 -08:00
Ghislain Seguin
2c38391171
AMDized
2011-12-21 13:43:48 -08:00
Ghislain Seguin
ba6c4dd8c8
AMDized
2011-12-21 13:36:59 -08:00
Ghislain Seguin
185ea02809
AMDized
2011-12-21 11:54:12 -08:00
Ghislain Seguin
65c1d48e47
Use .js convention provided by requirejs
2011-12-21 11:50:46 -08:00
Ghislain Seguin
4e60cd57f2
AMDized
2011-12-21 11:46:11 -08:00
Ghislain Seguin
2a2ebfa55a
Make sure controlGroup is loaded after checkboxradio (via order plugin)
2011-12-21 11:46:11 -08:00
John Bender
5158cbf4ce
remove base url juggling in favore of .js convention provided by requirejs
2011-12-21 11:30:46 -08:00
John Bender
dc203029a3
update dialog tests to use amd
2011-12-21 08:13:24 -08:00
John Bender
94b6e9c8da
upgrade degrade inputs tests to use amd, whitespace
2011-12-21 08:03:15 -08:00
John Bender
981a210d78
update core tests to use amd, fix misleading test
2011-12-21 07:58:11 -08:00
John Bender
0d7a3b9014
update control group tests to use amd
2011-12-20 23:06:40 -08:00
John Bender
38bd74cc95
remove unecessary collapsible test dep
2011-12-20 23:06:15 -08:00
John Bender
790e0439d1
update collapsible tests to use amd
2011-12-20 22:53:32 -08:00
John Bender
e778924de3
update checkboxradio tests to use amd
2011-12-20 22:49:16 -08:00
John Bender
88c22906a4
update buttonMarkup tests to amd
2011-12-20 22:43:25 -08:00
John Bender
1e4be460c2
update button core tests to amd
2011-12-20 22:24:03 -08:00
John Bender
37fdf3a7ca
added note to test helper
2011-12-20 17:08:02 -08:00
John Bender
af50e19b1f
page test moved to async load, fix for bad assumption in return false test
2011-12-20 17:02:43 -08:00
John Bender
810edd8472
more flexible async loading helper, converted select test
2011-12-20 17:01:16 -08:00
John Bender
e466f6844c
whitespace in page core tests
2011-12-20 16:33:38 -08:00
John Bender
b0c1acae4d
alter select index tests to use async load
2011-12-20 15:02:09 -08:00
John Bender
5469442ad3
async test library load helper
2011-12-20 15:01:28 -08:00
scottjehl
b70832981d
fixed up the failing unit test by ensuring the toolbars were shown before testing for transition classes.
2011-12-20 17:38:06 +07:00
scottjehl
68e7bc562d
changed any tests that used :visible or :hidden, because the toolbars are now hidden with absolute positioning, and are aways visible. Instead, checked for presence of hide class.
2011-12-20 17:38:06 +07:00
scottjehl
05d01e70fe
Created 33 unit tests for the base features and methods of the fixedtoolbar plugin. 5 tests are currently failing due to a change in logic in the show/hide methods. Those tests just need adjusting, as the feature itself is currently working.
2011-12-20 17:38:05 +07:00
John Bender
c716ab707a
take closestParentPage off of $.fn
2011-12-09 14:39:57 -08:00
John Bender
5071221291
respect page loading times and comment on assumption in degradeInputs test
2011-12-09 12:52:53 -08:00
John Bender
def90bf230
whitespace in degradeInputs tests
2011-12-09 12:51:38 -08:00
John Bender
a80e4c3b4c
test that closestPageData works as expected
2011-12-09 12:31:49 -08:00
John Bender
2b49d382d8
Merge branch 'master' of https://github.com/eromba/jquery-mobile into eromba-master
2011-12-09 11:50:15 -08:00
John Bender
7a267e2c7d
test that the link title value is the selected option text
2011-12-06 16:09:52 -08:00
John Bender
5f6ce0d651
test that an empty string val results in the min attr value on refresh
2011-12-05 15:38:25 -08:00
John Bender
b4f945f73b
test steps in refresh
2011-11-23 13:30:40 -08:00
John Bender
3b78250b17
comment linebreak
2011-11-23 13:30:40 -08:00
John Bender
3b83d4e032
force round numbers to avoid testing step rounding in keypress tests
2011-11-23 13:30:40 -08:00
John Bender
f49fe2082b
record enhancement time and pageprocessing, both of which ignore the network load time of the jqm js
2011-11-22 13:16:18 -08:00
John Bender
7c1cf95909
account for optional 'U;' in iPad ua. The fun continues
2011-11-22 11:06:08 -08:00
John Bender
7d7c913b64
fix for float value appearing earlier in ua string
...
surprised this didn't pop up earlier on android. I ❤️ ua strings.
2011-11-22 10:52:30 -08:00
Ethan Romba
a8c04855b4
Issue #3081 : Range inputs on dialogs don't degrade
...
The degradeInputs plugin bails early for pages that do not have
data-role="page". This behavior prevented range inputs (for slider widgets)
from degrading properly when used in dialogs.
Updated degradeInputs unit tests to check dialogs, too.
2011-11-21 16:47:14 -06:00
John Bender
a9d9ca3dac
test navbar button click functionality
2011-11-21 13:09:00 -08:00
jblas@adobe.com
afb7bab90f
Test case for issues:
...
3046 - closestEnabledButton() conflicts with OpenLayers
3054 - RC3 - button conflicts with svg element, throws error: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'split'
2011-11-15 10:22:36 -08:00
John Bender
c0880137b9
account for droid x ua string
2011-11-14 14:11:47 -08:00
John Bender
cf521ea062
missing escape
2011-11-14 11:27:26 -08:00
John Bender
bfb42ff3f3
account for lack of 'mobile' in android ua strings
2011-11-14 11:25:22 -08:00
John Bender
ba8030e4f3
account for minor version only android version strings
2011-11-14 11:11:34 -08:00
John Bender
c8d06f5d86
union the non android entries with android entries where we trim the version number down to the minor version
2011-11-14 11:05:50 -08:00
John Bender
54e9cc6466
test list view parent theme inheritance
2011-11-14 10:13:07 -08:00
John Bender
3e93c2969a
move the agent_version forward in the table caption and correct data attribute name
2011-11-14 09:43:34 -08:00
John Bender
db87885f60
fixed dom selection issue
2011-11-14 09:39:29 -08:00
John Bender
1675d44bff
simple time grouping to fix issues without aggregation
2011-11-14 09:39:29 -08:00
John Bender
d35b86fea0
test that the hidden element for input button submission is added many times
2011-11-11 12:08:24 -08:00
John Bender
f501712617
Merge pull request #2919 from redaemn/flip-switch-improvements
...
Corrected some tests for the slider widget
2011-11-10 15:10:38 -08:00
John Bender
458ba65681
switched to bar chart per @toddparker
2011-11-10 11:42:28 -08:00
John Bender
eedb9ce8ac
todo added to the chart display
2011-11-10 11:24:54 -08:00
John Bender
1572867147
decode get params when refining stats data
2011-11-10 10:55:14 -08:00
John Bender
4da7e378c2
create new tables based on agent version
2011-11-10 10:52:04 -08:00
John Bender
be1852827c
close element creation tags
2011-11-10 10:29:15 -08:00
John Bender
cdfe8d157a
remove id dependency on the data point
2011-11-10 10:18:28 -08:00
Ghislain Seguin
b4df2ecfb2
Added some more negative testing for theming
2011-11-10 10:10:08 -08:00
John Bender
477f85c500
blackberry ua support
2011-11-10 10:01:39 -08:00
John Bender
9a13fc0b35
added iPhone and iPad UA strings
2011-11-10 09:23:49 -08:00
John Bender
c1a6ea10e5
formatting in php for sanity
2011-11-10 09:04:18 -08:00
John Bender
5734ca62c6
add ability to refine data display to a user agent or data point
2011-11-10 09:04:18 -08:00
John Bender
f74d117aec
simple user agent tracking and collection added to perf javascript
2011-11-10 09:04:18 -08:00
John Bender
50204053bc
test for page load text area autogrow
2011-11-09 11:35:22 -08:00
Ghislain Seguin
99783f4803
Merge pull request #2997 from eddiemonge/docs
...
Unify css and js references for doc changes
2011-11-09 10:56:44 -08:00
John Bender
fb2544b8a1
add some maring to account for silly large number strings on our perf charts
2011-11-09 10:10:57 -08:00
Eddie Monge
88884db175
Unify css and js references for doc changes
2011-11-08 18:39:49 -08:00
John Bender
949dd4c6c8
test that title is restored on link transition to first page
2011-11-08 15:41:37 -08:00
jblas@adobe.com
d6f2f438b6
Fixing the busted unit/core tests.
...
- Clear the namespace property name cache if the namespace is changed.
2011-11-08 13:05:51 -08:00
John Bender
1d5f2af293
first pass at visualizing data collection
2011-11-07 16:56:19 -08:00
John Bender
9e255e6e75
add the pathname to the stats to differentiate tests. add grouping
2011-11-07 16:56:19 -08:00
John Bender
2ec65580cf
moved to pdo db interface to avoid uninstalled deps in prod
2011-11-07 13:19:32 -08:00
John Bender
6d85686c0c
Merge branch 'list-perf'
2011-11-07 11:06:39 -08:00
John Bender
b3fdbcbb78
account for child page events
2011-11-07 11:06:10 -08:00
John Bender
7a84306cc2
readd lists-ul html
2011-11-07 10:42:56 -08:00
John Bender
4e61db3450
move the list perf test to a different naming scheme
2011-11-07 10:41:24 -08:00
John Bender
412af6f16c
seperate stats recording from stat caculation, add timestamp
2011-11-07 10:39:24 -08:00
Ghislain Seguin
3da8e0d171
Added tests for dialog theming and overlayTheme
2011-11-04 22:34:58 -07:00
jblas@adobe.com
b7c88e4d08
Added unit test case for issue #2520 (No longer able to remove / expire pages reliably).
2011-11-04 11:03:50 -07:00
John Bender
b5d6322e03
simple performance recording for page loads
2011-11-02 16:49:36 -07:00
Gabriele Rabbiosi
0e14c98efe
Corrected some tests for the slider widget
2011-11-02 23:58:50 +01:00
John Bender
70571119b7
test that the text and val can update the parent button markup
2011-10-31 14:07:10 -07:00
John Bender
fef4b200a6
handle pixel values from calls to $.fn.css('left') in slider tests
2011-10-28 15:58:25 -07:00
Todd Parker
6264d95da2
Merge pull request #2812 from redaemn/flip-switch-improvements
...
Fix for issue #2756 - flip toggle slider animated snapping. Thanks redaemn!
2011-10-27 18:31:39 -07:00
Maurice Gottlieb
d59a9d8b15
Fix issue #2845 : remove xhtml endtag from css-link
2011-10-27 14:45:32 +02:00
jblas@adobe.com
b37bf0223c
Added unit tests for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page.
2011-10-25 17:07:31 -07:00
John Bender
6549b42ab5
test that clicks bound to labeled checkbox input are fired by label clicks
2011-10-25 10:55:13 -07:00
Gabriele Rabbiosi
ee05bb5576
Fixed issue #2631 - flip toggle switch animation improved
2011-10-23 14:30:10 +02:00
Gabriele Rabbiosi
396f8d019e
Issue #2756 - flip toggle switch value can be changed when the switch is disabled
2011-10-22 17:05:05 +02:00
Ghislain Seguin
55d89893a2
Merge pull request #2492 from hpbuniat/search-filter-bar-2416
...
Fix for #2416
2011-10-21 16:48:20 -07:00
John Bender
f3c5cd811e
tests to verify that items embedded in page sub elements are enhanced properly
2011-10-21 15:56:26 -07:00
jblas@adobe.com
83b5182181
Fixed relative path references added from previous checkin.
2011-10-21 10:28:41 -07:00
John Bender
1896235247
add linkBindingEnabled tests
2011-10-20 15:16:03 -07:00
John Bender
4bb744025e
whitespace in button markup
2011-10-20 12:48:10 -07:00
John Bender
76d8d3825a
cleaned up test to limit event binding bleed
2011-10-19 10:35:14 -07:00
John Bender
911ff69972
test for custom select dialog title update from dom
2011-10-18 09:39:25 -07:00
Eddie Monge
8bc5e42fb3
2700: Step 5 Update all doc references
2011-10-17 13:51:45 -07:00
Matthew Leon Grinshpun
8b713b26f3
add button tag
2011-10-15 15:13:21 -04:00
Matthew Leon Grinshpun
62459c7cca
fix for button iconshadow
2011-10-15 15:09:45 -04:00
Matthew Leon Grinshpun
b1c3de990b
git both tests to fail
2011-10-15 14:56:55 -04:00
Matthew Leon Grinshpun
79c7a225b3
failing button ui shadow tests
2011-10-15 14:49:10 -04:00
Gabriele Rabbiosi
862f58e90c
refactored degradeInputs tests
2011-10-14 01:02:37 +02:00
Gabriele Rabbiosi
9903376f35
degradeInputs now uses the recently introduced keepNativeSelector()
2011-10-14 00:50:29 +02:00
Gabriele Rabbiosi
7c34c5dc4b
Merge branch 'master' of git://github.com/jquery/jquery-mobile into Issue-#2654
2011-10-14 00:25:49 +02:00
Gabriele Rabbiosi
1559478aae
Issue #2654 - 'degradeInputs' plugin doesn't trigger on 'create' events; modified plugin and added tests
2011-10-13 22:21:47 +02:00
John Bender
49325216ed
second half of the test fix from yesterday that was required by the root page url default
2011-10-12 11:54:07 -07:00
John Bender
713c6a0342
fixed broken path tests
...
normally I wouldn't accept re-ordering of tests as a solution to any problem, but the issue here was multiple changepage events overlapping during our tests. generally we have browser state issues in our test suite and we need a general solution for them which will come post 1.0
2011-10-12 11:54:07 -07:00