<commit_before>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('paper-progress-linear', 'Integration | Component | paper progress linear', {
  integration: true
});

test('should auto-set the md-mode to "indeterminate" if not specified', function(assert) {
  this.render(hbs`{{paper-progress-linear}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode').trim(), 'indeterminate');
});

test('should auto-set the md-mode to "determinate" if a value is specified', function(assert) {
  this.render(hbs`{{paper-progress-linear value=12}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode').trim(), 'determinate');
});

test('should auto-set the md-mode to "buffer" if a value and bufferValue is specified', function(assert) {
  this.render(hbs`{{paper-progress-linear  value=50  buffer-value=100}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode'), 'buffer');
});

test('should auto-set the md-mode to "buffer" if a value and bufferValue is specified', function(assert) {
  this.render(hbs`{{paper-progress-linear  value=50  buffer-value=100}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode'), 'buffer');
});

test('it sets transform based on value', function(assert) {
  this.render(hbs`{{paper-progress-linear value=50}}`);

  var bar2 = this.$('.md-bar2')[0];
  var bar2style = bar2.style['transform']  || bar2.style['-webkit-transform'];

  assert.equal(bar2style, 'translateX(-25%) scale(0.5, 1)', 'Transition set correctly');

});

test('it sets transform based on buffer value', function(assert) {
  this.render(hbs`{{paper-progress-linear value=50 buffer-value=75}}`);

  var bar1 = this.$('.md-bar1')[0];
  var bar1style = bar1.style['transform']  || bar1.style['-webkit-transform'];

  assert.equal(bar1style, 'translateX(-12.5%) scale(0.75, 1)', 'Buffer bar transition set correctly');

});

test('it should not set transition in query mode', function(assert) {
  this.render(hbs`{{paper-progress-linear value=80 mode="query"}}`);
<commit_msg>Remove duplicated test.<commit_after>import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('paper-progress-linear', 'Integration | Component | paper progress linear', {
  integration: true
});

test('should auto-set the md-mode to "indeterminate" if not specified', function(assert) {
  this.render(hbs`{{paper-progress-linear}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode').trim(), 'indeterminate');
});

test('should auto-set the md-mode to "determinate" if a value is specified', function(assert) {
  this.render(hbs`{{paper-progress-linear value=12}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode').trim(), 'determinate');
});

test('should auto-set the md-mode to "buffer" if a value and bufferValue is specified', function(assert) {
  this.render(hbs`{{paper-progress-linear  value=50  buffer-value=100}}`);
  assert.equal(this.$('md-progress-linear').attr('md-mode'), 'buffer');
});

test('it sets transform based on value', function(assert) {
  this.render(hbs`{{paper-progress-linear value=50}}`);

  var bar2 = this.$('.md-bar2')[0];
  var bar2style = bar2.style['transform']  || bar2.style['-webkit-transform'];

  assert.equal(bar2style, 'translateX(-25%) scale(0.5, 1)', 'Transition set correctly');

});

test('it sets transform based on buffer value', function(assert) {
  this.render(hbs`{{paper-progress-linear value=50 buffer-value=75}}`);

  var bar1 = this.$('.md-bar1')[0];
  var bar1style = bar1.style['transform']  || bar1.style['-webkit-transform'];

  assert.equal(bar1style, 'translateX(-12.5%) scale(0.75, 1)', 'Buffer bar transition set correctly');

});

test('it should not set transition in query mode', function(assert) {
  this.render(hbs`{{paper-progress-linear value=80 mode="query"}}`);

{'fraction_non_alphanumeric': 0.1907573812580231, 'fraction_numerical': 0.02233632862644416, 'mean_word_length': 5.648464163822526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4262065', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1250, 'n_words': 275}