|
@@ -197,16 +197,16 @@ const pup = puppeteer.launch( {
|
|
|
|
|
|
/* Resolve render promise */
|
|
|
|
|
|
- window.chromeRenderStarted = true;
|
|
|
+ window._renderStarted = true;
|
|
|
await new Promise( function ( resolve ) {
|
|
|
|
|
|
- performance.wow = performance.wow || performance.now;
|
|
|
- let renderStart = performance.wow();
|
|
|
+ performance._now = performance._now || performance.now;
|
|
|
+ let renderStart = performance._now();
|
|
|
|
|
|
let waitingLoop = setInterval( function () {
|
|
|
|
|
|
- let renderEcceded = ( performance.wow() - renderStart > renderTimeout * attemptProgress );
|
|
|
- if ( window.chromeRenderFinished || renderEcceded ) {
|
|
|
+ let renderEcceded = ( performance._now() - renderStart > renderTimeout * attemptProgress );
|
|
|
+ if ( window._renderFinished || renderEcceded ) {
|
|
|
|
|
|
if ( renderEcceded ) {
|
|
|
|
|
@@ -229,7 +229,7 @@ const pup = puppeteer.launch( {
|
|
|
|
|
|
if ( ++ attemptId === maxAttemptId ) {
|
|
|
|
|
|
- console.red( `WTF? 'Network timeout' is small for your machine. file: ${ file } \n${ e }` );
|
|
|
+ console.red( `Something completely wrong. 'Network timeout' is small for your machine. file: ${ file } \n${ e }` );
|
|
|
failedScreenshots.push( file );
|
|
|
continue;
|
|
|
|
|
@@ -279,7 +279,7 @@ const pup = puppeteer.launch( {
|
|
|
} catch {
|
|
|
|
|
|
attemptId = maxAttemptId;
|
|
|
- console.red( `ERROR! Image sizes does not match in file: ${ file }` );
|
|
|
+ console.red( `Something completely wrong. Image sizes does not match in file: ${ file }` );
|
|
|
failedScreenshots.push( file );
|
|
|
continue;
|
|
|
|