Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switch live to on

  • Loading branch information...
commit 3571bedf83b97e6cf0ceb16ac3e36ee9e6dfcec8 1 parent e497aa2
@johnbender johnbender authored
View
26 tests/unit/page/page_core.js
@@ -22,7 +22,7 @@
etargets.push( e.target );
});
- $( "#c" ).live( "pagebeforecreate", function( e ){
+ $( "body" ).on("pagebeforecreate", "#c", function( e ){
cEvents.push( e.type );
cTargets.push( e.target );
return false;
@@ -116,16 +116,16 @@
$.mobile.ignoreContentEnabled = false;
});
-
-
+
+
asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
-
+
expect( 1 );
-
+
var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
$.mobile.pageContainer.removeClass( pageTheme );
-
+
$.mobile.activePage
.bind( "pagebeforeshow", function(){
ok( $.mobile.pageContainer.hasClass( pageTheme ), "Page container has the same theme as the page on pagebeforeshow" );
@@ -134,15 +134,15 @@
.trigger( "pagebeforeshow" );
} );
-
+
asyncTest( "page container is updated to page theme at pagebeforeshow", function(){
-
+
expect( 1 );
-
+
var pageTheme = "ui-overlay-" + $.mobile.activePage.page( "option", "theme" );
$.mobile.pageContainer.addClass( pageTheme );
-
+
$.mobile.activePage
.bind( "pagebeforehide", function(){
ok( !$.mobile.pageContainer.hasClass( pageTheme ), "Page container does not have the same theme as the page on pagebeforeshow" );
@@ -151,7 +151,7 @@
.trigger( "pagebeforehide" );
} );
-
-
-
+
+
+
})(jQuery);
View
6 tests/unit/widget/index.html
@@ -32,11 +32,7 @@
</head>
<body>
-<h1 id="qunit-header">jQuery Mobile Widget Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
+<div id="qunit"></div>
<div id="qunit-fixture">
View
2  tests/unit/widget/widget_init.js
@@ -6,7 +6,7 @@
module( 'jquery.mobile.widget.js' );
- $( "#foo" ).live( 'pageinit', function(){
+ $( document ).on( 'pageinit', "#foo", function(){
// ordering sensitive here, the value has to be set after the call
// so that if the widget factory says that its not yet initialized,
// which is an exception, the value won't be set
Please sign in to comment.
Something went wrong with that request. Please try again.