summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/presentation-api/controlling-ua/common.js
blob: 4a73acd1def92fd8e3d8f549d1f3d3520c712a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(function (window) {
  // Cast ID of the main custom receiver application linked with the test suite
  // That application ID, maintained by W3C team, points at:
  // https://[W3C test server]/presentation-api/controlling-ua/support/presentation.html
  //
  // NB: this mechanism should be improved later on as tests should not depend
  // on something that directly or indirectly maps to a resource on the W3C test
  // server.
  var castAppId = '915D2A2C';
  var castUrl = 'cast:' + castAppId;

  window.presentationUrls = [
    'support/presentation.html',
    castUrl
  ];

  // Both a controlling side and a receiving one must share the same Stash ID to
  // transmit data from one to the other. On the other hand, due to polling mechanism
  // which cleans up a stash, stashes in both controller-to-receiver direction
  // and one for receiver-to-controller are necessary.
  window.stashIds = {
    toController: '9bf08fea-a71a-42f9-b3c4-fa19499e4d12',
    toReceiver: 'f1fdfd10-b606-4748-a644-0a8e9df3bdd6'
  }
})(window);