testDragEventsUpdatesValue() {
    // Get the center of the thumb at minimum value.
    oneThumbSlider.setMinimum(100);
    oneThumbSlider.setMaximum(300);
    oneThumbSlider.setValue(100);

    /** @suppress {visibility} suppression added to enable type checking */
    const offset = style.getPageOffset(oneThumbSlider.valueThumb);
    const offsetXAtZero = offset.x;

    const sliderElement = oneThumbSlider.getElementStrict();
    /** @suppress {visibility} suppression added to enable type checking */
    const thumbSize = style.getSize(oneThumbSlider.valueThumb);
    const width = sliderElement.clientWidth - thumbSize.width;
    const range = oneThumbSlider.getMaximum() - oneThumbSlider.getMinimum();

    // Test that dragging the thumb calls all the correct events.
    testingEvents.fireMouseDownEvent(oneThumbSlider.valueThumb);

    // Scroll to 30 in the range of 0-200. Given that this is LTR mode, that
    // means the value will be 100 + 30 = 130.
    offset.x = offsetXAtZero + Math.round(30 / range * width);
    testingEvents.fireMouseMoveEvent(oneThumbSlider.valueThumb, offset);
    assertEquals(130, oneThumbSlider.getValue());

    // Scroll to 70 in the range of 0-200. Given that this is LTR mode, that
    // means the value will be 100 + 70 = 170.
    offset.x = offsetXAtZero + Math.round(70 / range * width);
    testingEvents.fireMouseMoveEvent(oneThumbSlider.valueThumb, offset);
    assertEquals(170, oneThumbSlider.getValue());

    testingEvents.fireMouseUpEvent(oneThumbSlider.valueThumb);
  }
Tests dragging events updates the value correctly in LTR mode based on
the amount of space remaining to the right of the thumb.
@suppress {visibility} suppression added to enable type checking