Dactyloidae/testing/web-platform/tests/presentation-api
2018-01-19 03:59:58 +08:00
..
controlling-ua import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
receiving-ua import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
OWNERS import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
README.md import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00

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;
  })();