component.js 531 B

1234567891011121314151617
  1. casper.test.begin('Components', 5, function (test) {
  2. casper
  3. .start('./fixtures/component.html')
  4. .then(function () {
  5. var expected = '123 Jack'
  6. test.assertSelectorHasText('#component-and-with', expected)
  7. test.assertSelectorHasText('#element-and-with', expected)
  8. test.assertSelectorHasText('#component', expected)
  9. test.assertSelectorHasText('#with', expected)
  10. test.assertSelectorHasText('#element', expected)
  11. })
  12. .run(function () {
  13. test.done()
  14. })
  15. })