Update web-platform-tests to revision 1e42017386ce1eaeed4925fb8bc7f5417752019a

This commit is contained in:
Ms2ger 2016-07-05 17:05:14 +02:00
parent 5574a4e4c8
commit a972fdb353
2003 changed files with 16788 additions and 3140 deletions

View file

@ -34,17 +34,19 @@ partial interface Presentation {
attribute PresentationRequest? defaultRequest;
};
[Constructor(DOMString url)]
[Constructor(DOMString url),
Constructor(DOMString[] urls)]
interface PresentationRequest : EventTarget {
Promise<PresentationConnection> start();
Promise<PresentationConnection> reconnect(DOMString presentationId);
Promise<PresentationConnection> start();
Promise<PresentationConnection> reconnect(DOMString presentationId);
Promise<PresentationAvailability> getAvailability();
attribute EventHandler onconnectionavailable;
};
interface PresentationAvailability : EventTarget {
readonly attribute boolean value;
attribute EventHandler onchange;
readonly attribute boolean value;
attribute EventHandler onchange;
};
[Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict)]
@ -70,16 +72,17 @@ enum BinaryType {
};
interface PresentationConnection : EventTarget {
readonly attribute DOMString? id;
readonly attribute DOMString? id;
readonly attribute PresentationConnectionState state;
void close();
void terminate();
attribute EventHandler onconnect;
attribute EventHandler onclose;
attribute EventHandler onterminate;
attribute EventHandler onconnect;
attribute EventHandler onclose;
attribute EventHandler onterminate;
// Communication
attribute BinaryType binaryType;
attribute EventHandler onmessage;
attribute BinaryType binaryType;
attribute EventHandler onmessage;
void send(DOMString message);
void send(Blob data);
void send(ArrayBuffer data);
@ -95,12 +98,12 @@ enum PresentationConnectionClosedReason {
[Constructor(DOMString type, PresentationConnectionClosedEventInit eventInitDict)]
interface PresentationConnectionClosedEvent : Event {
readonly attribute PresentationConnectionClosedReason reason;
readonly attribute DOMString message;
readonly attribute DOMString message;
};
dictionary PresentationConnectionClosedEventInit : EventInit {
required PresentationConnectionClosedReason reason;
DOMString message;
DOMString message = "";
};
</script>

View file

@ -58,16 +58,17 @@ enum BinaryType {
};
interface PresentationConnection : EventTarget {
readonly attribute DOMString? id;
readonly attribute DOMString? id;
readonly attribute PresentationConnectionState state;
void close();
void terminate();
attribute EventHandler onconnect;
attribute EventHandler onclose;
attribute EventHandler onterminate;
attribute EventHandler onconnect;
attribute EventHandler onclose;
attribute EventHandler onterminate;
// Communication
attribute BinaryType binaryType;
attribute EventHandler onmessage;
attribute BinaryType binaryType;
attribute EventHandler onmessage;
void send(DOMString message);
void send(Blob data);
void send(ArrayBuffer data);
@ -83,12 +84,12 @@ enum PresentationConnectionClosedReason {
[Constructor(DOMString type, PresentationConnectionClosedEventInit eventInitDict)]
interface PresentationConnectionClosedEvent : Event {
readonly attribute PresentationConnectionClosedReason reason;
readonly attribute DOMString message;
readonly attribute DOMString message;
};
dictionary PresentationConnectionClosedEventInit : EventInit {
required PresentationConnectionClosedReason reason;
DOMString message;
DOMString message = "";
};
interface PresentationReceiver {
@ -98,7 +99,7 @@ interface PresentationReceiver {
interface PresentationConnectionList : EventTarget {
readonly attribute FrozenArray<PresentationConnection> connections;
attribute EventHandler onconnectionavailable;
attribute EventHandler onconnectionavailable;
};
</script>