pastojs: fixed tests

This commit is contained in:
mattias 2021-09-19 17:03:20 +02:00
parent 6c1c4a66e8
commit a46261bc15

View File

@ -602,7 +602,8 @@ begin
' $mod.$main = function () {',
' rtl.checkVersion('+IntToStr((VersionMajor*100+VersionMinor)*100+VersionRelease)+');',
' };',
'});']);
'});',
'//# sourceMappingURL=test1.js.map']);
if not CheckSrcDiff(ExpectedSrc,aFile.Source,s) then
Fail('TTestCLI_Precompile.TestPCU_CheckVersionMain src diff: '+s);
end;
@ -632,7 +633,8 @@ begin
' rtl.checkVersion('+IntToStr((VersionMajor*100+VersionMinor)*100+VersionRelease)+');',
' pas.system.Writeln();',
' };',
'});']);
'});',
'//# sourceMappingURL=test1.js.map']);
if not CheckSrcDiff(ExpectedSrc,aFile.Source,s) then
Fail('TTestCLI_Precompile.TestPCU_CheckVersionMain src diff: '+s);
end;
@ -659,7 +661,8 @@ begin
' "use strict";',
' rtl.checkVersion('+VerStr+');',
' var $mod = this;',
'});']);
'});',
'//# sourceMappingURL=system.js.map']);
if not CheckSrcDiff(ExpectedSrc,aFile.Source,s) then
Fail('TTestCLI_Precompile.TestPCU_CheckVersionMain src diff: '+s);
end;