summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-02-16 16:09:01 +0100
committeranonym <anonym@riseup.net>2017-02-16 16:09:01 +0100
commit231834d8420ad7ba97db84bb24416f4335ae7285 (patch)
tree2d11e6469fcc0abad1b50444dc6a0bde7dc0c344 /features
parent15ed65bf57b53a47f21a0bec716a9c1783d42a57 (diff)
Test suite: improve variable names.
Diffstat (limited to 'features')
-rw-r--r--features/support/helpers/dogtail.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/features/support/helpers/dogtail.rb b/features/support/helpers/dogtail.rb
index 33c6fa3..21ddcf2 100644
--- a/features/support/helpers/dogtail.rb
+++ b/features/support/helpers/dogtail.rb
@@ -56,7 +56,7 @@ module Dogtail
@opts = opts
@opts[:user] ||= LIVE_USER
@find_code = "dogtail.tree.root.application('#{@app_name}')"
- init_script = [
+ script_lines = [
"import dogtail.config",
"import dogtail.tree",
"import dogtail.predicate",
@@ -66,7 +66,7 @@ module Dogtail
"dogtail.config.searchShowingOnly = True",
"#{@var} = #{@find_code}",
]
- run(init_script)
+ run(script_lines)
end
def to_s
@@ -145,11 +145,11 @@ module Dogtail
end
predicate_opts = self.class.args_to_s(args)
nodes_var = "nodes#{@@node_counter += 1}"
- find_script = [
+ find_script_lines = [
"#{nodes_var} = #{@var}.findChildren(dogtail.predicate.GenericPredicate(#{predicate_opts})#{findChildren_opts})",
"print(len(#{nodes_var}))",
]
- size = run(find_script).stdout.chomp.to_i
+ size = run(find_script_lines).stdout.chomp.to_i
return size.times.map do |i|
Node.new("#{nodes_var}[#{i}]", @opts)
end