Skip to content

Commit

Permalink
adding tasks for compiling atoms for ios-driver
Browse files Browse the repository at this point in the history
Conflicts:
	Rakefile
  • Loading branch information
lukeis committed Dec 28, 2013
1 parent 8d241f7 commit 80649a0
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,40 @@ end
file "cpp/iedriver/sizzle.h" => [ "//third_party/js/sizzle:sizzle:header" ] do
cp "build/third_party/js/sizzle/sizzle.h", "cpp/iedriver/sizzle.h"
end

task :sizzle_header => [ "cpp/iedriver/sizzle.h" ]

task :ios_driver => [
"//javascript/atoms:getVisibleText:ios",
"//javascript/atoms:isShown:ios",
"//javascript/atoms:click:ios",
"//javascript/atoms:back:ios",
"//javascript/atoms:forward:ios",
"//javascript/atoms:submit:ios",
"//javascript/atoms:refresh:ios",
"//javascript/atoms:xpath:ios",
"//javascript/atoms:xpaths:ios",
"//javascript/atoms:type:ios",
"//javascript/atoms:getAttribute:ios",
"//javascript/atoms:clear:ios",
"//javascript/atoms:isSelected:ios",
"//javascript/atoms:isEnabled:ios",
"//javascript/atoms:stringify:ios",
"//javascript/atoms:linkText:ios",
"//javascript/atoms:linkTexts:ios",
"//javascript/atoms:partialLinkText:ios",
"//javascript/atoms:partialLinkTexts:ios",
"//javascript/atoms:getLocationInView:ios",
"//javascript/atoms:getInteractableSize:ios",
"//javascript/atoms:scrollIntoView:ios",
"//javascript/atoms:getPageOffset:ios",
"//javascript/atoms:getFramedPageOffset:ios",
"//javascript/atoms:getPosition:ios",
"//javascript/atoms:getViewPortSize:ios",
"//javascript/atoms:getEffectiveStyle:ios",
"//javascript/atoms:setCursorAtTheEnd:ios"
]

file "build/javascript/deps.js" => FileList[
"third_party/closure/goog/**/*.js",
"third_party/js/wgxpath/**/*.js",
Expand Down
144 changes: 144 additions & 0 deletions javascript/atoms/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,147 @@ js_test(name = "test",
"//java/client/test/org/openqa/selenium/javascript",
"//java/server/test/org/openqa/selenium:server-with-tests:uber",
])

js_fragment( name = "getVisibleText",
module ="bot.dom",
function = "bot.dom.getVisibleText",
deps = [ "//javascript/atoms:all_js"])

js_fragment(name="isShown",
module="bot.dom",
function="bot.dom.isShown",
deps=["//javascript/atoms:all_js"])

js_fragment(name="click",
module="bot.action",
function="bot.action.click",
deps=["//javascript/atoms:all_js"])

js_fragment(name="back",
module="bot.window",
function="bot.window.back",
deps=["//javascript/atoms:all_js"])

js_fragment(name="forward",
module="bot.window",
function="bot.window.forward",
deps=["//javascript/atoms:all_js"])

js_fragment(name="submit",
module="bot.action",
function="bot.action.submit",
deps=["//javascript/atoms:all_js"])


js_fragment(name="refresh",
module="bot.window",
function="bot.window.refresh",
deps=["//javascript/atoms:all_js"])

js_fragment(name="xpath",
module="bot.locators.xpath",
function="bot.locators.xpath.single",
deps=["//javascript/atoms:all_js"])


js_fragment(name="xpaths",
module="bot.locators.xpath",
function="bot.locators.xpath.many",
deps=["//javascript/atoms:all_js"])


js_fragment(name="type",
module="bot.action",
function="bot.action.type",
deps=["//javascript/atoms:all_js"])


js_fragment(name="getAttribute",
module="bot.dom",
function="bot.dom.getAttribute",
deps=["//javascript/atoms:all_js"])

js_fragment(name="clear",
module="bot.action",
function="bot.action.clear",
deps=["//javascript/atoms:all_js"])

js_fragment(name="isSelected",
module="bot.dom",
function="bot.dom.isSelected",
deps=["//javascript/atoms:all_js"])

js_fragment(name="isEnabled",
module="bot.dom",
function="bot.dom.isEnabled",
deps=["//javascript/atoms:all_js"])

js_fragment(name="stringify",
module="bot.json",
function="bot.json.stringify",
deps=["//javascript/atoms:all_js"])

js_fragment(name="linkText",
module="bot.locators.linkText",
function="bot.locators.linkText.single",
deps=["//javascript/atoms:all_js"])

js_fragment(name="linkTexts",
module="bot.locators.linkText",
function="bot.locators.linkText.many",
deps=["//javascript/atoms:all_js"])

js_fragment(name="partialLinkText",
module="bot.locators.linkText",
function="bot.locators.partialLinkText.single",
deps=["//javascript/atoms:all_js"])

js_fragment(name="partialLinkTexts",
module="bot.locators.linkText",
function="bot.locators.partialLinkText.many",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getLocationInView",
module="bot.dom",
function="bot.dom.getLocationInView",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getInteractableSize",
module="bot.window",
function="bot.window.getInteractableSize",
deps=["//javascript/atoms:all_js"])

js_fragment(name="scrollIntoView",
module="bot.action",
function="bot.action.scrollIntoView",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getPageOffset",
module="bot.dom",
function="bot.dom.getPageOffset",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getFramedPageOffset",
module="bot.dom",
function="bot.dom.getFramedPageOffset",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getPosition",
module="bot.dom",
function="bot.dom.getPosition",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getViewPortSize",
module="bot.dom",
function="bot.dom.getViewPortSize",
deps=["//javascript/atoms:all_js"])

js_fragment(name="setCursorAtTheEnd",
module="bot.Keyboard",
function="bot.Keyboard.setCursorAtTheEnd",
deps=["//javascript/atoms:all_js"])

js_fragment(name="getEffectiveStyle",
module="bot.dom",
function="bot.dom.getEffectiveStyle",
deps=["//javascript/atoms:all_js"])

0 comments on commit 80649a0

Please sign in to comment.