tests_controller.rb 683 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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/table
  22. def table
  23. respond_to do |format|
  24. format.html # index.html.erb
  25. end
  26. end
  27. # GET /test/wait
  28. def wait
  29. sleep params[:sec].to_i
  30. result = { :success => true }
  31. render :json => result
  32. end
  33. end