@@ -6,7 +6,7 @@ var globalVar =
66 ( typeof window !== "undefined" && window ) ||
77 Function ( "return this" ) ( ) ;
88
9- globalVar . sendReference = function ( ) { } ;
9+ globalVar . savePdf = function ( ) { } ;
1010globalVar . loadBinaryResource = function ( ) { } ;
1111
1212var prefix = globalVar . isNode ? "/../" : "/base/test/" ;
@@ -26,7 +26,7 @@ if (globalVar.isNode === true) {
2626 return result ;
2727 } ;
2828} else {
29- globalVar . sendReference = function ( filename , data ) {
29+ globalVar . savePdf = function ( filename , data ) {
3030 const req = new XMLHttpRequest ( ) ;
3131 req . open ( "POST" , `http://localhost:9090${ filename } ` , true ) ;
3232 req . setRequestHeader ( "Content-Type" , "text/plain; charset=x-user-defined" ) ;
@@ -386,7 +386,7 @@ globalVar.comparePdf = function(actual, expectedFile, suite) {
386386 }
387387 } catch ( error ) {
388388 fail ( error . message ) ;
389- globalVar . sendReference (
389+ globalVar . savePdf (
390390 "/test/reference/" + expectedFile ,
391391 resetFile ( actual . replace ( / ^ \s + | \s + $ / g, "" ) )
392392 ) ;
@@ -402,7 +402,7 @@ globalVar.comparePdf = function(actual, expectedFile, suite) {
402402
403403 if ( differences . length > 0 ) {
404404 // Save the actual PDF for debugging
405- globalVar . sendReference (
405+ globalVar . savePdf (
406406 "/test/actual/" + expectedFile ,
407407 resetFile ( actual )
408408 ) ;
0 commit comments