Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Listview: Establish pagecontainer as part of test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Feb 14, 2015
1 parent 9798521 commit d784706
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/listview/listview_core.js
Expand Up @@ -4,14 +4,15 @@

// TODO split out into seperate test files
(function($){
var home = $.mobile.path.parseUrl( location.href ).pathname + location.search,
insetVal = $.mobile.listview.prototype.options.inset,
pageContainer = $( ":mobile-pagecontainer" );
var pageContainer,
home = $.mobile.path.parseUrl( location.href ).pathname + location.search,
insetVal = $.mobile.listview.prototype.options.inset;

$.mobile.defaultTransition = "none";

module( "Basic Linked list", {
setup: function(){
pageContainer = $( ":mobile-pagecontainer" );
$.mobile.navigate.history.stack = [];
$.mobile.navigate.history.activeIndex = 0;
$.testHelper.navReset( home );
Expand Down

0 comments on commit d784706

Please sign in to comment.