simple-dir.js 530 B

123456789101112131415161718192021
  1. casper.test.begin('Simple Directive', 3, function (test) {
  2. casper
  3. .start('./fixtures/simple-dir.html', function () {
  4. test.assertSelectorHasText('.one', 'bind', 'object definition bind')
  5. test.assertSelectorHasText('.two', 'bind', 'function definition bind')
  6. this.evaluate(function () {
  7. /* global a */
  8. a.$destroy()
  9. })
  10. test.assertSelectorHasText('.one', 'unbind', 'object definition unbind')
  11. })
  12. .run(function () {
  13. test.done()
  14. })
  15. })