This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* TODO: The native browser on Android 4.0.X ("Ice Cream Sandwich") suffers from an issue where the popup overlay appears to be z-indexed above the popup itself when certain other styles exist on the same page -- namely, any element set to `position: fixed` and certain types of input. These issues are reminiscent of previously uncovered bugs in older versions of Android's native browser: https://github.com/scottjehl/Device-Bugs/issues/3
This fix closes the following bugs ( I use "closes" with reluctance, and stress that this issue should be revisited as soon as possible ):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok(collapsibles.eq(0).find(".ui-collapsible-heading-toggle").hasClass("ui-btn-a"),"Heading of first collapsible should have class ui-btn-a");
ok(!collapsibles.eq(0).find(".ui-collapsible-content").is(".ui-body-a,.ui-body-b,.ui-body-c"),"Content of first collapsible should NOT have class ui-body-[a,b,c]");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok(dialog.find(":jqmData(role=header)").hasClass("ui-bar-inherit"),"Expected header to inherit from dialog");
ok(dialog.find(":jqmData(role=content)").hasClass("ui-body-"+$.mobile.page.prototype.options.contentTheme),"Expect content to inherit from $.mobile.page.prototype.options.contentTheme");
ok(dialog.find(":jqmData(role=content)").hasClass("ui-body-"+$.ui.page.prototype.options.contentTheme),"Expect content to inherit from $.ui.page.prototype.options.contentTheme");
ok(dialog.find(":jqmData(role=footer)").hasClass("ui-bar-inherit"),"Expected footer to inherit from dialog");
start();
@@ -136,13 +136,13 @@
asyncTest("dialog element with data-theme",function(){
ok(dialog.find(":jqmData(role=header)").hasClass("ui-bar-inherit"),"Expected header to inherit from dialog");
ok(dialog.find(":jqmData(role=content)").hasClass("ui-body-"+$.mobile.page.prototype.options.contentTheme),"Expect content to inherit from $.mobile.page.prototype.options.contentTheme");
ok(dialog.find(":jqmData(role=content)").hasClass("ui-body-"+$.ui.page.prototype.options.contentTheme),"Expect content to inherit from $.ui.page.prototype.options.contentTheme");
ok(dialog.find(":jqmData(role=footer)").hasClass("ui-bar-inherit"),"Expected footer to inherit from dialog");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepEqual(result.pagechange.timedOut,false,"pagechange event did arrive");
deepEqual($.mobile.activePage.attr("id"),"start-page","Back to start page");
deepEqual($.ui.activePage.attr("id"),"start-page","Back to start page");
start();
}
]);
@@ -176,7 +176,7 @@
asyncTest("Popup interacts correctly with hashchange",function(){
varbaseUrl,activeIndex,$popup=$("#test-popup");
if(!$popup.data("mobile-popup").options.history){
if(!$popup.data("ui-popup").options.history){
expect(1);
ok(true,"hash change disabled");
start();
@@ -188,7 +188,7 @@
$.testHelper.detailedEventCascade([
function(){
baseUrl=decodeURIComponent(location.href);
activeIndex=$.mobile.urlHistory.activeIndex;
activeIndex=$.ui.urlHistory.activeIndex;
$popup.popup("open");
},
@@ -199,8 +199,8 @@
function(result){
ok(!result.hashchange.timedOut,"Opening a popup from a non-dialogHashKey location causes a hashchange event");
equal(decodeURIComponent(location.href),baseUrl+((baseUrl.indexOf("#")>-1) ? "" : "#")+$.mobile.dialogHashKey,"location.href has been updated correctly");
ok($.mobile.urlHistory.activeIndex===activeIndex+1,"$.mobile.urlHistory has been advanced correctly");
equal(decodeURIComponent(location.href),baseUrl+((baseUrl.indexOf("#")>-1) ? "" : "#")+$.ui.dialogHashKey,"location.href has been updated correctly");
ok($.ui.urlHistory.activeIndex===activeIndex+1,"$.ui.urlHistory has been advanced correctly");
$("#test-popup").popup("close");
},
@@ -210,7 +210,7 @@
function(result){
ok(decodeURIComponent(location.href)===baseUrl,"location.href has been restored after the popup");
ok($.mobile.urlHistory.activeIndex===activeIndex,"$.mobile.urlHistory has been restored correctly");
ok($.ui.urlHistory.activeIndex===activeIndex,"$.ui.urlHistory has been restored correctly");
},
{timeout: {length: 500}},
@@ -221,12 +221,12 @@
// This test assumes that the popup opens into a state that does not include dialogHashKey.
// This should be the case if the previous test has cleaned up correctly.
asyncTest("Opening another page from the popup leaves no trace of the popup in history",function(){
ok(!result.hashchange.timedOut,"hashchange did occur");
ok(decodeURIComponent(location.href)===initialBase+hRef.filename,"New location is exactly the previous location (up to and including path) and the new filename");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepEqual($("#destroyTest").children().length,0,"After adding, enhancing, opening, destroying, and removing the dialog-sized select menu, the page is empty");
ok(domEqual(unenhancedSelect,unenhancedSelectClone),"DOM for select after enhancement/destruction is equal to DOM for unenhanced select");
deepEqual($("#"+id+"-dialog").length,0,"After adding, enhancing, opening, destroying, and removing the dialog-sized select menu, no dialog page is left behind");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok($.mobile.zoom.enabled===false,"zoom is disabled on vmousedown");
ok($.ui.zoom.enabled===false,"zoom is disabled on vmousedown");
})
.one("mouseup.test",function(){
setTimeout(function(){// This empty setTimeout is to match the work-around for the issue reported in https://github.com/jquery/jquery-mobile/issues/5041
ok($.mobile.zoom.enabled===true,"zoom is enabled on mouseup");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters