Bug 1531863 - part4 : enable wpt 'track-change-event.html'. r=jya
☠☠ backed out by b653c9d4de17 ☠ ☠
authorAlastor Wu <alwu@mozilla.com>
Thu, 07 Mar 2019 21:48:00 +0000
changeset 520918 e2e2b325344fcda75fe015b3de5ba25bd53613ba
parent 520917 5be609c166652d5861cc5a8bac0265c3bf98d242
child 520919 06e9cd204aacf5bb735a8f7370a409f64ec6e975
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1531863
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1531863 - part4 : enable wpt 'track-change-event.html'. r=jya Add missing augment and enable the wpt. Differential Revision: https://phabricator.services.mozilla.com/D22175
testing/web-platform/meta/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html.ini
testing/web-platform/tests/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html
deleted file mode 100644
--- a/testing/web-platform/meta/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[track-change-event.html]
-  [A 'change' event is fired when a TextTrack's mode changes]
-    expected: FAIL
-
--- a/testing/web-platform/tests/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html
+++ b/testing/web-platform/tests/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html
@@ -7,15 +7,15 @@ async_test(function(t) {
     var video = document.createElement('video');
     var track = video.addTextTrack('subtitles', 'test', 'en');
 
     // addTextTrack() defaults to "hidden", so settings
     // mode to "showing" should trigger a "change" event.
     track.mode = 'showing';
     assert_equals(video.textTracks.length, 1);
 
-    video.textTracks.onchange = t.step_func_done(function() {
+    video.textTracks.onchange = t.step_func_done(function(event) {
         assert_equals(event.target, video.textTracks);
         assert_true(event instanceof Event, 'instanceof');
         assert_false(event.hasOwnProperty('track'), 'unexpected property found: "track"');
     });
 });
 </script>