feat(tabs): Expand striped android style tab functionality. Closes 1694

This commit is contained in:
Perry Govier
2014-07-30 15:52:53 -05:00
parent 848c78d10d
commit ddda809b57
8 changed files with 364 additions and 46 deletions

View File

@@ -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() {