Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -7,7 +7,7 @@
// on something that directly or indirectly maps to a resource on the W3C test
// server.
var castAppId = '915D2A2C';
var castUrl = 'https://google.com/cast#__castAppId__=' + castAppId;
var castUrl = 'cast:' + castAppId;
window.presentationUrls = [
'support/presentation.html',
@ -22,4 +22,4 @@
toController: '9bf08fea-a71a-42f9-b3c4-fa19499e4d12',
toReceiver: 'f1fdfd10-b606-4748-a644-0a8e9df3bdd6'
}
})(window);
})(window);

View file

@ -28,7 +28,8 @@ partial interface Navigator {
readonly attribute Presentation presentation;
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface Presentation {
};
@ -36,9 +37,10 @@ partial interface Presentation {
attribute PresentationRequest? defaultRequest;
};
[SecureContext,
Constructor(USVString url),
Constructor(sequence<USVString> urls)]
[Constructor(USVString url),
Constructor(sequence<USVString> urls),
SecureContext,
Exposed=Window]
interface PresentationRequest : EventTarget {
Promise<PresentationConnection> start();
Promise<PresentationConnection> reconnect(USVString presentationId);
@ -47,14 +49,16 @@ interface PresentationRequest : EventTarget {
attribute EventHandler onconnectionavailable;
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface PresentationAvailability : EventTarget {
readonly attribute boolean value;
attribute EventHandler onchange;
};
[SecureContext,
Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict)]
[Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict),
SecureContext,
Exposed=Window]
interface PresentationConnectionAvailableEvent : Event {
[SameObject]
readonly attribute PresentationConnection connection;
@ -76,7 +80,8 @@ enum BinaryType {
"arraybuffer"
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface PresentationConnection : EventTarget {
readonly attribute USVString id;
readonly attribute USVString url;
@ -102,8 +107,9 @@ enum PresentationConnectionCloseReason {
"wentaway"
};
[SecureContext,
Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict)]
[Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
SecureContext,
Exposed=Window]
interface PresentationConnectionCloseEvent : Event {
readonly attribute PresentationConnectionCloseReason reason;
readonly attribute DOMString message;
@ -132,4 +138,4 @@ dictionary PresentationConnectionCloseEventInit : EventInit {
});
idl_array.test();
})();
</script>
</script>

View file

@ -63,8 +63,8 @@ navigator.presentation.receiver.connectionList.then(list => {
assert_equals(connection.binaryType, 'arraybuffer', 'the default value of binaryType is "arraybuffer"');
const eventWatcher = new EventWatcher(t, connection, 'message');
return eventWatcher.wait_for('message').then(evt => {
checkEvent(evt);
return eventWatcher.wait_for('message').then(event => {
checkEvent(event);
assert_equals(event.data, message1, 'receive a string correctly');
return watchEvent(connection, eventWatcher, 'message');
}).then(event => {

View file

@ -31,7 +31,8 @@ partial interface Navigator {
readonly attribute Presentation presentation;
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface Presentation {
};
@ -39,8 +40,9 @@ partial interface Presentation {
readonly attribute PresentationReceiver? receiver;
};
[SecureContext,
Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict)]
[Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict),
SecureContext,
Exposed=Window]
interface PresentationConnectionAvailableEvent : Event {
[SameObject]
readonly attribute PresentationConnection connection;
@ -62,7 +64,8 @@ enum BinaryType {
"arraybuffer"
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface PresentationConnection : EventTarget {
readonly attribute USVString id;
readonly attribute USVString url;
@ -88,8 +91,9 @@ enum PresentationConnectionCloseReason {
"wentaway"
};
[SecureContext,
Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict)]
[Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
SecureContext,
Exposed=Window]
interface PresentationConnectionCloseEvent : Event {
readonly attribute PresentationConnectionCloseReason reason;
readonly attribute DOMString message;
@ -100,12 +104,14 @@ dictionary PresentationConnectionCloseEventInit : EventInit {
DOMString message = "";
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface PresentationReceiver {
readonly attribute Promise<PresentationConnectionList> connectionList;
};
[SecureContext]
[SecureContext,
Exposed=Window]
interface PresentationConnectionList : EventTarget {
readonly attribute FrozenArray<PresentationConnection> connections;
attribute EventHandler onconnectionavailable;