mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +02:00
tests: codetools: complete block
git-svn-id: trunk@30211 -
This commit is contained in:
parent
bbeedd1dd9
commit
61fd02d902
@ -113,10 +113,40 @@ end;
|
|||||||
procedure TTestCodetoolsCompleteBlock.TestCompleteBlockClassStart;
|
procedure TTestCodetoolsCompleteBlock.TestCompleteBlockClassStart;
|
||||||
begin
|
begin
|
||||||
CompleteBlock('type'+LineEnding
|
CompleteBlock('type'+LineEnding
|
||||||
+' TTestClass = class(TObject)|',
|
+' TTestClass = class(TObject)|',
|
||||||
'type'+LineEnding
|
'type'+LineEnding
|
||||||
+' TTestClass = class(TObject)'+LineEnding
|
+' TTestClass = class(TObject)'+LineEnding
|
||||||
+' |end;');
|
+' |end;');
|
||||||
|
CompleteBlock('type'+LineEnding
|
||||||
|
+' TTestClass = class(TObject)|'+LineEnding
|
||||||
|
+' TSecondClass =',
|
||||||
|
'type'+LineEnding
|
||||||
|
+' TTestClass = class(TObject)'+LineEnding
|
||||||
|
+' |end;'+LineEnding
|
||||||
|
+LineEnding
|
||||||
|
+' TSecondClass =');
|
||||||
|
CompleteBlock('type'+LineEnding
|
||||||
|
+' TTestClass = class(TObject)|'+LineEnding
|
||||||
|
+'implementation',
|
||||||
|
'type'+LineEnding
|
||||||
|
+' TTestClass = class(TObject)'+LineEnding
|
||||||
|
+' |end;'+LineEnding
|
||||||
|
+LineEnding
|
||||||
|
+'implementation');
|
||||||
|
CompleteBlock('begin'+LineEnding
|
||||||
|
+' while do begin|'+LineEnding
|
||||||
|
+'end.',
|
||||||
|
'begin'+LineEnding
|
||||||
|
+' while do begin|'+LineEnding
|
||||||
|
+' end;'+LineEnding
|
||||||
|
+'end.');
|
||||||
|
CompleteBlock('begin'+LineEnding
|
||||||
|
+' repeat|'+LineEnding
|
||||||
|
+'end.',
|
||||||
|
'begin'+LineEnding
|
||||||
|
+' repeat|'+LineEnding
|
||||||
|
+' until ;'+LineEnding
|
||||||
|
+'end.');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
Loading…
Reference in New Issue
Block a user