Update web-platform-tests to revision 2df7f9ff620cbdaa2928464892fb1dfb880fd6c6

This commit is contained in:
WPT Sync Bot 2018-09-28 21:31:46 -04:00
parent 97e3c5f3a9
commit 7ba3376dde
74 changed files with 1985 additions and 504 deletions

View file

@ -137,7 +137,8 @@ interface SpeechSynthesisUtterance : EventTarget {
attribute EventHandler onboundary;
};
[Exposed=Window]
[Exposed=Window,
Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict)]
interface SpeechSynthesisEvent : Event {
readonly attribute SpeechSynthesisUtterance utterance;
readonly attribute unsigned long charIndex;
@ -145,6 +146,13 @@ interface SpeechSynthesisEvent : Event {
readonly attribute DOMString name;
};
dictionary SpeechSynthesisEventInit : EventInit {
required SpeechSynthesisUtterance utterance;
unsigned long charIndex = 0;
float elapsedTime = 0;
DOMString name = "";
};
enum SpeechSynthesisErrorCode {
"canceled",
"interrupted",
@ -160,11 +168,16 @@ enum SpeechSynthesisErrorCode {
"not-allowed",
};
[Exposed=Window]
[Exposed=Window,
Constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict)]
interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
readonly attribute SpeechSynthesisErrorCode error;
};
dictionary SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit {
required SpeechSynthesisErrorCode error;
};
[Exposed=Window]
interface SpeechSynthesisVoice {
readonly attribute DOMString voiceURI;