Update web-platform-tests to revision fec3928f355e049657d19780aa4b412d9d3a714b

This commit is contained in:
WPT Sync Bot 2018-10-02 22:11:10 -04:00
parent 74ba683e27
commit 2a8d9b6983
153 changed files with 3075 additions and 719 deletions

View file

@ -43,12 +43,18 @@ enum SpeechRecognitionErrorCode {
"language-not-supported"
};
[Exposed=Window]
[Exposed=Window,
Constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict)]
interface SpeechRecognitionErrorEvent : Event {
readonly attribute SpeechRecognitionErrorCode error;
readonly attribute DOMString message;
};
dictionary SpeechRecognitionErrorEventInit : EventInit {
required SpeechRecognitionErrorCode error;
DOMString message = "";
};
// Item in N-best list
[Exposed=Window]
interface SpeechRecognitionAlternative {
@ -72,7 +78,8 @@ interface SpeechRecognitionResultList {
};
// A full response, which could be interim or final, part of a continuous response or not
[Exposed=Window]
[Exposed=Window,
Constructor(DOMString type, SpeechRecognitionEventInit eventInitDict)]
interface SpeechRecognitionEvent : Event {
readonly attribute unsigned long resultIndex;
readonly attribute SpeechRecognitionResultList results;
@ -80,6 +87,13 @@ interface SpeechRecognitionEvent : Event {
readonly attribute Document? emma;
};
dictionary SpeechRecognitionEventInit : EventInit {
unsigned long resultIndex = 0;
required SpeechRecognitionResultList results;
any interpretation = null;
Document? emma = null;
};
// The object representing a speech grammar
[Exposed=Window, Constructor]
interface SpeechGrammar {
@ -118,8 +132,7 @@ partial interface Window {
};
[Exposed=Window,
Constructor,
Constructor(DOMString text)]
Constructor(optional DOMString text)]
interface SpeechSynthesisUtterance : EventTarget {
attribute DOMString text;
attribute DOMString lang;
@ -138,7 +151,7 @@ interface SpeechSynthesisUtterance : EventTarget {
};
[Exposed=Window,
Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict)]
Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict)]
interface SpeechSynthesisEvent : Event {
readonly attribute SpeechSynthesisUtterance utterance;
readonly attribute unsigned long charIndex;
@ -169,7 +182,7 @@ enum SpeechSynthesisErrorCode {
};
[Exposed=Window,
Constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict)]
Constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict)]
interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
readonly attribute SpeechSynthesisErrorCode error;
};