mirror of
				https://github.com/ether/etherpad-lite.git
				synced 2025-10-31 08:11:10 +01:00 
			
		
		
		
	Scroll down the list of tests after a test completed
This commit is contained in:
		
							parent
							
								
									a99ff139c9
								
							
						
					
					
						commit
						1b409d7b9d
					
				| @ -58,6 +58,13 @@ $(function(){ | |||||||
|   var WebdriverAndHtmlReporter = function(html_reporter){ |   var WebdriverAndHtmlReporter = function(html_reporter){ | ||||||
|     return function(runner){ |     return function(runner){ | ||||||
|       Base.call(this, runner); |       Base.call(this, runner); | ||||||
|  | 
 | ||||||
|  |       // Scroll down test display after each test
 | ||||||
|  |       mocha = $('#mocha')[0]; | ||||||
|  |       runner.on('test', function(){ | ||||||
|  |         mocha.scrollTop = mocha.scrollHeight; | ||||||
|  |       }); | ||||||
|  | 
 | ||||||
|       //initalize the html reporter first
 |       //initalize the html reporter first
 | ||||||
|       html_reporter(runner); |       html_reporter(runner); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user