testcss.lpr 693 B

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