author | ymh <ymh.work@gmail.com> |
Tue, 11 Jul 2017 09:49:26 +0200 | |
changeset 540 | 07239de796bb |
parent 490 | 76da86cf9696 |
permissions | -rw-r--r-- |
490
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import { moduleForComponent, test } from 'ember-qunit'; |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
import hbs from 'htmlbars-inline-precompile'; |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
moduleForComponent('doc-olac', 'Integration | Component | doc olac', { |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
integration: true |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
}); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
test('it renders', function(assert) { |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
// Set any properties with this.set('myProperty', 'value'); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
// Handle any actions with this.on('myAction', function(val) { ... }); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
this.render(hbs`{{doc-olac}}`); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
assert.equal(this.$().text().trim(), ''); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
// Template block usage: |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
this.render(hbs` |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
{{#doc-olac}} |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
template block text |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
{{/doc-olac}} |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
`); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
assert.equal(this.$().text().trim(), 'template block text'); |
76da86cf9696
External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
}); |