extend.js 762 B

12345678910111213141516171819
  1. casper.test.begin('Encapsulation & Inheritance', 7, function (test) {
  2. casper
  3. .start('./fixtures/extend.html', function () {
  4. test.assertSelectorHasText('.dir', 'directive works')
  5. test.assertSelectorHasText('.filter', 'filter works')
  6. test.assertSelectorHasText('.partial', 'partial works')
  7. test.assertSelectorHasText('.vm', 'component works')
  8. test.assertSelectorHasText('.vm-w-model', 'component with model works')
  9. test.assertSelectorHasText('#log', 'T created T ready T created C created T ready C ready', 'hook inheritance works')
  10. test.assertSelectorHasText('.cvm', 'component works', 'Child should have access to Parent options')
  11. })
  12. .run(function () {
  13. test.done()
  14. })
  15. })