mirror of https://github.com/vuejs/vue.git
				
				
				
			
		
			
	
	
		
			19 lines
		
	
	
		
			762 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			762 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | casper.test.begin('Encapsulation & Inheritance', 7, function (test) { | ||
|  |      | ||
|  |     casper | ||
|  |     .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') | ||
|  |         test.assertSelectorHasText('.vm-w-model', 'component with model works') | ||
|  | 
 | ||
|  |         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() | ||
|  |     }) | ||
|  | 
 | ||
|  | }) |