Bug 1276831 - part4 : modify web-platform-test. draft
authorAlastor Wu <alwu@mozilla.com>
Wed, 15 Jun 2016 16:52:07 +0100
changeset 378260 1afdc0f4966465000398b39ea5f540bc0be5f65f
parent 378259 ad2c8997175355ef4e12bebaee26364ab1cd1927
child 523503 cacafe93ef5c7ebd9e210fd6168e77adc0191189
push id20975
push useralwu@mozilla.com
push dateWed, 15 Jun 2016 15:52:52 +0000
bugs1276831
milestone50.0a1
Bug 1276831 - part4 : modify web-platform-test. The idl-test-harness can't detect the multiple types in webidl [1], so it doesn't know about the type like "double or AutoKeyword". The same problem also happen in VTTCue's line property, and we have already expected its fail. Therefore, we should expect this fail before we fix the problem of idl-test-harness. [1] http://searchfox.org/mozilla-central/source/dom/imptests/idlharness.js#375 MozReview-Commit-ID: 5XvOwdmqKDP
testing/web-platform/meta/webvtt/interfaces.html.ini
testing/web-platform/tests/webvtt/interfaces.html
--- a/testing/web-platform/meta/webvtt/interfaces.html.ini
+++ b/testing/web-platform/meta/webvtt/interfaces.html.ini
@@ -13,16 +13,19 @@
     expected: FAIL
 
   [VTTCue interface: new VTTCue(0, 1, "foo") must inherit property "region" with the proper type (0)]
     expected: FAIL
 
   [VTTCue interface: new VTTCue(0, 1, "foo") must inherit property "line" with the proper type (3)]
     expected: FAIL
 
+  [VTTCue interface: new VTTCue(0, 1, "foo") must inherit property "position" with the proper type (5)]
+    expected: FAIL
+
   [VTTRegion interface: existence and properties of interface object]
     expected: FAIL
 
   [VTTRegion interface object length]
     expected: FAIL
 
   [VTTRegion interface: existence and properties of interface prototype object]
     expected: FAIL
--- a/testing/web-platform/tests/webvtt/interfaces.html
+++ b/testing/web-platform/tests/webvtt/interfaces.html
@@ -14,17 +14,17 @@ enum DirectionSetting { "" /* horizontal
 enum AlignSetting { "start", "middle", "end", "left", "right" };
 [Constructor(double startTime, double endTime, DOMString text)]
 interface VTTCue : TextTrackCue {
            attribute VTTRegion? region;
            attribute DirectionSetting vertical;
            attribute boolean snapToLines;
            attribute (double or AutoKeyword) line;
            attribute AlignSetting lineAlign;
-           attribute double position;
+           attribute (double or AutoKeyword) position;
            attribute AlignSetting positionAlign;
            attribute double size;
            attribute AlignSetting align;
            attribute DOMString text;
   DocumentFragment getCueAsHTML();
 };
 
 enum ScrollSetting { "" /* none */, "up" };