Browse files

Event: Fixed loading and reloading of touch support. Fixed #4879 - Sw…

…ipe Event Unit tests not executing correctly.
  • Loading branch information...
1 parent 78f114a commit 4f4e3b5eafab76a14233fb1cc88dc50f797e90af Brian Edgerton committed Aug 21, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 tests/unit/event/event_core.js
  2. +1 −0 tests/unit/event/index.html
View
1 tests/unit/event/event_core.js
@@ -132,6 +132,7 @@
var forceTouchSupport = function(){
document.ontouchend = function() {};
+ $.testHelper.reloadLib( "jquery.mobile.support.touch.js" );
$.each( components, function( index, value ) { $.testHelper.reloadLib( value ); });
//mock originalEvent information
View
1 tests/unit/event/index.html
@@ -13,6 +13,7 @@
</script>
<script src="../../../js/jquery.mobile.define.js"></script>
+ <script src="../../../js/jquery.mobile.support.touch.js"></script>
<script src="../../../js/jquery.mobile.events.js"></script>
<script src="../../../js/events/touch.js"></script>
<script src="../../../js/events/throttledresize.js"></script>

0 comments on commit 4f4e3b5

Please sign in to comment.