Revision 31a51c70f74e23dc52f2033e552990a03f3166a9 authored by Mike Pennisi on 29 June 2018, 15:27:58 UTC, committed by Ms2ger on 02 July 2018, 14:31:05 UTC
Today, the return value of functions provided to the global `add_cleanup` function has no effect on the behavior of the test runner. An upcoming feature addition to testharness.js will cause the return value to influence test results [1]. Despite this, some existing tests have already been authored to return a value: the result of `document.exitFullScreen`. Although this is expected to be a Promise in conforming implementations, some browsers do not yet implement this functionality. To allow the new test harness feature to land without introducing harness errors, refactor existing tests to omit a return value. Additionally, use `Promise.prototype.catch` to avoid race conditions resulting from unhandled Promise rejections (which trigger a harness error in testharness.js today). [1] https://github.com/web-platform-tests/wpt/issues/6075
1 parent 21369c1
File | Mode | Size |
---|---|---|
Document-open.html | -rw-r--r-- | 2.0 KB |
META.yml | -rw-r--r-- | 29 bytes |
addRange-00.html | -rw-r--r-- | 384 bytes |
addRange-04.html | -rw-r--r-- | 384 bytes |
addRange-08.html | -rw-r--r-- | 385 bytes |
addRange-12.html | -rw-r--r-- | 386 bytes |
addRange-16.html | -rw-r--r-- | 386 bytes |
addRange-20.html | -rw-r--r-- | 386 bytes |
addRange-24.html | -rw-r--r-- | 386 bytes |
addRange-28.html | -rw-r--r-- | 386 bytes |
addRange-32.html | -rw-r--r-- | 386 bytes |
addRange-36.html | -rw-r--r-- | 386 bytes |
addRange-40.html | -rw-r--r-- | 386 bytes |
addRange-44.html | -rw-r--r-- | 386 bytes |
addRange-48.html | -rw-r--r-- | 386 bytes |
addRange-52.html | -rw-r--r-- | 386 bytes |
addRange-56.html | -rw-r--r-- | 382 bytes |
addRange.htm | -rw-r--r-- | 953 bytes |
addRange.js | -rw-r--r-- | 10.6 KB |
collapse-00.html | -rw-r--r-- | 385 bytes |
collapse-15.html | -rw-r--r-- | 386 bytes |
collapse-30.html | -rw-r--r-- | 382 bytes |
collapse-45.html | -rw-r--r-- | 386 bytes |
collapse.htm | -rw-r--r-- | 899 bytes |
collapse.js | -rw-r--r-- | 4.1 KB |
collapseToStartEnd.html | -rw-r--r-- | 5.4 KB |
common.js | -rw-r--r-- | 38.1 KB |
deleteFromDocument.html | -rw-r--r-- | 4.3 KB |
dir-manual.html | -rw-r--r-- | 4.4 KB |
extend-00.html | -rw-r--r-- | 393 bytes |
extend-20.html | -rw-r--r-- | 394 bytes |
extend-40.html | -rw-r--r-- | 390 bytes |
extend.js | -rw-r--r-- | 7.1 KB |
getRangeAt.html | -rw-r--r-- | 443 bytes |
getSelection.html | -rw-r--r-- | 6.6 KB |
interfaces.html | -rw-r--r-- | 1.2 KB |
isCollapsed.html | -rw-r--r-- | 1.1 KB |
removeAllRanges.html | -rw-r--r-- | 2.3 KB |
removeRange.html | -rw-r--r-- | 1.8 KB |
selectAllChildren.html | -rw-r--r-- | 2.6 KB |
setBaseAndExtent.html | -rw-r--r-- | 5.3 KB |
test-iframe.html | -rw-r--r-- | 1.1 KB |
type.html | -rw-r--r-- | 918 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...