mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 17:20: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
0
vendor/plugins/selenium-on-rails/test_data/.hidden.html
vendored
Normal file
0
vendor/plugins/selenium-on-rails/test_data/.hidden.html
vendored
Normal file
0
vendor/plugins/selenium-on-rails/test_data/backup.html~
vendored
Normal file
0
vendor/plugins/selenium-on-rails/test_data/backup.html~
vendored
Normal file
|
|
@ -1,6 +1,6 @@
|
|||
<p>Testing plain HTML</p>
|
||||
<table>
|
||||
<tr><th colspan="3">Test HTML</th></tr>
|
||||
<tr><td>open</td><td>/selenium/setup</td><td> </td></tr>
|
||||
</table>
|
||||
<p>Testing plain HTML</p>
|
||||
<table>
|
||||
<tr><th colspan="3">Test HTML</th></tr>
|
||||
<tr><td>open</td><td>/selenium/setup</td><td> </td></tr>
|
||||
</table>
|
||||
<p>and it works...</p>
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Test case with own layout</title>
|
||||
<style type="text/css"> body { background-color: #ccc; } </style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr><th colspan="3">Test own layout</th></tr>
|
||||
<tr><td>open</td><td>/selenium/setup</td><td> </td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test case with own layout</title>
|
||||
<style type="text/css"> body { background-color: #ccc; } </style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr><th colspan="3">Test own layout</th></tr>
|
||||
<tr><td>open</td><td>/selenium/setup</td><td> </td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<h1>This should never be visible!</h1>
|
||||
<table>
|
||||
<tr><th colspan="3">HTML partial</th></tr>
|
||||
<tr><td>type</td><td>partial</td><td>HTML partial</td></tr>
|
||||
</table>
|
||||
<h1>This should never be visible!</h1>
|
||||
<table>
|
||||
<tr><th colspan="3">HTML partial</th></tr>
|
||||
<tr><td>type</td><td>partial</td><td>HTML partial</td></tr>
|
||||
</table>
|
||||
<p>Neither should this!</p>
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
type 'nesting', 'Nesting partial'
|
||||
type 'nesting', 'Nesting partial'
|
||||
include_partial 'partials/rsel', :hello => hello.reverse
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<h1>This should never be visible!</h1>
|
||||
<table>
|
||||
<tr><th colspan="3">RHTML partial</th></tr>
|
||||
<tr><td>type</td><td><%= hello %></td><td>RHTML partial</td></tr>
|
||||
</table>
|
||||
<h1>This should never be visible!</h1>
|
||||
<table>
|
||||
<tr><th colspan="3">RHTML partial</th></tr>
|
||||
<tr><td>type</td><td><%= hello %></td><td>RHTML partial</td></tr>
|
||||
</table>
|
||||
<p>Neither should this!</p>
|
||||
|
|
@ -1 +1 @@
|
|||
type hello, 'RSelenese partial'
|
||||
type hello, 'RSelenese partial'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
h1. This should not be visible!
|
||||
|
||||
|type|partial|Selenese partial|
|
||||
|
||||
h1. This should not be visible!
|
||||
|
||||
|type|partial|Selenese partial|
|
||||
|
||||
p. Neither should this!
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
include_partial 'partial', :source => title
|
||||
['html', 'rhtml', 'sel', 'rsel'].each do |format|
|
||||
include_partial "partials/#{format}", :hello => 'world'
|
||||
end
|
||||
include_partial 'partial', :source => title
|
||||
['html', 'rhtml', 'sel', 'rsel'].each do |format|
|
||||
include_partial "partials/#{format}", :hello => 'world'
|
||||
end
|
||||
include_partial 'partials/nesting', :hello => 'world'
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<table>
|
||||
<tr><th colspan="3"><%= @page_title %></th></tr>
|
||||
<% for page in ['/fi', '/fo', '/fum'] -%>
|
||||
<tr><td>open</td><td><%= page %></td><td> </td></tr>
|
||||
<% end -%>
|
||||
<%= render :partial => 'partial', :locals => {:source => 'RHTML'} %>
|
||||
<table>
|
||||
<tr><th colspan="3"><%= @page_title %></th></tr>
|
||||
<% for page in ['/fi', '/fo', '/fum'] -%>
|
||||
<tr><td>open</td><td><%= page %></td><td> </td></tr>
|
||||
<% end -%>
|
||||
<%= render :partial => 'partial', :locals => {:source => 'RHTML'} %>
|
||||
</table>
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
setup
|
||||
setup :keep_session
|
||||
test.setup :fixtures => :all
|
||||
setup :fixtures => [:foo, 'bar']
|
||||
setup :clear_tables => [:foo, :bar], :fixtures => :all
|
||||
assert_absolute_location :controller => 'selenium', :action => 'setup' #urls must be tested with a controller
|
||||
assert_title view.controller.controller_name #make sure we can access the view easily
|
||||
include_partial 'partial', :source => 'RSelenese'
|
||||
setup
|
||||
setup :keep_session
|
||||
test.setup :fixtures => :all
|
||||
setup :fixtures => [:foo, 'bar']
|
||||
setup :clear_tables => [:foo, :bar], :fixtures => :all
|
||||
assert_absolute_location :controller => 'selenium', :action => 'setup' #urls must be tested with a controller
|
||||
assert_title view.controller.controller_name #make sure we can access the view easily
|
||||
include_partial 'partial', :source => 'RSelenese'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Selenese *support*
|
||||
|
||||
|open|/selenium/setup|
|
||||
|goBack|
|
||||
|includePartial|partial|source=Selenese|
|
||||
|
||||
Selenese *support*
|
||||
|
||||
|open|/selenium/setup|
|
||||
|goBack|
|
||||
|includePartial|partial|source=Selenese|
|
||||
|
||||
works.
|
||||
Loading…
Add table
Add a link
Reference in a new issue