Remove animations from reftests

This commit is contained in:
Niklas von Hertzen 2017-08-09 12:05:16 +08:00
parent 77393074ba
commit edebe082f3
4 changed files with 17 additions and 8 deletions

View File

@ -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 = [];

View File

@ -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>

View File

@ -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

View File

@ -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();