Permalink
Browse files

added some missing semicolons

  • Loading branch information...
1 parent 20810a0 commit 0798a6f6c9c2506e5b266c6e85c0f656602273c9 @hpbuniat committed Sep 24, 2011
View
@@ -374,7 +374,7 @@ $( document ).bind( "pagecreate create", function( event ) {
// Should be slideup
$this.find( slideUpSelector ).addClass( slideUpClass );
- })
+ });
}
});
@@ -728,7 +728,7 @@
// attribute and in need of enhancement.
if ( page.length === 0 && !path.isPath( dataUrl ) ) {
page = settings.pageContainer.children( "#" + dataUrl )
- .attr( "data-" + $.mobile.ns + "url", dataUrl )
+ .attr( "data-" + $.mobile.ns + "url", dataUrl );
}
// If we failed to find a page in the DOM, check the URL to see if it
View
@@ -10,7 +10,7 @@
test( "vertical controlgroup classes", function() {
var buttons = this.vcontrolgroup.find( ".ui-btn" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
@@ -36,7 +36,7 @@
this.vcontrolgroup.controlgroup();
var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
@@ -53,7 +53,7 @@
this.vcontrolgroup.controlgroup();
var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( buttons.first().hasClass( "ui-corner-top" ), "first visible button should have class 'ui-corner-top'" );
@@ -70,7 +70,7 @@
test( "horizontal controlgroup classes", function() {
var buttons = this.hcontrolgroup.find( ".ui-btn" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( !buttons.hasClass( "ui-btn-corner-all" ), "no button should have class 'ui-btn-corner-all'");
@@ -94,7 +94,7 @@
this.hcontrolgroup.controlgroup();
var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
@@ -109,7 +109,7 @@
this.hcontrolgroup.controlgroup();
var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ),
- middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),
+ middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1);}),
length = buttons.length;
ok( buttons.first().hasClass( "ui-corner-left" ), "first visible button should have class 'ui-corner-left'" );
View
46 tests/unit/init/init_core.js 100644 → 100755
@@ -201,7 +201,7 @@
start();
}, 500);
});
-
+
asyncTest( "page loading should contain custom loading message when set during runtime", function(){
$.mobile.loadingMessage = "bar";
$.mobile.showPageLoadingMsg();
@@ -212,57 +212,57 @@
}, 500);
});
-
+
// NOTE: the next two tests work on timeouts that assume a page will be created within 2 seconds
// it'd be great to get these using a more reliable callback or event
-
+
asyncTest( "page does auto-initialize at domready when autoinitialize option is true (default) ", function(){
-
- $( "<div />", { "data-nstest-role": "page", "id": "autoinit-on" } ).prependTo( "body" )
-
+
+ $( "<div />", { "data-nstest-role": "page", "id": "autoinit-on" } ).prependTo( "body" );
+
$(document).one("mobileinit", function(){
$.mobile.autoInitializePage = true;
});
-
+
location.hash = "";
-
+
reloadCoreNSandInit();
-
+
setTimeout(function(){
same( $( "#autoinit-on.ui-page" ).length, 1 );
-
+
start();
}, 2000);
});
-
-
+
+
asyncTest( "page does not initialize at domready when autoinitialize option is false ", function(){
$(document).one("mobileinit", function(){
$.mobile.autoInitializePage = false;
});
-
- $( "<div />", { "data-nstest-role": "page", "id": "autoinit-off" } ).prependTo( "body" )
-
+
+ $( "<div />", { "data-nstest-role": "page", "id": "autoinit-off" } ).prependTo( "body" );
+
location.hash = "";
-
-
+
+
reloadCoreNSandInit();
-
+
setTimeout(function(){
same( $( "#autoinit-off.ui-page" ).length, 0 );
-
+
$(document).bind("mobileinit", function(){
$.mobile.autoInitializePage = true;
});
reloadCoreNSandInit();
-
+
start();
}, 2000);
});
-
-
-
+
+
+
});
})(jQuery);
View
@@ -441,7 +441,7 @@
$li = $page.find( "li:visible" );
ok($li.first().hasClass( "ui-corner-top" ), $li.length+" li elements: First visible element should have class ui-corner-top");
ok($li.last().hasClass( "ui-corner-bottom" ), $li.length+" li elements: Last visible element should have class ui-corner-bottom");
- }
+ };
$.testHelper.pageSequence([
function() {
View
@@ -6,7 +6,7 @@
var onChangeCnt = 0;
window.onChangeCounter = function() {
onChangeCnt++;
- }
+ };
module('jquery.mobile.slider.js');
var keypressTest = function(opts){
@@ -99,7 +99,7 @@
slider.keyup();
same(slider.val(), "200");
});
-
+
test( "input type should degrade to number when slider is created", function(){
same($("#range-slider-up").attr( "type" ), "number");
});
@@ -160,7 +160,7 @@
ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-slider").length, "did not have enhancements applied" );
ok( $("#enhancetest").trigger("create").find(".ui-slider").length, "enhancements applied" );
});
-
+
test( "toggle switch should fire one change event when clicked", function(){
var control = $( "#slider-switch" ),
widget = control.data( "slider" ),

0 comments on commit 0798a6f

Please sign in to comment.