mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-01 02:53:40 +02:00
37 lines
693 B
ObjectPascal
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.
|