Skip to content

Commit

Permalink
Renamed generated_driver.rb to legacy_driver.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Hanrigou committed Jan 12, 2010
1 parent 35c873e commit 41710e4
Show file tree
Hide file tree
Showing 5 changed files with 1,716 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,7 +4,6 @@ target
pkg
doc
.svn
lib/selenium/client/generated_driver.rb
*.ipr
*.iml
*.iws
Expand Down
11 changes: 2 additions & 9 deletions Rakefile
Expand Up @@ -14,7 +14,7 @@ require 'spec/rake/spectask'
require 'selenium/rake/tasks'

CLEAN.include("COMMENTS")
CLEAN.include('lib/selenium/client/generated_driver.rb', '**/*.log', "target", "pkg", "test/integration/reporting/dummy_project/target")
CLEAN.include('**/*.log', "target", "pkg", "test/integration/reporting/dummy_project/target")

if ENV["SELENIUM_RC_JAR"]
# User override
Expand Down Expand Up @@ -57,17 +57,11 @@ file "target/iedoc.xml" do
end
end

desc "Generate driver from iedoc.xml"
file "lib/selenium/client/generated_driver.rb" => [ "target/iedoc.xml" ] do
sh "ant generate-sources"
end

desc "Run unit tests"
Rake::TestTask.new(:'test:unit') do |t|
t.test_files = FileList['test/unit/**/*_tests.rb']
t.warning = true
end
task :"test:unit" => "lib/selenium/client/generated_driver.rb"

Selenium::Rake::RemoteControlStartTask.new do |rc|
rc.port = 4444
Expand Down Expand Up @@ -99,7 +93,6 @@ Spec::Rake::SpecTask.new("test:integration") do |t|
t.spec_opts << "--format=Selenium::RSpec::SeleniumTestReportFormatter:./target/integration_tests_report.html"
t.spec_opts << "--format=progress"
end
task :"test:integration" => ["lib/selenium/client/generated_driver.rb"]

begin
gem "deep_test", ">=1.2.1"
Expand Down Expand Up @@ -223,7 +216,7 @@ Rake::GemPackageTask.new(specification) do |package|
end

desc "Build the RubyGem"
task :gem => "lib/selenium/client/generated_driver.rb"
task :gem

desc "Generate documentation"
Rake::RDocTask.new("rdoc") do |rdoc|
Expand Down
2 changes: 1 addition & 1 deletion lib/selenium/client.rb
Expand Up @@ -13,7 +13,7 @@
require File.expand_path(File.dirname(__FILE__) + '/command_error')
require File.expand_path(File.dirname(__FILE__) + '/protocol_error')
require File.expand_path(File.dirname(__FILE__) + '/client/protocol')
require File.expand_path(File.dirname(__FILE__) + '/client/generated_driver')
require File.expand_path(File.dirname(__FILE__) + '/client/legacy_driver')
require File.expand_path(File.dirname(__FILE__) + '/client/javascript_expression_builder')
require File.expand_path(File.dirname(__FILE__) + '/client/javascript_frameworks/prototype')
require File.expand_path(File.dirname(__FILE__) + '/client/javascript_frameworks/jquery')
Expand Down

0 comments on commit 41710e4

Please sign in to comment.