mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:09:27 +02:00
pastojs: fixed test TestExternalClass_SameNamePublishedProperty
git-svn-id: trunk@47617 -
This commit is contained in:
parent
fc04a83ff5
commit
150e78c56a
@ -16981,6 +16981,7 @@ end;
|
|||||||
|
|
||||||
procedure TTestModule.TestExternalClass_SameNamePublishedProperty;
|
procedure TTestModule.TestExternalClass_SameNamePublishedProperty;
|
||||||
begin
|
begin
|
||||||
|
WithTypeInfo:=true;
|
||||||
StartProgram(false);
|
StartProgram(false);
|
||||||
Add([
|
Add([
|
||||||
'{$modeswitch externalclass}',
|
'{$modeswitch externalclass}',
|
||||||
@ -16996,10 +16997,14 @@ begin
|
|||||||
' end;',
|
' end;',
|
||||||
'begin',
|
'begin',
|
||||||
' JSwiper.new;',
|
' JSwiper.new;',
|
||||||
|
//' if typeinfo(JSwiper)=nil then ;',
|
||||||
'']);
|
'']);
|
||||||
ConvertProgram;
|
ConvertProgram;
|
||||||
CheckSource('TestExternalClass_SameNamePublishedProperty',
|
CheckSource('TestExternalClass_SameNamePublishedProperty',
|
||||||
LinesToStr([ // statements
|
LinesToStr([ // statements
|
||||||
|
'this.$rtti.$ExtClass("JSwiper", {',
|
||||||
|
' jsclass: "Swiper"',
|
||||||
|
'});',
|
||||||
'rtl.createClass(this, "TObject", null, function () {',
|
'rtl.createClass(this, "TObject", null, function () {',
|
||||||
' this.$init = function () {',
|
' this.$init = function () {',
|
||||||
' this.FSwiper = null;',
|
' this.FSwiper = null;',
|
||||||
|
Loading…
Reference in New Issue
Block a user