
          done();
        });
      });

      test('snap to the correct value on tapping', function(done) {
        var cursor = MockInteractions.topLeftOfNode(slider.$.sliderBar);
        cursor.x += slider.$.sliderBar.getBoundingClientRect().width * 0.9;

        slider.min = 0;
        slider.max = 2;
        slider.step = 1;
        slider.value = 0;

        MockInteractions.down(slider.$.sliderBar, cursor);

        flush(function() {
          assert.equal(slider.value, slider.max);
            sli