<commit_before>var $slider;
$(function() {
  var appendSlider = function() {
    var html = _.template($('#slides-template').html());
    $('#qunit-fixture').html(html);
  };
  appendSlider();
  $slider = $('#slides').superslides();

  test('It initializes', function() {
    ok($slider.data('superslides'));
  });

  module('API');
  test('.size()', function() {
    size = $slider.superslides('size');
    equal(size, 1, 'should be 1');
  });
<commit_msg>Add tests for play, stop<commit_after>var $slider;
$(function() {
  var appendSlider = function() {
    var html = _.template($('#slides-template').html());
    $('#qunit-fixture').html(html);
  };
  appendSlider();
  $slider = $('#slides').superslides({
    play: true
  });

  test('It initializes', function() {
    ok($slider.data('superslides'));
  });

  module('API');
  test('.size()', function() {
    size = $slider.superslides('size');
    equal(size, 1, 'should be 1');
  });

  test('.play()', function() {
    $slider.superslides('play');
    ok($slider.data('superslides').play_id);
  });

  test('.stop()', function() {
    $slider.superslides('stop');
    ok(!$slider.data('superslides').play_id);
  });
{'fraction_non_alphanumeric': 0.24044180118946473, 'fraction_numerical': 0.0033984706881903144, 'mean_word_length': 4.055793991416309, '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': '3174043', 'n_tokens_mistral': 410, 'n_tokens_neox': 405, 'n_words': 68}