testcss.lpr 637 B

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