derby-casperjs
Advanced tools
Comparing version 1.0.11 to 1.0.13
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _, loadOnce; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var PWD, _, fs, system; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ casper.clickText = function(text) { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _, __operation, model, uuid; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _, shotIndex; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -14,8 +14,13 @@ var _, cssToXPath, xpath; | ||
text: function() { | ||
var selector, text; | ||
var returnSelectorNode, selector, text; | ||
if (arguments.length === 1) { | ||
return xpath("//text()[contains(., \'" + arguments[0] + "\')]"); | ||
} else { | ||
} else if (arguments.length === 2 || (arguments.length === 3 && !arguments[2])) { | ||
selector = arguments[0], text = arguments[1]; | ||
return xpath(cssToXPath(selector) + ("//text()[contains(., \'" + text + "\')]")); | ||
} else if (arguments.length === 3) { | ||
selector = arguments[0], text = arguments[1], returnSelectorNode = arguments[2]; | ||
return xpath(cssToXPath(selector) + ("[contains(., \'" + text + "\')]")); | ||
} else { | ||
throw new Error("Invalid amount of arguments provided - " + arguments.length); | ||
} | ||
@@ -22,0 +27,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var _; |
{ | ||
"name": "derby-casperjs", | ||
"version": "1.0.11", | ||
"version": "1.0.13", | ||
"description": "Helpers and tweaks for Casper.js to test Derby.js apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.2 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ module.exports = function(app, waitTimeout) { |
Sorry, the diff of this file is not supported yet
17666
269