sh(function() {
          assert.equal(slider.ratio, 0.5);
          done();
        });
      });

      test('snaps', function(done) {
        slider.snaps = true;
        slider.step = 10;
        slider.max = 100;
        slider.value = 25;
        flush(function() {
          assert.equal(slider.value, 30);

          slider.value = 51.1;

          flush(function() {
            assert.equal(slider.value, 50);
            slider.snaps = false;
            slider.step = 1;
            done();
         