tree: 25676c1347e2efe814eefa1a5acbf0b56dba03a6 [path history] [tgz]
  1. controlling-ua/
  2. receiving-ua/
  3. OWNERS
  4. README.md
presentation-api/README.md

Presentation API Tests

This test suite is currently tracking the Editor Draft of the Presentation API. The Presentation API describes the conformance criteria for two classes of user agents (controlling user agent and receiving user agent). Each of the two subfolders controlling-ua and receiving-ua contains the Presentation API tests for each class of user agents.

IDL Tests

Each of the controlling-ua and receiving-ua subfolders contains a file idlharness.html that defines IDL tests of the Presentation API for controlling and receiving user agents. The WebIDL of the Presentation API spec is extracted from the Editor Draft by running the following JavaScript code in the Dev. console of the Browser.

(function(){
  var s = "";
  [].forEach.call(document.getElementsByClassName("idl"), function(idl) {
    if (!idl.classList.contains("extract"))
      s += idl.textContent + "\n\n";
  });
  document.body.innerHTML = '<pre></pre>';
  document.body.firstChild.textContent = s;
  })();