@@ -311,7 +311,7 @@ keyboard.
311
311
312
312
#### Parameters
313
313
314
- * ` options ` ** [ Object] [ 72 ] ?** optional tab behaviors (optional, default ` {} ` )
314
+ * ` options ` ** [ Object] [ 72 ] ?** optional tab behaviors
315
315
316
316
* ` options.backwards ` ** [ boolean] [ 71 ] ** indicates if the the user navigates backwards (optional, default ` false ` )
317
317
* ` options.unRestrainTabIndex ` ** [ boolean] [ 71 ] ** indicates if tabbing should throw an error when tabindex is greater than 0 (optional, default ` false ` )
@@ -574,6 +574,14 @@ Renders the provided template and appends it to the DOM.
574
574
* ` templateOrComponent ` ** (Template | Component)** the component (or template) to render
575
575
* ` options ` ** RenderOptions** options hash containing engine owner ({ owner: engineOwner })
576
576
577
+ #### Examples
578
+
579
+ Render a div element with the class 'container'.
580
+
581
+ ``` javascript
582
+ await render (hbs` <div class="container"></div>` );
583
+ ```
584
+
577
585
Returns ** [ Promise] [ 66 ] \< void>** resolves when settled
578
586
579
587
### clearRender
@@ -883,6 +891,17 @@ element).
883
891
884
892
* ` context ` ** TestContext** the context to setup for rendering
885
893
894
+ #### Examples
895
+
896
+ Rendering out a paragraph element containing the content 'hello', and then clearing that content via clearRender.
897
+
898
+ ``` javascript
899
+ await render (hbs` <p>Hello!</p>` );
900
+ assert .equal (this .element .textContent , ' Hello!' , ' has rendered content' );
901
+ await clearRender ();
902
+ assert .equal (this .element .textContent , ' ' , ' has rendered content' );
903
+ ```
904
+
886
905
Returns ** [ Promise] [ 66 ] \< RenderingTestContext>** resolves with the context that was setup
887
906
888
907
### getApplication
@@ -1241,23 +1260,23 @@ Returns **([Array][70]\<Warning> | [Promise][66]<[Array][70]\<Warning>>)** An ar
1241
1260
1242
1261
[ 54 ] : #getdeprecations
1243
1262
1244
- [ 55 ] : #examples-22
1263
+ [ 55 ] : #examples-24
1245
1264
1246
1265
[ 56 ] : #getdeprecationsduringcallback
1247
1266
1248
1267
[ 57 ] : #parameters-29
1249
1268
1250
- [ 58 ] : #examples-23
1269
+ [ 58 ] : #examples-25
1251
1270
1252
1271
[ 59 ] : #getwarnings
1253
1272
1254
- [ 60 ] : #examples-24
1273
+ [ 60 ] : #examples-26
1255
1274
1256
1275
[ 61 ] : #getwarningsduringcallback
1257
1276
1258
1277
[ 62 ] : #parameters-30
1259
1278
1260
- [ 63 ] : #examples-25
1279
+ [ 63 ] : #examples-27
1261
1280
1262
1281
[ 64 ] : https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
1263
1282
0 commit comments