testpas2js.pp 971 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 2014 by Michael Van Canneyt
  4. Unit tests runner for Pascal-to-Javascript converter class.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. program testpas2js;
  12. {$mode objfpc}{$H+}
  13. uses
  14. Classes, consoletestrunner, tcconverter, tcmodules;
  15. type
  16. TMyTestRunner = class(TTestRunner)
  17. protected
  18. end;
  19. var
  20. Application: TMyTestRunner;
  21. begin
  22. DefaultFormat:=fPlain;
  23. DefaultRunAllTests:=True;
  24. Application := TMyTestRunner.Create(nil);
  25. Application.Initialize;
  26. Application.Title:='Pascal to Javascript converter tests';
  27. Application.Run;
  28. Application.Free;
  29. end.