mirror of
https://github.com/servo/servo.git
synced 2025-09-03 11:38:22 +01:00
Update web-platform-tests to revision 346d5b51a122f7bb1c7747064499ef281a0200f7
This commit is contained in:
parent
581c8ba1c8
commit
79b1e6c40c
1728 changed files with 20243 additions and 5349 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue