mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(menuClose): add resetHistory() to menuClose
This commit is contained in:
@@ -90,36 +90,6 @@ describe('Ionic View Switcher', function() {
|
||||
expect(d.showBack).toEqual(false);
|
||||
}));
|
||||
|
||||
it('should override showBack from view data w/ $ionicViewSwitcher.nextShowBack() setting', inject(function($ionicViewSwitcher) {
|
||||
$ionicViewSwitcher.nextShowBack(true);
|
||||
var d = $ionicViewSwitcher.getTransitionData(null, null, null, null, true);
|
||||
expect(d.showBack).toEqual(true);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(false);
|
||||
var d = $ionicViewSwitcher.getTransitionData(null, null, null, null, true);
|
||||
expect(d.showBack).toEqual(false);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(true);
|
||||
d = $ionicViewSwitcher.getTransitionData(null, null, null, null, false);
|
||||
expect(d.showBack).toEqual(true);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(false);
|
||||
d = $ionicViewSwitcher.getTransitionData(null, null, null, null, false);
|
||||
expect(d.showBack).toEqual(false);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(true);
|
||||
d = $ionicViewSwitcher.getTransitionData(null, null, null, null, null);
|
||||
expect(d.showBack).toEqual(true);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(false);
|
||||
d = $ionicViewSwitcher.getTransitionData(null, null, null, null, null);
|
||||
expect(d.showBack).toEqual(false);
|
||||
|
||||
$ionicViewSwitcher.nextShowBack(null);
|
||||
d = $ionicViewSwitcher.getTransitionData(null, null, null, null, true);
|
||||
expect(d.showBack).toEqual(true);
|
||||
}));
|
||||
|
||||
it('should get an empty entering element with an empty navViewElement', inject(function($ionicViewSwitcher) {
|
||||
var navViewElement = angular.element('<div class="view-container">');
|
||||
var switcher = $ionicViewSwitcher.create(null, navViewElement, {}, {});
|
||||
|
||||
Reference in New Issue
Block a user