common/corpus-common-addon/tests/integration/components/doc-olac-test.js
author ymh <ymh.work@gmail.com>
Thu, 09 Feb 2017 15:05:36 +0100
changeset 504 4ab820b387da
parent 490 76da86cf9696
permissions -rw-r--r--
Correct the handling of created date. Should correct #0025744
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
});