nested-vms.js 886 B

1234567891011121314151617181920
  1. casper.test.begin('Nested Viewmodels', 7, function (test) {
  2. casper
  3. .start('./fixtures/nested-viewmodels.html', function () {
  4. test.assertSelectorHasText('.ancestor', 'Andy Johnson')
  5. test.assertSelectorHasText('.jack', 'Jack, son of Andy')
  6. test.assertSelectorHasText('.mike', 'Mike, son of Jack')
  7. test.assertSelectorHasText('.jason', 'Jason, son of Jack')
  8. test.assertSelectorHasText('.tim', 'Tim, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
  9. test.assertSelectorHasText('.tom', 'Tom, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
  10. test.assertSelectorHasText('.andrew', 'Andrew, son of Jason, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.')
  11. })
  12. .run(function () {
  13. test.done()
  14. })
  15. })