mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 01:10:25 +02:00
pastojs: fixed tests
This commit is contained in:
parent
6c1c4a66e8
commit
a46261bc15
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user