Automatic update from web-platform-tests Add <meta name=timeout content=long> to WPT in SlowTests This is the 2nd step in the process of banning external/wpt from SlowTests. After cleaning up the wtp entries we're marking them as slow by using wpt idioms, i.e.: 1) Add <meta name="timeout" content="long"> to .html files 2) Add // META: timeout=long to .js files Bug: 765026 Change-Id: Iaf051104f419524916e19324996cc36ee37d5426 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1497005 Commit-Queue: Sergio Villar <svillar@igalia.com> Reviewed-by: Andy Paicu <andypaicu@chromium.org> Reviewed-by: Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#643402} -- wpt-commits: 7287608f90f6b9530635d10086fd2ab386faab38 wpt-pr: 15630 |
||
|---|---|---|
| .. | ||
| controlling-ua | ||
| receiving-ua | ||
| META.yml | ||
| README.md | ||
Presentation API Tests
This test suite is currently tracking the Editor's 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
The controlling-ua and receiving-ua subfolders contain files idlharness.https.html and idlharness-manual.https.html that define IDL tests of the Presentation API for controlling and receiving user agents, respectively. The WebIDL of the Presentation API spec is extracted from the Editor's 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;
})();
Receiving User Agent Tests
The receiving-ua subfolder contains receiving user agent tests to be initiated by a controlling user agent. When the controlling user agent starts the test, it will ask a user to click a button and choose a presentation display. Once the presentation display is selected, the controlling user agent will request the receiving user agent to load and run the corresponding test placed in the receiving-ua/support subfolder. When the test ends, all results will appear on the controlling user agent's window.