You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: API.md
+20-22
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ Emulating filling an input with text using `fillIn`
223
223
fillIn('input', 'hello world');
224
224
```
225
225
226
-
Returns **[Promise][66]<([Element][65] | void)>** resolves when the application is settled
226
+
Returns **[Promise][66]\<void>** resolves when the application is settled
227
227
228
228
### focus
229
229
@@ -376,7 +376,7 @@ Emulating tapping a button using `tap`
376
376
tap('button');
377
377
```
378
378
379
-
Returns **[Promise][66]<([Event][73] | [Array][70]<[Event][73]> | void)>** resolves when settled
379
+
Returns **[Promise][66]\<void>** resolves when settled
380
380
381
381
### triggerEvent
382
382
@@ -394,7 +394,7 @@ Using `triggerEvent` to upload a file
394
394
395
395
When using `triggerEvent` to upload a file the `eventType` must be `change` and you must pass the
396
396
`options` param as an object with a key `files` containing an array of
397
-
[Blob][74].
397
+
[Blob][73].
398
398
399
399
```javascript
400
400
triggerEvent(
@@ -406,8 +406,8 @@ triggerEvent(
406
406
407
407
Using `triggerEvent` to upload a dropped file
408
408
409
-
When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API][75],
410
-
you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File][76].
409
+
When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API][74],
410
+
you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File][75].
411
411
412
412
```javascript
413
413
triggerEvent(
@@ -426,8 +426,8 @@ Returns **[Promise][66]\<void>** resolves when the application is settled
426
426
### triggerKeyEvent
427
427
428
428
Triggers a keyboard event of given type in the target element.
429
-
It also requires the developer to provide either a string with the [`key`][77]
430
-
or the numeric [`keyCode`][78] of the pressed key.
429
+
It also requires the developer to provide either a string with the [`key`][76]
430
+
or the numeric [`keyCode`][77] of the pressed key.
431
431
Optionally the user can also provide a POJO with extra modifiers for the event.
432
432
433
433
#### Parameters
@@ -596,7 +596,7 @@ while *not* settled (e.g. "loading" or "pending" states).
596
596
597
597
#### Parameters
598
598
599
-
*`callback`**[Function][79]** the callback to use for testing when waiting should stop
599
+
*`callback`**[Function][78]** the callback to use for testing when waiting should stop
600
600
*`options`**[Object][72]?** options used to override defaults (optional, default `{}`)
601
601
602
602
*`options.timeout`**[number][69]** the maximum amount of time to wait (optional, default `1000`)
@@ -856,9 +856,9 @@ element).
856
856
857
857
#### Parameters
858
858
859
-
*`context`**[Object][72]** the context to setup for rendering
859
+
*`context`**TestContext** the context to setup for rendering
860
860
861
-
Returns **[Promise][66]<[Object][72]>** resolves with the context that was setup
861
+
Returns **[Promise][66]\<RenderingTestContext>** resolves with the context that was setup
862
862
863
863
### getApplication
864
864
@@ -906,7 +906,7 @@ everything is on fire...
906
906
907
907
#### Parameters
908
908
909
-
*`callback`**[Function][79]** the callback to validate (optional, default `Ember.onerror`)
909
+
*`callback`**[Function][78]** the callback to validate (optional, default `Ember.onerror`)
910
910
911
911
#### Examples
912
912
@@ -931,7 +931,7 @@ without an `onError` argument.
931
931
932
932
#### Parameters
933
933
934
-
*`onError`**[Function][79]** the onError function to be set on Ember.onerror
934
+
*`onError`**[Function][78]** the onError function to be set on Ember.onerror
935
935
936
936
#### Examples
937
937
@@ -1018,7 +1018,7 @@ Returns deprecations which have occured so far for a the current test context
1018
1018
1019
1019
### Parameters
1020
1020
1021
-
*`callback`**[Function][79]?** The callback that when executed will have its DeprecationFailure recorded
1021
+
*`callback`**[Function][78]?** The callback that when executed will have its DeprecationFailure recorded
1022
1022
1023
1023
### Examples
1024
1024
@@ -1076,7 +1076,7 @@ Returns warnings which have occured so far for a the current test context
1076
1076
1077
1077
### Parameters
1078
1078
1079
-
*`callback`**[Function][79]?** The callback that when executed will have its warnings recorded
1079
+
*`callback`**[Function][78]?** The callback that when executed will have its warnings recorded
1080
1080
1081
1081
### Examples
1082
1082
@@ -1252,16 +1252,14 @@ Returns **([Array][70]\<Warning> | [Promise][66]<[Array][70]\<Warning>>)** An ar
0 commit comments