<commit_before>describe('Ionic Header Bar', function() {
  var el, rootScope, compile;

  beforeEach(module('ionic'));

  beforeEach(inject(function($compile, $rootScope) {
    compile = $compile;
    rootScope = $rootScope;
  }));

  it('Should not add title-left or title-right classes when align-title=center', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="center"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(10);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-left')).not.toEqual(true);
      expect(title.hasClass('title-right')).not.toEqual(true);
    });
  });

  it('Should add title-left class when align-title=left', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="left"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(10);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-left')).toEqual(true);
    });
  });

  it('Should add title-right class when align-title=right', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="right"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(10);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-right')).toEqual(true);
    });
  });

});<commit_msg>fine travis, let's try waiting longer<commit_after>describe('Ionic Header Bar', function() {
  var el, rootScope, compile;

  beforeEach(module('ionic'));

  beforeEach(inject(function($compile, $rootScope) {
    compile = $compile;
    rootScope = $rootScope;
  }));

  it('Should not add title-left or title-right classes when align-title=center', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="center"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(500);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-left')).not.toEqual(true);
      expect(title.hasClass('title-right')).not.toEqual(true);
    });
  });

  it('Should add title-left class when align-title=left', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="left"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(500);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-left')).toEqual(true);
    });
  });

  it('Should add title-right class when align-title=right', function() {
    runs(function(){
      el = compile('<ion-header-bar align-title="right"></ion-header-bar>')(rootScope);
    });

    //wait for headerBar View to align() the title
    waits(500);

    runs(function(){
      var headerView = el.isolateScope().headerBarView;
      var title = angular.element(headerView.el.querySelector('.title'));
      expect(title.hasClass('title-right')).toEqual(true);
    });
  });

});
{'fraction_non_alphanumeric': 0.17386458623572026, 'fraction_numerical': 0.004179437169127891, 'mean_word_length': 3.6623376623376624, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5822608', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1080, 'n_words': 211}