testcss.lpr 654 B

123456789101112131415161718192021222324252627282930313233
  1. program testcss;
  2. {$mode objfpc}{$H+}
  3. uses
  4. Classes, sysutils, consoletestrunner, tcCSSScanner, tcCSSParser, tcCSSTree,
  5. tcCSSResolver;
  6. type
  7. { TMyTestRunner }
  8. TMyTestRunner = class(TTestRunner)
  9. protected
  10. // override the protected methods of TTestRunner to customize its behavior
  11. end;
  12. var
  13. Application: TMyTestRunner;
  14. Dir: String;
  15. begin
  16. DefaultFormat:=fPlain;
  17. DefaultRunAllTests:=True;
  18. Application := TMyTestRunner.Create(nil);
  19. Dir:=ExtractFilePath(Application.ExeName);
  20. if Dir<>'' then
  21. SetCurrentDir(Dir);
  22. Application.Initialize;
  23. Application.Title := 'CSS tests runner';
  24. Application.Run;
  25. Application.Free;
  26. end.