diff --git a/API.md b/API.md index 9e6f9649b..893671173 100644 --- a/API.md +++ b/API.md @@ -4,92 +4,53 @@ - [DOM Interaction Helpers][1] - [blur][2] - - [Parameters][3] - - [Examples][4] - - [click][5] - - [Parameters][6] - - [Examples][7] - - [doubleClick][8] - - [Parameters][9] - - [Examples][10] - - [fillIn][11] - - [Parameters][12] - - [Examples][13] - - [focus][14] - - [Parameters][15] - - [Examples][16] - - [tap][17] - - [Parameters][18] - - [Examples][19] - - [triggerEvent][20] - - [Parameters][21] - - [Examples][22] - - [triggerKeyEvent][23] - - [Parameters][24] - - [Examples][25] - - [typeIn][26] - - [Parameters][27] - - [Examples][28] -- [DOM Query Helpers][29] - - [find][30] - - [Parameters][31] - - [findAll][32] - - [Parameters][33] - - [getRootElement][34] -- [Routing Helpers][35] - - [visit][36] - - [Parameters][37] - - [currentRouteName][38] - - [currentURL][39] -- [Rendering Helpers][40] - - [render][41] - - [Parameters][42] - - [clearRender][43] -- [Wait Helpers][44] - - [waitFor][45] - - [Parameters][46] - - [waitUntil][47] - - [Parameters][48] - - [settled][49] - - [isSettled][50] - - [getSettledState][51] -- [Pause Helpers][52] - - [pauseTest][53] - - [Examples][54] - - [resumeTest][55] -- [Debug Helpers][56] - - [getDebugInfo][57] -- [Test Framework APIs][58] - - [setResolver][59] - - [Parameters][60] - - [getResolver][61] - - [setupContext][62] - - [Parameters][63] - - [getContext][64] - - [setContext][65] - - [Parameters][66] - - [unsetContext][67] - - [teardownContext][68] - - [Parameters][69] - - [setupRenderingContext][70] - - [Parameters][71] - - [teardownRenderingContext][72] - - [Parameters][73] - - [getApplication][74] - - [setApplication][75] - - [Parameters][76] - - [setupApplicationContext][77] - - [Parameters][78] - - [teardownApplicationContext][79] - - [Parameters][80] - - [validateErrorHandler][81] - - [Parameters][82] - - [Examples][83] - - [setupOnerror][84] - - [Parameters][85] - - [Examples][86] - - [resetOnerror][87] - - [Examples][88] + - [click][3] + - [doubleClick][4] + - [fillIn][5] + - [focus][6] + - [tap][7] + - [triggerEvent][8] + - [triggerKeyEvent][9] + - [typeIn][10] +- [DOM Query Helpers][11] + - [find][12] + - [findAll][13] + - [getRootElement][14] +- [Routing Helpers][15] + - [visit][16] + - [currentRouteName][17] + - [currentURL][18] +- [Rendering Helpers][19] + - [render][20] + - [clearRender][21] +- [Wait Helpers][22] + - [waitFor][23] + - [waitUntil][24] + - [settled][25] + - [isSettled][26] + - [getSettledState][27] +- [Pause Helpers][28] + - [pauseTest][29] + - [resumeTest][30] +- [Debug Helpers][31] + - [getDebugInfo][32] +- [Test Framework APIs][33] + - [setResolver][34] + - [getResolver][35] + - [setupContext][36] + - [getContext][37] + - [setContext][38] + - [unsetContext][39] + - [teardownContext][40] + - [setupRenderingContext][41] + - [teardownRenderingContext][42] + - [getApplication][43] + - [setApplication][44] + - [setupApplicationContext][45] + - [teardownApplicationContext][46] + - [validateErrorHandler][47] + - [setupOnerror][48] + - [resetOnerror][49] ## DOM Interaction Helpers @@ -113,7 +74,7 @@ to continue to emulate how actual browsers handle unfocusing a given element. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to unfocus (optional, default `document.activeElement`) +- `target` **([string][50] \| [Element][51])** the element or selector to unfocus (optional, default `document.activeElement`) #### Examples @@ -124,7 +85,7 @@ Emulating blurring an input using `blur` blur('input'); ``` -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### click @@ -151,13 +112,13 @@ For focusable (e.g. form control) elements the following events are triggered The exact listing of events that are triggered may change over time as needed to continue to emulate how actual browsers handle clicking a given element. -Use the `options` hash to change the parameters of the [MouseEvents][92]. +Use the `options` hash to change the parameters of the [MouseEvents][53]. You can use this to specifiy modifier keys as well. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to click on -- `options` **[Object][93]** the options to be merged into the mouse events (optional, default `{}`) +- `target` **([string][50] \| [Element][51])** the element or selector to click on +- `options` **[Object][54]** the options to be merged into the mouse events (optional, default `{}`) #### Examples @@ -175,7 +136,7 @@ Emulating clicking a button and pressing the `shift` key simultaneously using `c click('button', { shiftKey: true }); ``` -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### doubleClick @@ -210,12 +171,12 @@ For focusable (e.g. form control) elements the following events are triggered The exact listing of events that are triggered may change over time as needed to continue to emulate how actual browsers handle clicking a given element. -Use the `options` hash to change the parameters of the [MouseEvents][92]. +Use the `options` hash to change the parameters of the [MouseEvents][53]. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to double-click on -- `options` **[Object][93]** the options to be merged into the mouse events (optional, default `{}`) +- `target` **([string][50] \| [Element][51])** the element or selector to double-click on +- `options` **[Object][54]** the options to be merged into the mouse events (optional, default `{}`) #### Examples @@ -233,7 +194,7 @@ Emulating double clicking a button and pressing the `shift` key simultaneously u doubleClick('button', { shiftKey: true }); ``` -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### fillIn @@ -243,8 +204,8 @@ events on the specified target. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to enter text into -- `text` **[string][89]** the text to fill into the target element +- `target` **([string][50] \| [Element][51])** the element or selector to enter text into +- `text` **[string][50]** the text to fill into the target element #### Examples @@ -255,7 +216,7 @@ Emulating filling an input with text using `fillIn` fillIn('input', 'hello world'); ``` -Returns **[Promise][91]<void>** resolves when the application is settled +Returns **[Promise][52]<void>** resolves when the application is settled ### focus @@ -274,7 +235,7 @@ to continue to emulate how actual browsers handle focusing a given element. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to focus +- `target` **([string][50] \| [Element][51])** the element or selector to focus #### Examples @@ -285,7 +246,7 @@ Emulating focusing an input using `focus` focus('input'); ``` -Returns **[Promise][91]<void>** resolves when the application is settled +Returns **[Promise][52]<void>** resolves when the application is settled ### tap @@ -320,8 +281,8 @@ Use the `options` hash to change the parameters of the tap events. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to tap on -- `options` **[Object][93]** the options to be merged into the touch events (optional, default `{}`) +- `target` **([string][50] \| [Element][51])** the element or selector to tap on +- `options` **[Object][54]** the options to be merged into the touch events (optional, default `{}`) #### Examples @@ -332,7 +293,7 @@ Emulating tapping a button using `tap` tap('button'); ``` -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### triggerEvent @@ -340,16 +301,16 @@ Triggers an event on the specified target. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to trigger the event on -- `eventType` **[string][89]** the type of event to trigger -- `options` **[Object][93]** additional properties to be set on the event +- `target` **([string][50] \| [Element][51])** the element or selector to trigger the event on +- `eventType` **[string][50]** the type of event to trigger +- `options` **[Object][54]** additional properties to be set on the event #### Examples Using triggerEvent to Upload a file When using triggerEvent to upload a file the `eventType` must be `change` and you must pass the `options` param as an object with a key `files` containing an array of -[Blob][94]. +[Blob][55]. ```javascript @@ -360,25 +321,25 @@ triggerEvent( ); ``` -Returns **[Promise][91]<void>** resolves when the application is settled +Returns **[Promise][52]<void>** resolves when the application is settled ### triggerKeyEvent Triggers a keyboard event of given type in the target element. -It also requires the developer to provide either a string with the [`key`][95] -or the numeric [`keyCode`][96] of the pressed key. +It also requires the developer to provide either a string with the [`key`][56] +or the numeric [`keyCode`][57] of the pressed key. Optionally the user can also provide a POJO with extra modifiers for the event. #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to trigger the event on +- `target` **([string][50] \| [Element][51])** the element or selector to trigger the event on - `eventType` **(`"keydown"` \| `"keyup"` \| `"keypress"`)** the type of event to trigger -- `key` **([number][97] \| [string][89])** the `keyCode`(number) or `key`(string) of the event being triggered -- `modifiers` **[Object][93]?** the state of various modifier keys (optional, default `DEFAULT_MODIFIERS`) - - `modifiers.ctrlKey` **[boolean][98]** if true the generated event will indicate the control key was pressed during the key event (optional, default `false`) - - `modifiers.altKey` **[boolean][98]** if true the generated event will indicate the alt key was pressed during the key event (optional, default `false`) - - `modifiers.shiftKey` **[boolean][98]** if true the generated event will indicate the shift key was pressed during the key event (optional, default `false`) - - `modifiers.metaKey` **[boolean][98]** if true the generated event will indicate the meta key was pressed during the key event (optional, default `false`) +- `key` **([number][58] \| [string][50])** the `keyCode`(number) or `key`(string) of the event being triggered +- `modifiers` **[Object][54]?** the state of various modifier keys (optional, default `DEFAULT_MODIFIERS`) + - `modifiers.ctrlKey` **[boolean][59]** if true the generated event will indicate the control key was pressed during the key event (optional, default `false`) + - `modifiers.altKey` **[boolean][59]** if true the generated event will indicate the alt key was pressed during the key event (optional, default `false`) + - `modifiers.shiftKey` **[boolean][59]** if true the generated event will indicate the shift key was pressed during the key event (optional, default `false`) + - `modifiers.metaKey` **[boolean][59]** if true the generated event will indicate the meta key was pressed during the key event (optional, default `false`) #### Examples @@ -389,7 +350,7 @@ Emulating pressing the `ENTER` key on a button using `triggerKeyEvent` triggerKeyEvent('button', 'keydown', 'Enter'); ``` -Returns **[Promise][91]<void>** resolves when the application is settled +Returns **[Promise][52]<void>** resolves when the application is settled ### typeIn @@ -405,9 +366,9 @@ per character of the passed text (this may vary on some browsers). #### Parameters -- `target` **([string][89] \| [Element][90])** the element or selector to enter text into -- `text` **[string][89]** the test to fill the element with -- `options` **[Object][93]** {delay: x} (default 50) number of milliseconds to wait per keypress (optional, default `{}`) +- `target` **([string][50] \| [Element][51])** the element or selector to enter text into +- `text` **[string][50]** the test to fill the element with +- `options` **[Object][54]** {delay: x} (default 50) number of milliseconds to wait per keypress (optional, default `{}`) #### Examples @@ -418,7 +379,7 @@ Emulating typing in an input using `typeIn` typeIn('hello world'); ``` -Returns **[Promise][91]<void>** resolves when the application is settled +Returns **[Promise][52]<void>** resolves when the application is settled ## DOM Query Helpers @@ -432,9 +393,9 @@ Find the first element matched by the given selector. Equivalent to calling #### Parameters -- `selector` **[string][89]** the selector to search for +- `selector` **[string][50]** the selector to search for -Returns **[Element][90]** matched element or null +Returns **[Element][51]** matched element or null ### findAll @@ -444,15 +405,15 @@ of a `NodeList`. #### Parameters -- `selector` **[string][89]** the selector to search for +- `selector` **[string][50]** the selector to search for -Returns **[Array][99]** array of matched elements +Returns **[Array][60]** array of matched elements ### getRootElement Get the root element of the application under test (usually `#ember-testing`) -Returns **[Element][90]** the root element +Returns **[Element][51]** the root element ## Routing Helpers @@ -465,18 +426,18 @@ Navigate the application to the provided URL. #### Parameters -- `url` **[string][89]** The URL to visit (e.g. `/posts`) -- `options` **[object][93]** app boot options +- `url` **[string][50]** The URL to visit (e.g. `/posts`) +- `options` **[object][54]** app boot options -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### currentRouteName -Returns **[string][89]** the currently active route name +Returns **[string][50]** the currently active route name ### currentURL -Returns **[string][89]** the applications current url +Returns **[string][50]** the applications current url ## Rendering Helpers @@ -491,7 +452,7 @@ Renders the provided template and appends it to the DOM. - `template` **CompiledTemplate** the template to render -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### clearRender @@ -499,7 +460,7 @@ Clears any templates previously rendered. This is commonly used for confirming behavior that is triggered by teardown (e.g. `willDestroyElement`). -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ## Wait Helpers @@ -514,12 +475,12 @@ interim DOM states (e.g. loading states, pending promises, etc). #### Parameters -- `selector` **[string][89]** the selector to wait for -- `options` **[Object][93]?** the options to be used (optional, default `{}`) - - `options.timeout` **[number][97]** the time to wait (in ms) for a match (optional, default `1000`) - - `options.count` **[number][97]** the number of elements that should match the provided selector (null means one or more) (optional, default `null`) +- `selector` **[string][50]** the selector to wait for +- `options` **[Object][54]?** the options to be used (optional, default `{}`) + - `options.timeout` **[number][58]** the time to wait (in ms) for a match (optional, default `1000`) + - `options.count` **[number][58]** the number of elements that should match the provided selector (null means one or more) (optional, default `null`) -Returns **[Promise][91]<([Element][90] \| [Array][99]<[Element][90]>)>** resolves when the element(s) appear on the page +Returns **[Promise][52]<([Element][51] \| [Array][60]<[Element][51]>)>** resolves when the element(s) appear on the page ### waitUntil @@ -530,19 +491,19 @@ while _not_ settled (e.g. "loading" or "pending" states). #### Parameters -- `callback` **[Function][100]** the callback to use for testing when waiting should stop -- `options` **[Object][93]?** options used to override defaults (optional, default `{}`) - - `options.timeout` **[number][97]** the maximum amount of time to wait (optional, default `1000`) - - `options.timeoutMessage` **[string][89]** the message to use in the reject on timeout (optional, default `'waitUntil timed out'`) +- `callback` **[Function][61]** the callback to use for testing when waiting should stop +- `options` **[Object][54]?** options used to override defaults (optional, default `{}`) + - `options.timeout` **[number][58]** the maximum amount of time to wait (optional, default `1000`) + - `options.timeoutMessage` **[string][50]** the message to use in the reject on timeout (optional, default `'waitUntil timed out'`) -Returns **[Promise][91]** resolves with the callback value when it returns a truthy value +Returns **[Promise][52]** resolves with the callback value when it returns a truthy value ### settled Returns a promise that resolves when in a settled state (see `isSettled` for a definition of "settled state"). -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### isSettled @@ -552,7 +513,7 @@ Settled generally means that there are no pending timers, no pending waiters, no pending AJAX requests, and no current run loop. However, new settledness metrics may be added and used as they become available. -Returns **[boolean][98]** `true` if settled, `false` otherwise +Returns **[boolean][59]** `true` if settled, `false` otherwise ### getSettledState @@ -576,7 +537,7 @@ Check various settledness metrics, and return an object with the following prope - `debugInfo` - Debug information that's combined with info return from backburner's getDebugInfo method. -Returns **[Object][93]** object with properties for each of the metrics used to determine settledness +Returns **[Object][54]** object with properties for each of the metrics used to determine settledness ## Pause Helpers @@ -621,7 +582,7 @@ module('awesome-sauce', function(hooks) { }); ``` -Returns **[Promise][91]<void>** resolves _only_ when `resumeTest()` is invoked +Returns **[Promise][52]<void>** resolves _only_ when `resumeTest()` is invoked ### resumeTest @@ -675,17 +636,17 @@ Responsible for: #### Parameters -- `context` **[Object][93]** the context to setup -- `options` **[Object][93]?** options used to override defaults (optional, default `{}`) +- `context` **[Object][54]** the context to setup +- `options` **[Object][54]?** options used to override defaults (optional, default `{}`) - `options.resolver` **Resolver?** a resolver to use for customizing normal resolution -Returns **[Promise][91]<[Object][93]>** resolves with the context that was setup +Returns **[Promise][52]<[Object][54]>** resolves with the context that was setup ### getContext Retrive the "global testing context" as stored by `setContext`. -Returns **[Object][93]** the previously stored testing context +Returns **[Object][54]** the previously stored testing context ### setContext @@ -695,7 +656,7 @@ Generally setup automatically by `setupContext`. #### Parameters -- `context` **[Object][93]** the context to use +- `context` **[Object][54]** the context to use ### unsetContext @@ -715,11 +676,11 @@ Responsible for: #### Parameters -- `context` **[Object][93]** the context to setup -- `options` **[Object][93]?** options used to override defaults - - `options.waitForSettled` **[boolean][98]** should the teardown wait for `settled()`ness (optional, default `true`) +- `context` **[Object][54]** the context to setup +- `options` **[Object][54]?** options used to override defaults + - `options.waitForSettled` **[boolean][59]** should the teardown wait for `settled()`ness (optional, default `true`) -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### setupRenderingContext @@ -739,9 +700,9 @@ Responsible for: #### Parameters -- `context` **[Object][93]** the context to setup for rendering +- `context` **[Object][54]** the context to setup for rendering -Returns **[Promise][91]<[Object][93]>** resolves with the context that was setup +Returns **[Promise][52]<[Object][54]>** resolves with the context that was setup ### teardownRenderingContext @@ -754,11 +715,11 @@ Responsible for: #### Parameters -- `context` **[Object][93]** the context to setup -- `options` **[Object][93]?** options used to override defaults - - `options.waitForSettled` **[boolean][98]** should the teardown wait for `settled()`ness (optional, default `true`) +- `context` **[Object][54]** the context to setup +- `options` **[Object][54]?** options used to override defaults + - `options.waitForSettled` **[boolean][59]** should the teardown wait for `settled()`ness (optional, default `true`) -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### getApplication @@ -789,9 +750,9 @@ Sets up the basic framework used by application tests. #### Parameters -- `context` **[Object][93]** the context to setup +- `context` **[Object][54]** the context to setup -Returns **[Promise][91]<[Object][93]>** resolves with the context that was setup +Returns **[Promise][52]<[Object][54]>** resolves with the context that was setup ### teardownApplicationContext @@ -799,11 +760,11 @@ Used by test framework addons to tear down the provided context after testing is #### Parameters -- `context` **[Object][93]** the context to setup -- `options` **[Object][93]?** options used to override defaults - - `options.waitForSettled` **[boolean][98]** should the teardown wait for `settled()`ness (optional, default `true`) +- `context` **[Object][54]** the context to setup +- `options` **[Object][54]?** options used to override defaults + - `options.waitForSettled` **[boolean][59]** should the teardown wait for `settled()`ness (optional, default `true`) -Returns **[Promise][91]<void>** resolves when settled +Returns **[Promise][52]<void>** resolves when settled ### validateErrorHandler @@ -818,7 +779,7 @@ everything is on fire... #### Parameters -- `callback` **[Function][100]** the callback to validate (optional, default `Ember.onerror`) +- `callback` **[Function][61]** the callback to validate (optional, default `Ember.onerror`) #### Examples @@ -834,7 +795,7 @@ test('Ember.onerror is functioning properly', function(assert) { }); ``` -Returns **[Object][93]** object with `isValid` and `message` +Returns **[Object][54]** object with `isValid` and `message` ### setupOnerror @@ -844,7 +805,7 @@ without an `onError` argument. #### Parameters -- `onError` **[Function][100]** the onError function to be set on Ember.onerror +- `onError` **[Function][61]** the onError function to be set on Ember.onerror #### Examples @@ -879,198 +840,120 @@ QUnit.testDone(function() { [2]: #blur -[3]: #parameters +[3]: #click -[4]: #examples +[4]: #doubleclick -[5]: #click +[5]: #fillin -[6]: #parameters-1 +[6]: #focus -[7]: #examples-1 +[7]: #tap -[8]: #doubleclick +[8]: #triggerevent -[9]: #parameters-2 +[9]: #triggerkeyevent -[10]: #examples-2 +[10]: #typein -[11]: #fillin +[11]: #dom-query-helpers -[12]: #parameters-3 +[12]: #find -[13]: #examples-3 +[13]: #findall -[14]: #focus +[14]: #getrootelement -[15]: #parameters-4 +[15]: #routing-helpers -[16]: #examples-4 +[16]: #visit -[17]: #tap +[17]: #currentroutename -[18]: #parameters-5 +[18]: #currenturl -[19]: #examples-5 +[19]: #rendering-helpers -[20]: #triggerevent +[20]: #render -[21]: #parameters-6 +[21]: #clearrender -[22]: #examples-6 +[22]: #wait-helpers -[23]: #triggerkeyevent +[23]: #waitfor -[24]: #parameters-7 +[24]: #waituntil -[25]: #examples-7 +[25]: #settled -[26]: #typein +[26]: #issettled -[27]: #parameters-8 +[27]: #getsettledstate -[28]: #examples-8 +[28]: #pause-helpers -[29]: #dom-query-helpers +[29]: #pausetest -[30]: #find +[30]: #resumetest -[31]: #parameters-9 +[31]: #debug-helpers -[32]: #findall +[32]: #getdebuginfo -[33]: #parameters-10 +[33]: #test-framework-apis -[34]: #getrootelement +[34]: #setresolver -[35]: #routing-helpers +[35]: #getresolver -[36]: #visit +[36]: #setupcontext -[37]: #parameters-11 +[37]: #getcontext -[38]: #currentroutename +[38]: #setcontext -[39]: #currenturl +[39]: #unsetcontext -[40]: #rendering-helpers +[40]: #teardowncontext -[41]: #render +[41]: #setuprenderingcontext -[42]: #parameters-12 +[42]: #teardownrenderingcontext -[43]: #clearrender +[43]: #getapplication -[44]: #wait-helpers +[44]: #setapplication -[45]: #waitfor +[45]: #setupapplicationcontext -[46]: #parameters-13 +[46]: #teardownapplicationcontext -[47]: #waituntil +[47]: #validateerrorhandler -[48]: #parameters-14 +[48]: #setuponerror -[49]: #settled +[49]: #resetonerror -[50]: #issettled +[50]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String -[51]: #getsettledstate +[51]: https://developer.mozilla.org/docs/Web/API/Element -[52]: #pause-helpers +[52]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise -[53]: #pausetest +[53]: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent -[54]: #examples-9 +[54]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object -[55]: #resumetest +[55]: https://developer.mozilla.org/en-US/docs/Web/API/Blob -[56]: #debug-helpers +[56]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values -[57]: #getdebuginfo +[57]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode -[58]: #test-framework-apis +[58]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number -[59]: #setresolver +[59]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean -[60]: #parameters-15 +[60]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array -[61]: #getresolver - -[62]: #setupcontext - -[63]: #parameters-16 - -[64]: #getcontext - -[65]: #setcontext - -[66]: #parameters-17 - -[67]: #unsetcontext - -[68]: #teardowncontext - -[69]: #parameters-18 - -[70]: #setuprenderingcontext - -[71]: #parameters-19 - -[72]: #teardownrenderingcontext - -[73]: #parameters-20 - -[74]: #getapplication - -[75]: #setapplication - -[76]: #parameters-21 - -[77]: #setupapplicationcontext - -[78]: #parameters-22 - -[79]: #teardownapplicationcontext - -[80]: #parameters-23 - -[81]: #validateerrorhandler - -[82]: #parameters-24 - -[83]: #examples-10 - -[84]: #setuponerror - -[85]: #parameters-25 - -[86]: #examples-11 - -[87]: #resetonerror - -[88]: #examples-12 - -[89]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String - -[90]: https://developer.mozilla.org/docs/Web/API/Element - -[91]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise - -[92]: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent - -[93]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object - -[94]: https://developer.mozilla.org/en-US/docs/Web/API/Blob - -[95]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values - -[96]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode - -[97]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number - -[98]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean - -[99]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array - -[100]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function +[61]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function diff --git a/package.json b/package.json index 53406cedf..01d520b88 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "scripts": { "build": "ember build", "changelog": "lerna-changelog", - "docs": "scripts/precompile.sh && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml -f md -o API.md && ember ts:clean", + "docs": "scripts/precompile.sh && documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml --markdown-toc-max-depth 3 -f md -o API.md && ember ts:clean", "lint": "eslint --ext=js,ts --cache . && tsc -p tsconfig.json --noEmit", "start": "ember serve", "test": "ember test",