(0) Build Krita with the patch.
(1) Start Krita. In `Settings -> Configure Krita -> Python Plugin Manager`, enable `Color Slider Docker`. Restart Krita.
(2) Right-click on menu bar, and enable `Color Slider Docker`.
Expected: The docker appears in the window. You may need to adjust its size and/or position.
(3) Create a new document.
(4) Click the `S` button on the left of the docker.
Expected: A dialog with a label and a line edit appears.
(5) In the line edit, replace the number with `0`. Click `OK` button.
Expected: The docker has only the `S` button in the center.
(6) Click the `S` button. In the dialog, replace `0` with `4`. Click `OK`.
Expected: 4 lines of color gradient from blue to black appear.
(7) Click some point on one slider.
Expected: The foreground color should be set to the color at that point. A white triangle appears at the cursor point.
(8) Choose some foreground color from another color selector (pop-up palette, advanced color selector, etc.).
Click the square on the left of one slider.
Expected: The color of the square becomes the current foreground color. The white triangle appears at the left-most of the slider.
(9) Chose some other foreground color from another color selector. Click the square on the right of that slider.
Expected: Similar to the above, but the white triangle appears at the right-most. The slider has a gradient between the two colors.
(10) Press the mouse inside that slider, and move the mouse to the right-most.
Expected: If you have advanced color selector, the color shown on it should not change. (The right-most color should be the one on the right button.) This step is to check that there is no error converting between ManagedColor and QColor.
(11) Set the left color to a color with a hue (blue, green, yellow, etc.) and the right one to a graytone (with Hue=-1).
Expected: The gradient should not have a change in hue.
(12) Set the left color to red and the right color to blue-ish cyan. (So that the two hues on the advanced-color-selector HSV ring go through the arc at the bottom (magenta and blue), which is a minor arc (<180 degrees).)
Expected: Magenta and blue appear on the slider. No yellow or green.
(13) Swap the left and right colors. (set the left color to blue-ish cyan and the right to red, don't need to be exactly the same, just ensure the minor arc between them goes through magenta and blue)
Expected: Same (direction should flip, though).
(14) Set the left color to red and the right color to green-ish cyan.
Expected: Yellow and green appear on the slider. No magenta or blue.
(15) Swap the left and right colors.
Expected: Same.
(16) Restart Krita.
Expected: The docker appears the same as the one before restarting, except there is no triangle cursors. (Test that all settings are saved.)