mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(tabs): Expand striped android style tab functionality. Closes 1694
This commit is contained in:
@@ -97,7 +97,7 @@ describe('bar directives', function() {
|
||||
this.align = jasmine.createSpy('align');
|
||||
};
|
||||
inject(function($compile, $rootScope) {
|
||||
el = angular.element('<'+data.tag+' '+(attrs||'')+'>');
|
||||
el = angular.element('<'+data.tag+' '+(attrs||'')+'></'+data.tag+'><div class="tabs-top"></div>');
|
||||
el = $compile(el)($rootScope.$new());
|
||||
$rootScope.$apply();
|
||||
});
|
||||
@@ -159,6 +159,10 @@ describe('bar directives', function() {
|
||||
scope.$apply('$hasTabs = false');
|
||||
expect(el.hasClass('has-tabs')).toBe(false);
|
||||
});
|
||||
it('.has-tabs-top', function() {
|
||||
var el = setup();
|
||||
expect(el.hasClass('has-tabs-top')).toBe(true);
|
||||
});
|
||||
}
|
||||
|
||||
it('should compile to ' + data.className, function() {
|
||||
|
||||
Reference in New Issue
Block a user