Index: LayoutTests/fast/events/constructors/track-event-constructor-expected.txt |
diff --git a/LayoutTests/fast/events/constructors/track-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/track-event-constructor-expected.txt |
index 47df7b300a5858408c7b0f397e5083435af9f1c7..74a01c9a2eb4ea603d125cfe2a358fe2766943ef 100644 |
--- a/LayoutTests/fast/events/constructors/track-event-constructor-expected.txt |
+++ b/LayoutTests/fast/events/constructors/track-event-constructor-expected.txt |
@@ -15,15 +15,15 @@ PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).cancelabl |
PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true }).track is null |
*** Bubbles and cancelable true, invalid track *** |
-PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).bubbles threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
-PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).cancelable threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
-PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).track threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
+PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).bubbles threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
+PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).cancelable threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
+PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: HTMLTrackElement }).track threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
*** Initialize 'track' with a invalid values *** |
-PASS new TrackEvent('TrackEvent', { track: 10 }).track threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
-PASS new TrackEvent('TrackEvent', { track: 'string' }).track threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
-PASS new TrackEvent('TrackEvent', { track: emptyObject }).track threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
-PASS new TrackEvent('TrackEvent', { track: document }).track threw exception TypeError: Failed to construct 'TrackEvent': The 'track' property does not have a (VideoTrack or AudioTrack or TextTrack) type.. |
+PASS new TrackEvent('TrackEvent', { track: 10 }).track threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
+PASS new TrackEvent('TrackEvent', { track: 'string' }).track threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
+PASS new TrackEvent('TrackEvent', { track: emptyObject }).track threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
+PASS new TrackEvent('TrackEvent', { track: document }).track threw exception TypeError: Failed to construct 'TrackEvent': The provided value is not of type '(VideoTrack or AudioTrack or TextTrack)'. |
*** Bubbles and cancelable true, valid track *** |
PASS new TrackEvent('TrackEvent', { bubbles: true, cancelable: true, track: trackElement.track }).bubbles is true |