Update web-platform-tests to revision 26e8a76d7fbea0721468e791a325444ac9939a4f

This commit is contained in:
WPT Sync Bot 2018-03-21 21:10:50 -04:00
parent 1c2bed5a69
commit 6b4026ce2f
89 changed files with 889 additions and 258 deletions

View file

@ -116,53 +116,23 @@ dictionary GetRootNodeOptions {
};
</script>
<script type=text/plain id=tested>
enum AutoKeyword { "auto" };
typedef (double or AutoKeyword) LineAndPositionSetting;
enum DirectionSetting { "" /* horizontal */, "rl", "lr" };
enum LineAlignSetting { "start", "center", "end" };
enum PositionAlignSetting { "line-left", "center", "line-right", "auto" };
enum AlignSetting { "start", "center", "end", "left", "right" };
[Exposed=Window,
Constructor(double startTime, double endTime, DOMString text)]
interface VTTCue : TextTrackCue {
attribute VTTRegion? region;
attribute DirectionSetting vertical;
attribute boolean snapToLines;
attribute LineAndPositionSetting line;
attribute LineAlignSetting lineAlign;
attribute LineAndPositionSetting position;
attribute PositionAlignSetting positionAlign;
attribute double size;
attribute AlignSetting align;
attribute DOMString text;
DocumentFragment getCueAsHTML();
};
enum ScrollSetting { "" /* none */, "up" };
[Exposed=Window,
Constructor]
interface VTTRegion {
attribute DOMString id;
attribute double width;
attribute long lines;
attribute double regionAnchorX;
attribute double regionAnchorY;
attribute double viewportAnchorX;
attribute double viewportAnchorY;
attribute ScrollSetting scroll;
};
</script>
<script>
"use strict";
setup(function() {
// https://w3c.github.io/webvtt/
promise_test(async () => {
const webvttIDL = await fetch('/interfaces/webvtt.idl').then(response =>
response.text(),
);
var idlArray = new IdlArray();
idlArray.add_untested_idls(document.getElementById("untested").textContent);
idlArray.add_idls(document.getElementById("tested").textContent);
idlArray.add_untested_idls(document.getElementById('untested').textContent);
idlArray.add_idls(webvttIDL);
idlArray.add_objects({
VTTCue: ['new VTTCue(0, 0, "")'],
VTTRegion: ['new VTTRegion()'],
});
idlArray.test();
});
done();
}, 'webvtt interfaces.');
</script>