mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 21:46:13 +02:00
* Webassembly also has reversed clean - most likely 32/64 bits issue, not delphi/FPC issue
This commit is contained in:
parent
e6c7efe057
commit
e4ded6e277
@ -449,12 +449,24 @@ begin
|
||||
DoneExpectKeys;
|
||||
end;
|
||||
|
||||
Const
|
||||
{$IFDEF FPC}
|
||||
{$IFNDEF CPUWASM}
|
||||
ReverseDeleteNotification = True;
|
||||
{$ElSE}
|
||||
ReverseDeleteNotification = False;
|
||||
{$ENDIF}
|
||||
{$ELSE}
|
||||
ReverseDeleteNotification = False;
|
||||
{$ENDIF}
|
||||
|
||||
procedure TTestSimpleDictionary.TestNotificationDelete;
|
||||
|
||||
|
||||
begin
|
||||
DoAdd(3);
|
||||
Dict.OnKeyNotify:=@DoKeyNotify;
|
||||
SetExpectKeys('Clear',[1,2,3],[cnRemoved,cnRemoved,cnRemoved],{$IFDEF FPC}true{$ELSE}False{$endif});
|
||||
SetExpectKeys('Clear',[1,2,3],[cnRemoved,cnRemoved,cnRemoved],ReverseDeleteNotification);
|
||||
Dict.Clear;
|
||||
DoneExpectKeys;
|
||||
end;
|
||||
@ -471,7 +483,7 @@ procedure TTestSimpleDictionary.TestValueNotificationDelete;
|
||||
begin
|
||||
DoAdd(3);
|
||||
Dict.OnValueNotify:=@DoValueNotify;
|
||||
SetExpectValues('Clear',['1','2','3'],[cnRemoved,cnRemoved,cnRemoved],{$IFDEF FPC}true{$ELSE}False{$endif});
|
||||
SetExpectValues('Clear',['1','2','3'],[cnRemoved,cnRemoved,cnRemoved],ReverseDeleteNotification);
|
||||
Dict.Clear;
|
||||
DoneExpectValues;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user