fpc/packages/fcl-css/tests/testcss.lpr
Michaël Van Canneyt 5e9c294eda * PChar -> PAnsiChar
2023-07-15 18:22:40 +02:00

37 lines
693 B
ObjectPascal

program testcss;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}
cwstring,
{$ENDIF}
Classes, sysutils, consoletestrunner, tcCSSScanner, tcCSSParser, tcCSSTree,
tcCSSResolver;
type
{ TMyTestRunner }
TMyTestRunner = class(TTestRunner)
protected
// override the protected methods of TTestRunner to customize its behavior
end;
var
Application: TMyTestRunner;
Dir: String;
begin
DefaultFormat:=fPlain;
DefaultRunAllTests:=True;
Application := TMyTestRunner.Create(nil);
Dir:=ExtractFilePath(Application.ExeName);
if Dir<>'' then
SetCurrentDir(Dir);
Application.Initialize;
Application.Title := 'CSS tests runner';
Application.Run;
Application.Free;
end.