Skip to content

Commit

Permalink
SimonStewart: Starting to move the JS code under the javascript direc…
Browse files Browse the repository at this point in the history
…tory

r11261
  • Loading branch information
shs96c committed Feb 2, 2011
1 parent 3a5348b commit 3b6e95e
Show file tree
Hide file tree
Showing 175 changed files with 2,810 additions and 2,876 deletions.
14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ task :iphone_client => ['//java/client/src/org/openqa/selenium/iphone']
task :iphone => [:iphone_server, :iphone_client]
task :'selenium-server-standalone' => ["//java/server/src/org/openqa/selenium/remote/server:server:uber"]

task :ide => [ "//ide:selenium-ide" ]
task :ide => [ "//ide:selenium-ide-multi" ]
task :ide_proxy_setup => [ "//common/src/js/selenium:core", "se_ide:setup_proxy" ]
task :ide_proxy_remove => [ "se_ide:remove_proxy" ]

Expand Down Expand Up @@ -199,14 +199,14 @@ task :dotnet => [ "//dotnet:ie", "//dotnet:firefox", "//dotnet:chrome", "//dotne
# Generate a C++ Header file for mapping between magic numbers and #defines
# in the C++ code.
ie_generate_type_mapping(:name => "ie_result_type_cpp",
:src => "jobbie/src/common/result_types.txt",
:src => "cpp/IEDriver/result_types.txt",
:type => "cpp",
:out => "cpp/IEDriver/IEReturnTypes.h")

# Generate a Java class for mapping between magic numbers and Java static
# class members describing them.
ie_generate_type_mapping(:name => "ie_result_type_java",
:src => "jobbie/src/common/result_types.txt",
:src => "cpp/IEDriver/result_types.txt",
:type => "java",
:out => "java/client/src/org/openqa/selenium/ie/IeReturnTypes.java")

Expand Down Expand Up @@ -478,9 +478,9 @@ file "cpp/IEDriver/sizzle.h" => [ "//third_party/js/sizzle:sizzle:header" ] do
end
task :sizzle_header => [ "cpp/IEDriver/sizzle.h" ]

file "common/test/js/deps.js" => FileList["third_party/closure/goog/**/*.js", "common/src/js/**/*.js"] do
file "javascript/deps.js" => FileList["third_party/closure/goog/**/*.js", "javascript/**/*.js"] do
our_cmd = "java -jar third_party/py/jython.jar third_party/closure/bin/calcdeps.py "
our_cmd << "--output_mode=deps --path=common/src/js --path=common/test/js "
our_cmd << "--output_mode=deps --path=javascript "
our_cmd << "--dep=third_party/closure/goog"

# Generate the deps. The file paths will be as they appear on the filesystem,
Expand All @@ -493,11 +493,11 @@ file "common/test/js/deps.js" => FileList["third_party/closure/goog/**/*.js", "c
line = line.gsub("\\\\", "/")
output << line.gsub(/common\/(.*)\/js/, 'js/\1')
end
File.open("common/test/js/deps.js", "w") do |f| f.write(output); end
File.open("javascript/deps.js", "w") do |f| f.write(output); end
end

desc "Calculate dependencies required for testing the automation atoms"
task :calcdeps => "common/test/js/deps.js"
task :calcdeps => "javascript/deps.js"

def version
`svn info | grep Revision | awk -F: '{print $2}' | tr -d '[:space:]' | tr -d '\n'`
Expand Down
18 changes: 0 additions & 18 deletions common/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,10 @@ rake_task(
out = "common/src/js/extension/dommessenger.js"
)

js_deps(name = "bot",
srcs = [ "src/js/bot/**/*.js" ])

js_binary(name = "atoms",
type = "script",
closure = "true",
deps = [
":bot"
])

rake_file(
name = "js_core",
src = "src/js/core")

rake_file(
name = "js_jsunit",
src = "src/js/jsunit")

rake_file(
name = "test_runner_html",
src = "src/js/core/TestRunner.html")

rake_file(
name = "remote_runner_html",
src = "src/js/core/RemoteRunner.html")
162 changes: 81 additions & 81 deletions common/test/js/deps.js

Large diffs are not rendered by default.

2,654 changes: 1,327 additions & 1,327 deletions cpp/IEDriver/atoms.h

Large diffs are not rendered by default.

File renamed without changes.
Loading

0 comments on commit 3b6e95e

Please sign in to comment.