-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lightbox test: Add video player regression tests #694
Commits on Jun 15, 2024
-
lightbox: Apply correct fix for slider flickering
This changes makes it so that the async function `seekTo` is awaited before the `setState` in `Slider.onChangeEnd`, thus first setting the controller's value which as a side-effect calls the `setState` in `_handleVideoControllerUpdate`, and then the `setState` in `Slider.onChangeEnd`. Resulting in both setState calls to be coalesced in a single redraw. Whereas previously the unawaited `seekTo` call would delay setting the controller's value in a microtask.
Configuration menu - View commit details
-
Copy full SHA for 8ff5f7f - Browse repository at this point
Copy the full SHA 8ff5f7fView commit details -
lightbox test: Factor out VideoDurationLabel for testing visibility
Also introduce various tests for VideoDurationLabel.
Configuration menu - View commit details
-
Copy full SHA for 44c734c - Browse repository at this point
Copy the full SHA 44c734cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71d679e - Browse repository at this point
Copy the full SHA 71d679eView commit details -
lightbox test: Add video player regression tests
Introduce tests for each of the cases mentioned here: zulip#587 (comment)
Configuration menu - View commit details
-
Copy full SHA for 8f018d4 - Browse repository at this point
Copy the full SHA 8f018d4View commit details -
lightbox test [nfc]: Tighten up checkPositions doc
In particular "A helper to" can be left out; and the fact that the two positions can be expected to differ can be seen from the function's call sites, some of which have them differing.
Configuration menu - View commit details
-
Copy full SHA for 1e2143c - Browse repository at this point
Copy the full SHA 1e2143cView commit details -
lightbox test [nfc]: Tighten test cases using a checkPositionsRelative
This makes some of these test cases quite a bit shorter, without losing any information that's relevant to what the test is about. Partly that comes by removing some tokens (like `kTestVideoDuration`) that were repetitive and not the interesting aspect of the test. Partly it comes by then as a result being able to collapse three lines into one line at each of these steps. That brings the different parts of the test closer together and makes them easier to see all at once.
Configuration menu - View commit details
-
Copy full SHA for 97109a0 - Browse repository at this point
Copy the full SHA 97109a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9065e8 - Browse repository at this point
Copy the full SHA b9065e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff029af - Browse repository at this point
Copy the full SHA ff029afView commit details