Update web-platform-tests to revision 346d5b51a122f7bb1c7747064499ef281a0200f7

This commit is contained in:
Ms2ger 2016-06-24 10:13:49 +02:00
parent 581c8ba1c8
commit 79b1e6c40c
1728 changed files with 20243 additions and 5349 deletions

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="author" title="He Yue" href="mailto:yue.he@intel.com">
<link rel="help" href="http://w3c.github.io/presentation-api/#interface-presentationconnectionlist">
<script>
var addConnection = function(connection) {
connection.onconnected = function () {
this.onmessage = function (evt) {
this.send(evt.data);
};
};
navigator.receiver.connectionList
.then(function(list) {
list.onconnectionavailable = function(connections) {
addConnection(connections[connections.length - 1]);
};
list.connections.map(function(connection) {
addConnection(connection);
});
});
}
</script>