<commit_before><!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">

  <title>skeleton-carousel test</title>

  <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
  <script src="../../web-component-tester/browser.js"></script>

  <link rel="import" href="../../iron-image/iron-image.html">
  <link rel="import" href="../skeleton-carousel.html">
</head>
<body>

<test-fixture id="basicCarousel">
  <template>
    <skeleton-carousel controls nav>
      <div>
        <iron-image data-src="http://source.unsplash.com/category/nature/400x400"
                    sizing="cover"
                    preload
        ></iron-image>
      </div>
      <div>
        <iron-image data-src="http://source.unsplash.com/category/food/400x400"
                    sizing="cover"
                    preload
        ></iron-image>
      </div>
    </skeleton-carousel>
  </template>
</test-fixture>
<script>
  suite('Basic behaviour', () => {
    let element;

    setup(() => {
      element = fixture('basicCarousel');
    });

    test('Total property should return all the childs', (done) => {
      expect(element.total).to.equal(2);
      done();
    });
  });
</script>
</body>
</html><commit_msg>Add test to check loop behaviour<commit_after><!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">

  <title>skeleton-carousel test</title>

  <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
  <script src="../../web-component-tester/browser.js"></script>

  <link rel="import" href="../../iron-image/iron-image.html">
  <link rel="import" href="../skeleton-carousel.html">
</head>
<body>

<test-fixture id="basicCarousel">
  <template>
    <skeleton-carousel controls nav>
      <div>
        <iron-image data-src="http://source.unsplash.com/category/nature/400x400"
                    sizing="cover"
                    preload
        ></iron-image>
      </div>
      <div>
        <iron-image data-src="http://source.unsplash.com/category/food/400x400"
                    sizing="cover"
                    preload
        ></iron-image>
      </div>
    </skeleton-carousel>
  </template>
</test-fixture>

<test-fixture id="loopCarousel">
    <template>
      <skeleton-carousel controls nav loop>
        <div>
          <iron-image data-src="http://source.unsplash.com/category/nature/400x400"
                      sizing="cover"
                      preload
          ></iron-image>
        </div>
        <div>
          <iron-image data-src="http://source.unsplash.com/category/food/400x400"
                      sizing="cover"
                      preload
          ></iron-image>
        </div>
      </skeleton-carousel>
    </template>
  </test-fixture>

<script>
  suite('Basic behaviour', () => {
    let element;

    setup(() => {
      element = fixture('basicCarousel');
    });

    test('Total property should return all the childs', (done) => {
      expect(element.total).to.equal(2);
      done();
    });
  });

  suite('Loop behaviour', () => {
    let element;

    setup(() => {
      element = fixture('loopCarousel');
    });

    test('If loop is set showNext & showPrev should be true', (done) => {
      expect(element.showNext).to.be.true;
      expect(element.showPrev).to.be.true;
      done();
    });
  });
</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.18073990398192602, 'fraction_numerical': 0.012425868398757414, 'mean_word_length': 2.2796296296296297, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 92, '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': '3930650', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1109, 'n_words': 190}