Bug 1531863 - part4 : enable wpt 'track-change-event.html'. r=jya
authorAlastor Wu <alwu@mozilla.com>
Fri, 08 Mar 2019 03:06:41 +0000
changeset 521464 859e7f4b9cb191e13ae9da7757c26312683b7b3f
parent 521463 442e99192e46af6a58386288cdc5166ce0072cea
child 521465 7ae9bc24596f95a6bb69fcf1ce3d810ee478b6a0
push id10866
push usernerli@mozilla.com
push dateTue, 12 Mar 2019 18:59:09 +0000
treeherdermozilla-beta@445c24a51727 [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>