mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
`content` directive stores scroll in view page history. The history is passed down through $viewContentLoaded event, which is broadcasted by navView directive when it loads a page.
22 lines
493 B
JavaScript
22 lines
493 B
JavaScript
describe('Ionic nav-view', function() {
|
|
beforeEach(module('ionic.ui.viewState'));
|
|
|
|
var compile, scope;
|
|
beforeEach(inject(function($compile, $rootScope) {
|
|
compile = $compile;
|
|
scope = $rootScope.$new();
|
|
}));
|
|
|
|
it('should publish a controller', function() {
|
|
var view = angular.element('<nav-view></nav-view>');
|
|
compile(view)(scope);
|
|
scope.$apply();
|
|
|
|
expect(view.controller('navView')).toBeTruthy();
|
|
});
|
|
|
|
/*
|
|
* TODO adapt the tests from uiRouter
|
|
*/
|
|
});
|