1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-23 02:04:34 +02:00
video.js/test/unit
André 78310464d5
fix(error-display): update display on consecutive errors (#8485)
When consecutive errors occur, the `ErrorDisplay` component is not updated with the new error message.
This results in an inconsistent state between the `player.error` and `player.errorDisplay.contentEl().textContent`.

|                         | player.error() | player.errorDisplay.content() | player.errorDisplay.contentEl().textContent |
| ----------------------- | -------------- | ----------------------------- | ------------------------------------------- |
| player.error('Error 1') | Error 1 ✔️      | Error 1 ✔️                     | Error 1 ✔️                                   |
| player.error('Error 2') | Error 2 ✔️      | Error 2 ✔️                     | Error 1                                   |

An example of a use case where updating the error message is useful is :
- user tries to play media 1 but the media doestn't exist
- user tries to play media 2 but the media is not compatible

- call the `close` function before each call to the `open` function.
  - if errorDisplay is not **open**, the `close` function does nothing
  - if errorDisplay is **open**, the `close` function executes and triggers the close events, then the open function executes and triggers the open events, ensuring that the content is updated.
2023-11-28 23:11:15 +01:00
..
control-bar fix(skip-forward): error when clicking after player reset (#8258) 2023-05-31 10:30:49 -04:00
mixins Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
tech fix(jsdoc): corrections to jsdoc (#8277) 2023-05-31 11:12:57 -04:00
tracks fix: Check for VTTCue (#8370) 2023-07-20 11:38:15 -05:00
utils feat: enhanced logger (#8444) 2023-09-25 12:50:01 -04:00
autoplay.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
button.test.js fix: Reduce the multiple-announcement by screen readers of the new name of a button when its text label changes. (#5158) 2018-05-11 14:31:28 -04:00
clickable-component.test.js feat: easier configuration of buttons and components via options (#7611) 2022-03-21 12:21:26 -04:00
close-button.test.js fix: handle esc key properly inside of the CloseButton (#6050) 2019-06-18 16:23:26 -04:00
component.test.js feat: Add useSVGIcons option (#8260) 2023-06-12 13:31:06 -05:00
controls.test.js fix(picture-in-picture-control): hide the component in non-compatible browsers (#7899) 2023-05-31 10:54:51 -04:00
error-display.test.js fix(error-display): update display on consecutive errors (#8485) 2023-11-28 23:11:15 +01:00
event-target.test.js test: memory leak fixes in tests (#5861) 2019-03-18 15:49:48 -04:00
events.test.js fix(jsdoc): corrections to jsdoc (#8277) 2023-05-31 11:12:57 -04:00
live-tracker.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
loading-spinner.test.js fix: Ensure additional components update on languagechange (#8175) 2023-04-04 16:54:36 -04:00
media-error.test.js fix(vjsstandard): update to 8.0.2 and fixup linting (#5413) 2018-09-28 14:58:15 -04:00
menu.test.js feat: Add useSVGIcons option (#8260) 2023-06-12 13:31:06 -05:00
modal-dialog.test.js fix: make sure hotkeys are not triggered outside the player or in form fields within the player (#5969) 2019-06-10 16:15:24 -04:00
play.test.js Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
player-breakpoints.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
player-fullscreen.test.js fix: Exit PIP if entering fullscreen (#8082) 2023-02-01 18:03:36 +01:00
player-loadmedia.test.js feat: Add loadMedia and getMedia methods (#5652) 2019-01-03 13:49:34 -05:00
player-play.test.js fix: replay button broken for native playback (#8142) 2023-03-06 10:32:14 -08:00
player-user-actions.test.js test: add tests for the click user action (#7507) 2021-11-10 14:17:19 -05:00
player.test.js fix(error): chromium reset mediaError when the poster is invalid (#8410) 2023-09-27 10:18:58 +02:00
plugin-advanced.test.js feat: Add a default, plugin-specific logger to advanced plugins (#6693) 2020-07-10 11:59:04 -04:00
plugin-basic.test.js
plugin-static.test.js
poster.test.js fix: Remove img el when there's no poster source (#8130) 2023-02-20 10:04:39 +01:00
reset-ui.test.js fix(seek-bar): error when scrubbing after player reset (#8257) 2023-05-31 10:30:13 -04:00
resize-manager.test.js fix(resize-manager): Prevent tabbing into RM and hide from Screen Readers (#5754) 2019-01-22 16:36:20 -05:00
seek-to-live.test.js feat: update exposed utility functions and deprecate several top-level methods of the videojs global (#7761) 2022-11-23 09:49:23 -05:00
setup.test.js fix(vjsstandard): update to 8.0.2 and fixup linting (#5413) 2018-09-28 14:58:15 -04:00
sourceset.test.js fix(player): techGet is undefined (#8256) 2023-05-31 10:29:35 -04:00
test-helpers.js fix: Improves isSingleLeftClick() to handle mousemove (#6138) 2019-07-29 17:45:40 -04:00
title-bar.test.js feat: add a new title bar component (#7788) 2022-11-23 09:49:25 -05:00
video.test.js fix: make compatible with chrome 53 (#8354) 2023-07-12 19:43:17 +02:00
videojs-hooks.test.js Fix several typos in docs and comments (#8110) 2023-03-22 15:00:01 +01:00
videojs-integration.test.js refactor: rename fn.bind to fn.bind_ to strongly indicate it should not be used externally (#7940) 2022-11-23 09:49:32 -05:00