Skip to content

Latest commit

 

History

History

presentation-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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