vue2/test/functional/specs/extend.js

19 lines
762 B
JavaScript
Raw Normal View History

2013-12-19 13:20:00 +08:00
casper.test.begin('Encapsulation & Inheritance', 7, function (test) {
casper
2013-12-19 13:20:00 +08:00
.start('./fixtures/extend.html', function () {
test.assertSelectorHasText('.dir', 'directive works')
test.assertSelectorHasText('.filter', 'filter works')
test.assertSelectorHasText('.partial', 'partial works')
test.assertSelectorHasText('.vm', 'component works')
2013-12-18 13:45:55 +08:00
test.assertSelectorHasText('.vm-w-model', 'component with model works')
2013-12-19 13:20:00 +08:00
test.assertSelectorHasText('#log', 'T created T ready T created C created T ready C ready', 'hook inheritance works')
test.assertSelectorHasText('.cvm', 'component works', 'Child should have access to Parent options')
})
.run(function () {
test.done()
})
})