Bug 1528862 [wpt PR 15452] - [docs] Adding missing `EventWatcher` heading to docs, a=testonly
authorBrian Birtles <birtles@gmail.com>
Wed, 06 Mar 2019 10:34:01 +0000
changeset 464598 f877aa6c6bb338bf02e4c3840fa66067d520360a
parent 464597 e71578edf074b5bccd5a97ef6022ace5d2afd315
child 464599 fbdc04ae24b2285505305a37034fd67917bd0431
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1528862, 15452
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1528862 [wpt PR 15452] - [docs] Adding missing `EventWatcher` heading to docs, a=testonly Automatic update from web-platform-tests [docs] Adding missing `EventWatcher` heading to docs -- wpt-commits: 2b66b8b24b727c7490bf6091dd8a6a551642720b wpt-pr: 15452
testing/web-platform/tests/docs/_writing-tests/testharness-api.md
--- a/testing/web-platform/tests/docs/_writing-tests/testharness-api.md
+++ b/testing/web-platform/tests/docs/_writing-tests/testharness-api.md
@@ -207,16 +207,18 @@ function bar() {
   return Promise.reject(new TypeError());
 }
 
 promise_test(function(t) {
   return promise_rejects(t, new TypeError(), bar());
 }, "Another example");
 ```
 
+## `EventWatcher` ##
+
 `EventWatcher` is a constructor function that allows DOM events to be handled
 using Promises, which can make it a lot easier to test a very specific series
 of events, including ensuring that unexpected events are not fired at any point.
 
 Here's an example of how to use `EventWatcher`:
 
 ```js
 var t = async_test("Event order on animation start");