mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-24 08:04:43 +00:00
orientation change check requires stubbing onorientationchange
This commit is contained in:
parent
c2c7af8876
commit
92baba02d4
1 changed files with 3 additions and 2 deletions
|
|
@ -19,14 +19,15 @@ $.testHelper.excludeFileProtocol(function(){
|
|||
// TODO expose properties for less brittle tests
|
||||
$.extend(window, {
|
||||
WebKitTransitionEvent: true,
|
||||
orientation: true
|
||||
orientation: true,
|
||||
onorientationchange: true
|
||||
});
|
||||
|
||||
document.ontouchend = true;
|
||||
|
||||
window.history.pushState = function(){};
|
||||
window.history.replaceState = function(){};
|
||||
|
||||
|
||||
$.mobile.media = function(){ return true; };
|
||||
|
||||
$.testHelper.reloadLib(libName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue