orientation change check requires stubbing onorientationchange

This commit is contained in:
John Bender 2011-10-07 13:32:34 -07:00
parent c2c7af8876
commit 92baba02d4

View file

@ -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);