tests_controller.rb 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class TestsController < ApplicationController
  3. # GET /tests/core
  4. def core
  5. respond_to do |format|
  6. format.html # index.html.erb
  7. end
  8. end
  9. # GET /tests/ui
  10. def ui
  11. respond_to do |format|
  12. format.html # index.html.erb
  13. end
  14. end
  15. # GET /tests/from
  16. def form
  17. respond_to do |format|
  18. format.html # index.html.erb
  19. end
  20. end
  21. # GET /tests/from_extended
  22. def form
  23. respond_to do |format|
  24. format.html # index.html.erb
  25. end
  26. end
  27. # GET /tests/table
  28. def table
  29. respond_to do |format|
  30. format.html # index.html.erb
  31. end
  32. end
  33. # GET /tests/html_utils
  34. def html_utils
  35. respond_to do |format|
  36. format.html # index.html.erb
  37. end
  38. end
  39. # GET /test/wait
  40. def wait
  41. sleep params[:sec].to_i
  42. result = { :success => true }
  43. render :json => result
  44. end
  45. end