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

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

    const sliderElement = oneThumbSliderRtl.getElementStrict();
    const width = sliderElement.clientWidth - thumbSize.width;
    const range =
        oneThumbSliderRtl.getMaximum() - oneThumbSliderRtl.getMinimum();

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

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

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

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