mirror of
				https://github.com/niklasvh/html2canvas.git
				synced 2023-08-10 21:13:10 +03:00 
			
		
		
		
	Remove animations from reftests
This commit is contained in:
		| @@ -82,7 +82,12 @@ export default class NodeContainer { | ||||
|     image: ?string; | ||||
|     index: number; | ||||
|  | ||||
|     constructor(node: HTMLElement, parent: ?NodeContainer, imageLoader: ImageLoader, index: number) { | ||||
|     constructor( | ||||
|         node: HTMLElement, | ||||
|         parent: ?NodeContainer, | ||||
|         imageLoader: ImageLoader, | ||||
|         index: number | ||||
|     ) { | ||||
|         this.parent = parent; | ||||
|         this.index = index; | ||||
|         this.childNodes = []; | ||||
|   | ||||
| @@ -20,7 +20,7 @@ | ||||
|     <ul class="fa-ul"> | ||||
|         <li><i class="fa-li fa fa-check-square"></i>List icons</li> | ||||
|         <li><i class="fa-li fa fa-check-square"></i>can be used</li> | ||||
|         <li><i class="fa-li fa fa-spinner fa-spin"></i>as bullets</li> | ||||
|         <li><i class="fa-li fa fa-spinner"></i>as bullets</li> | ||||
|         <li><i class="fa-li fa fa-square"></i>in lists</li> | ||||
|     </ul> | ||||
|  | ||||
|   | ||||
| @@ -62,9 +62,8 @@ Text: rgb(0,0,0) normal normal 400 16px FontAwesome | ||||
| Text: rgb(0,0,0) normal normal 400 16px Arial | ||||
|   [42, 176]: as | ||||
|   [63, 176]: bullets | ||||
| Transform: (24, 182) [0.97, 0.26, -0.26, 0.97, 0, 0] | ||||
|   Text: rgb(0,0,0) normal normal 400 16px FontAwesome | ||||
|     [16, 177]:  | ||||
| Text: rgb(0,0,0) normal normal 400 16px FontAwesome | ||||
|   [18, 178]:  | ||||
| Text: rgb(0,0,0) normal normal 400 16px Arial | ||||
|   [42, 194]: in | ||||
|   [59, 194]: lists | ||||
|   | ||||
| @@ -40,9 +40,14 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1; | ||||
|                 promise.then(function(output) { | ||||
|                     var canvas = Array.isArray(targets) ? output[0] : output; | ||||
|                     if (Array.isArray(targets)) { | ||||
|                         console.log(output[1].split('\n').map(function(line, i) { | ||||
|                             return (i + 1) + ':' + line; | ||||
|                         }).join('\n')); | ||||
|                         console.log( | ||||
|                             output[1] | ||||
|                                 .split('\n') | ||||
|                                 .map(function(line, i) { | ||||
|                                     return i + 1 + ':' + line; | ||||
|                                 }) | ||||
|                                 .join('\n') | ||||
|                         ); | ||||
|                     } | ||||
|                     var $canvas = $(canvas), | ||||
|                         finishTime = new Date(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Niklas von Hertzen
					Niklas von Hertzen