mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 16:50:12 +01:00
Update selenium on rails using 'official' git repo
git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
parent
198f3240b8
commit
9b504b3e47
159 changed files with 16409 additions and 11794 deletions
|
|
@ -3,6 +3,7 @@ require File.dirname(__FILE__) + '/test_helper'
|
|||
class RendererTest < Test::Unit::TestCase
|
||||
def setup
|
||||
@controller = SeleniumController.new
|
||||
ActionController::Routing::Routes.draw
|
||||
@request = ActionController::TestRequest.new
|
||||
@response = ActionController::TestResponse.new
|
||||
@controller.layout_override =<<END
|
||||
|
|
@ -14,7 +15,7 @@ END
|
|||
|
||||
def test_route
|
||||
get :test_file, :testname => 'html.html' #initialize the controller
|
||||
assert_equal 'http://test.host/selenium/tests/suite/test_case.sel',
|
||||
assert_equal 'http://test.host/selenium/tests/suite%2Ftest_case.sel',
|
||||
@controller.url_for(:controller => 'selenium', :action => 'test_file', :testname => 'suite/test_case.sel')
|
||||
end
|
||||
|
||||
|
|
@ -53,6 +54,7 @@ END
|
|||
|
||||
def test_selenese
|
||||
get :test_file, :testname => 'selenese.sel'
|
||||
|
||||
assert_headers
|
||||
expected =<<END
|
||||
<html><head><title>test layout</title></head><body>
|
||||
|
|
@ -81,7 +83,7 @@ END
|
|||
<tr><td>open</td><td>/selenium/setup?keep_session=true</td><td> </td></tr>
|
||||
<tr><td>open</td><td>/selenium/setup?fixtures=all</td><td> </td></tr>
|
||||
<tr><td>open</td><td>/selenium/setup?fixtures=foo%2Cbar</td><td> </td></tr>
|
||||
<tr><td>open</td><td>/selenium/setup?fixtures=all&amp;clear_tables=foo%2Cbar</td><td> </td></tr>
|
||||
<tr><td>open</td><td>/selenium/setup?clear_tables=foo%2Cbar&amp;fixtures=all</td><td> </td></tr>
|
||||
<tr><td>assertAbsoluteLocation</td><td>exact:http://test.host/selenium/setup</td><td> </td></tr>
|
||||
<tr><td>assertTitle</td><td>selenium</td><td> </td></tr>
|
||||
<tr><td>assertTitle</td><td>Partial from RSelenese</td><td> </td></tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue