mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 22:59:15 +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;
|
||||
begin
|
||||
CompleteBlock('type'+LineEnding
|
||||
+' TTestClass = class(TObject)|',
|
||||
'type'+LineEnding
|
||||
+' TTestClass = class(TObject)'+LineEnding
|
||||
+' |end;');
|
||||
+' TTestClass = class(TObject)|',
|
||||
'type'+LineEnding
|
||||
+' TTestClass = class(TObject)'+LineEnding
|
||||
+' |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;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user