run_loop 1.1.1.pre9 → 1.2.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/run_loop/version.rb +1 -1
- data/scripts/calabash_script_uia.js +228 -204
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15eee499a372a51db5f46a5f922da9d776075fd6
|
4
|
+
data.tar.gz: c11c9303daa2a189a3e83d0f20565d89aaac8836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90aba28289c9d7ffaf2eb8724b5c25f1feaa068c7a1c8989ae7deec311ba71362e2675707e93ce8d031583e17e161b76026cc5ac611c66614bd15d4048eb66fa
|
7
|
+
data.tar.gz: 3d6913e3023a1a09c9e4a1a808a918e4b1ceda4a9a0b1ace9a693944254e54460ed7f47167f6d443213a873aba8a17e9021509fdec0910f14a29d95690e49e40
|
data/lib/run_loop/version.rb
CHANGED
@@ -25742,23 +25742,23 @@ goog.require("calabash_script.uia");
|
|
25742
25742
|
goog.require("calabash_script.utils");
|
25743
25743
|
calabash_script.utils.target.call(null).setTimeout(0);
|
25744
25744
|
cljs.core._STAR_print_fn_STAR_ = function() {
|
25745
|
-
var
|
25745
|
+
var G__6613__delegate = function(args) {
|
25746
25746
|
return calabash_script.log.log.call(null, cljs.core.apply.call(null, cljs.core.str, args));
|
25747
25747
|
};
|
25748
|
-
var
|
25748
|
+
var G__6613 = function(var_args) {
|
25749
25749
|
var args = null;
|
25750
25750
|
if (arguments.length > 0) {
|
25751
25751
|
args = cljs.core.array_seq(Array.prototype.slice.call(arguments, 0), 0);
|
25752
25752
|
}
|
25753
|
-
return
|
25753
|
+
return G__6613__delegate.call(this, args);
|
25754
25754
|
};
|
25755
|
-
|
25756
|
-
|
25757
|
-
var args = cljs.core.seq(
|
25758
|
-
return
|
25755
|
+
G__6613.cljs$lang$maxFixedArity = 0;
|
25756
|
+
G__6613.cljs$lang$applyTo = function(arglist__6614) {
|
25757
|
+
var args = cljs.core.seq(arglist__6614);
|
25758
|
+
return G__6613__delegate(args);
|
25759
25759
|
};
|
25760
|
-
|
25761
|
-
return
|
25760
|
+
G__6613.cljs$core$IFn$_invoke$arity$variadic = G__6613__delegate;
|
25761
|
+
return G__6613;
|
25762
25762
|
}();
|
25763
25763
|
UIAElement.prototype.cljs$core$ISeqable$ = true;
|
25764
25764
|
UIAElement.prototype.cljs$core$ISeqable$_seq$arity$1 = function(this$) {
|
@@ -25778,17 +25778,17 @@ calabash_script.core.duration_exceeds_QMARK_ = function duration_exceeds_QMARK_(
|
|
25778
25778
|
var dur_sec = (end - start) / 1E3;
|
25779
25779
|
return dur_sec >= max;
|
25780
25780
|
};
|
25781
|
-
calabash_script.core.wait_for = function wait_for(
|
25782
|
-
var
|
25783
|
-
var
|
25784
|
-
var options =
|
25785
|
-
var screenshot = cljs.core.get.call(null,
|
25786
|
-
var message = cljs.core.get.call(null,
|
25787
|
-
var post_timeout = cljs.core.get.call(null,
|
25788
|
-
var retry_frequency = cljs.core.get.call(null,
|
25789
|
-
var timeout = cljs.core.get.call(null,
|
25781
|
+
calabash_script.core.wait_for = function wait_for(p__6615, pred) {
|
25782
|
+
var map__6617 = p__6615;
|
25783
|
+
var map__6617__$1 = cljs.core.seq_QMARK_.call(null, map__6617) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6617) : map__6617;
|
25784
|
+
var options = map__6617__$1;
|
25785
|
+
var screenshot = cljs.core.get.call(null, map__6617__$1, new cljs.core.Keyword(null, "screenshot", "screenshot", 697978558), false);
|
25786
|
+
var message = cljs.core.get.call(null, map__6617__$1, new cljs.core.Keyword(null, "message", "message", -406056002), "Timed out waiting...");
|
25787
|
+
var post_timeout = cljs.core.get.call(null, map__6617__$1, new cljs.core.Keyword(null, "post-timeout", "post-timeout", -1900055223), 0);
|
25788
|
+
var retry_frequency = cljs.core.get.call(null, map__6617__$1, new cljs.core.Keyword(null, "retry-frequency", "retry-frequency", 512696345), .2);
|
25789
|
+
var timeout = cljs.core.get.call(null, map__6617__$1, new cljs.core.Keyword(null, "timeout", "timeout", -318625318), 30);
|
25790
25790
|
var start = new Date;
|
25791
|
-
var actions = cljs.core.repeatedly.call(null, function(start,
|
25791
|
+
var actions = cljs.core.repeatedly.call(null, function(start, map__6617, map__6617__$1, options, screenshot, message, post_timeout, retry_frequency, timeout) {
|
25792
25792
|
return function() {
|
25793
25793
|
var res = pred.call(null);
|
25794
25794
|
if (cljs.core.truth_(res)) {
|
@@ -25797,8 +25797,8 @@ calabash_script.core.wait_for = function wait_for(p__5013, pred) {
|
|
25797
25797
|
}
|
25798
25798
|
return res;
|
25799
25799
|
};
|
25800
|
-
}(start,
|
25801
|
-
var results = cljs.core.filter.call(null, function(start, actions,
|
25800
|
+
}(start, map__6617, map__6617__$1, options, screenshot, message, post_timeout, retry_frequency, timeout));
|
25801
|
+
var results = cljs.core.filter.call(null, function(start, actions, map__6617, map__6617__$1, options, screenshot, message, post_timeout, retry_frequency, timeout) {
|
25802
25802
|
return function(res) {
|
25803
25803
|
if (calabash_script.core.duration_exceeds_QMARK_.call(null, start, timeout)) {
|
25804
25804
|
calabash_script.tests.fail.call(null, message, function() {
|
@@ -25813,7 +25813,7 @@ calabash_script.core.wait_for = function wait_for(p__5013, pred) {
|
|
25813
25813
|
}
|
25814
25814
|
return res;
|
25815
25815
|
};
|
25816
|
-
}(start, actions,
|
25816
|
+
}(start, actions, map__6617, map__6617__$1, options, screenshot, message, post_timeout, retry_frequency, timeout), actions);
|
25817
25817
|
var result = cljs.core.first.call(null, results);
|
25818
25818
|
if (post_timeout > 0) {
|
25819
25819
|
calabash_script.core.sleep.call(null, post_timeout);
|
@@ -25860,8 +25860,8 @@ calabash_script.core.query_el = function() {
|
|
25860
25860
|
return query_el__delegate.call(this, args);
|
25861
25861
|
};
|
25862
25862
|
query_el.cljs$lang$maxFixedArity = 0;
|
25863
|
-
query_el.cljs$lang$applyTo = function(
|
25864
|
-
var args = cljs.core.seq(
|
25863
|
+
query_el.cljs$lang$applyTo = function(arglist__6618) {
|
25864
|
+
var args = cljs.core.seq(arglist__6618);
|
25865
25865
|
return query_el__delegate(args);
|
25866
25866
|
};
|
25867
25867
|
query_el.cljs$core$IFn$_invoke$arity$variadic = query_el__delegate;
|
@@ -25879,8 +25879,8 @@ calabash_script.core.log_query = function() {
|
|
25879
25879
|
return log_query__delegate.call(this, args);
|
25880
25880
|
};
|
25881
25881
|
log_query.cljs$lang$maxFixedArity = 0;
|
25882
|
-
log_query.cljs$lang$applyTo = function(
|
25883
|
-
var args = cljs.core.seq(
|
25882
|
+
log_query.cljs$lang$applyTo = function(arglist__6619) {
|
25883
|
+
var args = cljs.core.seq(arglist__6619);
|
25884
25884
|
return log_query__delegate(args);
|
25885
25885
|
};
|
25886
25886
|
log_query.cljs$core$IFn$_invoke$arity$variadic = log_query__delegate;
|
@@ -25904,8 +25904,8 @@ calabash_script.core.log_tree_query = function() {
|
|
25904
25904
|
return log_tree_query__delegate.call(this, args);
|
25905
25905
|
};
|
25906
25906
|
log_tree_query.cljs$lang$maxFixedArity = 0;
|
25907
|
-
log_tree_query.cljs$lang$applyTo = function(
|
25908
|
-
var args = cljs.core.seq(
|
25907
|
+
log_tree_query.cljs$lang$applyTo = function(arglist__6620) {
|
25908
|
+
var args = cljs.core.seq(arglist__6620);
|
25909
25909
|
return log_tree_query__delegate(args);
|
25910
25910
|
};
|
25911
25911
|
log_tree_query.cljs$core$IFn$_invoke$arity$variadic = log_tree_query__delegate;
|
@@ -25921,17 +25921,17 @@ calabash_script.core.log_tree_mark = function log_tree_mark(mark) {
|
|
25921
25921
|
}
|
25922
25922
|
};
|
25923
25923
|
calabash_script.core.wait_for_elements_ready = function() {
|
25924
|
-
var wait_for_elements_ready__delegate = function(
|
25925
|
-
var
|
25926
|
-
var
|
25927
|
-
var wait_opts =
|
25928
|
-
var message = cljs.core.get.call(null,
|
25929
|
-
return calabash_script.core.wait_for.call(null, cljs.core.merge.call(null, wait_opts, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "message", "message", -406056002), message], null)), function(
|
25924
|
+
var wait_for_elements_ready__delegate = function(p__6621, args) {
|
25925
|
+
var map__6623 = p__6621;
|
25926
|
+
var map__6623__$1 = cljs.core.seq_QMARK_.call(null, map__6623) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6623) : map__6623;
|
25927
|
+
var wait_opts = map__6623__$1;
|
25928
|
+
var message = cljs.core.get.call(null, map__6623__$1, new cljs.core.Keyword(null, "message", "message", -406056002), "Timed out waiting for " + cljs.core.str.cljs$core$IFn$_invoke$arity$1(args));
|
25929
|
+
return calabash_script.core.wait_for.call(null, cljs.core.merge.call(null, wait_opts, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "message", "message", -406056002), message], null)), function(map__6623, map__6623__$1, wait_opts, message) {
|
25930
25930
|
return function() {
|
25931
25931
|
var temp__4126__auto__ = cljs.core.seq.call(null, cljs.core.apply.call(null, calabash_script.core.query_el, args));
|
25932
25932
|
if (temp__4126__auto__) {
|
25933
25933
|
var els = temp__4126__auto__;
|
25934
|
-
return cljs.core.every_QMARK_.call(null, function(els, temp__4126__auto__,
|
25934
|
+
return cljs.core.every_QMARK_.call(null, function(els, temp__4126__auto__, map__6623, map__6623__$1, wait_opts, message) {
|
25935
25935
|
return function(el) {
|
25936
25936
|
var and__3530__auto__ = el.isVisible();
|
25937
25937
|
if (cljs.core.truth_(and__3530__auto__)) {
|
@@ -25940,34 +25940,34 @@ calabash_script.core.wait_for_elements_ready = function() {
|
|
25940
25940
|
return and__3530__auto__;
|
25941
25941
|
}
|
25942
25942
|
};
|
25943
|
-
}(els, temp__4126__auto__,
|
25943
|
+
}(els, temp__4126__auto__, map__6623, map__6623__$1, wait_opts, message), els);
|
25944
25944
|
} else {
|
25945
25945
|
return null;
|
25946
25946
|
}
|
25947
25947
|
};
|
25948
|
-
}(
|
25948
|
+
}(map__6623, map__6623__$1, wait_opts, message));
|
25949
25949
|
};
|
25950
|
-
var wait_for_elements_ready = function(
|
25950
|
+
var wait_for_elements_ready = function(p__6621, var_args) {
|
25951
25951
|
var args = null;
|
25952
25952
|
if (arguments.length > 1) {
|
25953
25953
|
args = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1), 0);
|
25954
25954
|
}
|
25955
|
-
return wait_for_elements_ready__delegate.call(this,
|
25955
|
+
return wait_for_elements_ready__delegate.call(this, p__6621, args);
|
25956
25956
|
};
|
25957
25957
|
wait_for_elements_ready.cljs$lang$maxFixedArity = 1;
|
25958
|
-
wait_for_elements_ready.cljs$lang$applyTo = function(
|
25959
|
-
var
|
25960
|
-
var args = cljs.core.rest(
|
25961
|
-
return wait_for_elements_ready__delegate(
|
25958
|
+
wait_for_elements_ready.cljs$lang$applyTo = function(arglist__6624) {
|
25959
|
+
var p__6621 = cljs.core.first(arglist__6624);
|
25960
|
+
var args = cljs.core.rest(arglist__6624);
|
25961
|
+
return wait_for_elements_ready__delegate(p__6621, args);
|
25962
25962
|
};
|
25963
25963
|
wait_for_elements_ready.cljs$core$IFn$_invoke$arity$variadic = wait_for_elements_ready__delegate;
|
25964
25964
|
return wait_for_elements_ready;
|
25965
25965
|
}();
|
25966
|
-
calabash_script.core.wait_for_mark_ready = function wait_for_mark_ready(
|
25967
|
-
var
|
25968
|
-
var
|
25969
|
-
var wait_opts =
|
25970
|
-
var message = cljs.core.get.call(null,
|
25966
|
+
calabash_script.core.wait_for_mark_ready = function wait_for_mark_ready(p__6625, mark) {
|
25967
|
+
var map__6627 = p__6625;
|
25968
|
+
var map__6627__$1 = cljs.core.seq_QMARK_.call(null, map__6627) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6627) : map__6627;
|
25969
|
+
var wait_opts = map__6627__$1;
|
25970
|
+
var message = cljs.core.get.call(null, map__6627__$1, new cljs.core.Keyword(null, "message", "message", -406056002), "Timed out waiting for " + cljs.core.str.cljs$core$IFn$_invoke$arity$1(mark));
|
25971
25971
|
return calabash_script.core.wait_for_elements_ready.call(null, cljs.core.merge.call(null, wait_opts, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "message", "message", -406056002), message], null)), new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null, "view", "view", 1247994814), new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "marked", "marked", 1403026280), mark], null)], null));
|
25972
25972
|
};
|
25973
25973
|
calabash_script.core.perform_on = function() {
|
@@ -25988,9 +25988,9 @@ calabash_script.core.perform_on = function() {
|
|
25988
25988
|
return perform_on__delegate.call(this, action, args);
|
25989
25989
|
};
|
25990
25990
|
perform_on.cljs$lang$maxFixedArity = 1;
|
25991
|
-
perform_on.cljs$lang$applyTo = function(
|
25992
|
-
var action = cljs.core.first(
|
25993
|
-
var args = cljs.core.rest(
|
25991
|
+
perform_on.cljs$lang$applyTo = function(arglist__6628) {
|
25992
|
+
var action = cljs.core.first(arglist__6628);
|
25993
|
+
var args = cljs.core.rest(arglist__6628);
|
25994
25994
|
return perform_on__delegate(action, args);
|
25995
25995
|
};
|
25996
25996
|
perform_on.cljs$core$IFn$_invoke$arity$variadic = perform_on__delegate;
|
@@ -26010,9 +26010,9 @@ calabash_script.core.perform_on_first = function() {
|
|
26010
26010
|
return perform_on_first__delegate.call(this, action, args);
|
26011
26011
|
};
|
26012
26012
|
perform_on_first.cljs$lang$maxFixedArity = 1;
|
26013
|
-
perform_on_first.cljs$lang$applyTo = function(
|
26014
|
-
var action = cljs.core.first(
|
26015
|
-
var args = cljs.core.rest(
|
26013
|
+
perform_on_first.cljs$lang$applyTo = function(arglist__6629) {
|
26014
|
+
var action = cljs.core.first(arglist__6629);
|
26015
|
+
var args = cljs.core.rest(arglist__6629);
|
26016
26016
|
return perform_on_first__delegate(action, args);
|
26017
26017
|
};
|
26018
26018
|
perform_on_first.cljs$core$IFn$_invoke$arity$variadic = perform_on_first__delegate;
|
@@ -26020,8 +26020,8 @@ calabash_script.core.perform_on_first = function() {
|
|
26020
26020
|
}();
|
26021
26021
|
calabash_script.core.tap = function() {
|
26022
26022
|
var tap__delegate = function(args) {
|
26023
|
-
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(
|
26024
|
-
return
|
26023
|
+
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(p1__6630_SHARP_) {
|
26024
|
+
return p1__6630_SHARP_.tap();
|
26025
26025
|
}, args);
|
26026
26026
|
};
|
26027
26027
|
var tap = function(var_args) {
|
@@ -26032,8 +26032,8 @@ calabash_script.core.tap = function() {
|
|
26032
26032
|
return tap__delegate.call(this, args);
|
26033
26033
|
};
|
26034
26034
|
tap.cljs$lang$maxFixedArity = 0;
|
26035
|
-
tap.cljs$lang$applyTo = function(
|
26036
|
-
var args = cljs.core.seq(
|
26035
|
+
tap.cljs$lang$applyTo = function(arglist__6631) {
|
26036
|
+
var args = cljs.core.seq(arglist__6631);
|
26037
26037
|
return tap__delegate(args);
|
26038
26038
|
};
|
26039
26039
|
tap.cljs$core$IFn$_invoke$arity$variadic = tap__delegate;
|
@@ -26041,8 +26041,8 @@ calabash_script.core.tap = function() {
|
|
26041
26041
|
}();
|
26042
26042
|
calabash_script.core.double_tap = function() {
|
26043
26043
|
var double_tap__delegate = function(args) {
|
26044
|
-
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(
|
26045
|
-
return
|
26044
|
+
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(p1__6632_SHARP_) {
|
26045
|
+
return p1__6632_SHARP_.doubleTap();
|
26046
26046
|
}, args);
|
26047
26047
|
};
|
26048
26048
|
var double_tap = function(var_args) {
|
@@ -26053,8 +26053,8 @@ calabash_script.core.double_tap = function() {
|
|
26053
26053
|
return double_tap__delegate.call(this, args);
|
26054
26054
|
};
|
26055
26055
|
double_tap.cljs$lang$maxFixedArity = 0;
|
26056
|
-
double_tap.cljs$lang$applyTo = function(
|
26057
|
-
var args = cljs.core.seq(
|
26056
|
+
double_tap.cljs$lang$applyTo = function(arglist__6633) {
|
26057
|
+
var args = cljs.core.seq(arglist__6633);
|
26058
26058
|
return double_tap__delegate(args);
|
26059
26059
|
};
|
26060
26060
|
double_tap.cljs$core$IFn$_invoke$arity$variadic = double_tap__delegate;
|
@@ -26065,8 +26065,8 @@ calabash_script.core.double_tap_offset = function double_tap_offset(offset) {
|
|
26065
26065
|
};
|
26066
26066
|
calabash_script.core.two_finger_tap = function() {
|
26067
26067
|
var two_finger_tap__delegate = function(args) {
|
26068
|
-
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(
|
26069
|
-
return
|
26068
|
+
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(p1__6634_SHARP_) {
|
26069
|
+
return p1__6634_SHARP_.twoFingerTap();
|
26070
26070
|
}, args);
|
26071
26071
|
};
|
26072
26072
|
var two_finger_tap = function(var_args) {
|
@@ -26077,8 +26077,8 @@ calabash_script.core.two_finger_tap = function() {
|
|
26077
26077
|
return two_finger_tap__delegate.call(this, args);
|
26078
26078
|
};
|
26079
26079
|
two_finger_tap.cljs$lang$maxFixedArity = 0;
|
26080
|
-
two_finger_tap.cljs$lang$applyTo = function(
|
26081
|
-
var args = cljs.core.seq(
|
26080
|
+
two_finger_tap.cljs$lang$applyTo = function(arglist__6635) {
|
26081
|
+
var args = cljs.core.seq(arglist__6635);
|
26082
26082
|
return two_finger_tap__delegate(args);
|
26083
26083
|
};
|
26084
26084
|
two_finger_tap.cljs$core$IFn$_invoke$arity$variadic = two_finger_tap__delegate;
|
@@ -26092,9 +26092,9 @@ calabash_script.core.flick_offset = function flick_offset(from, to) {
|
|
26092
26092
|
};
|
26093
26093
|
calabash_script.core.pan = function() {
|
26094
26094
|
var pan__delegate = function(src_query, tgt_query, kwargs) {
|
26095
|
-
var
|
26096
|
-
var
|
26097
|
-
var duration = cljs.core.get.call(null,
|
26095
|
+
var map__6637 = kwargs;
|
26096
|
+
var map__6637__$1 = cljs.core.seq_QMARK_.call(null, map__6637) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6637) : map__6637;
|
26097
|
+
var duration = cljs.core.get.call(null, map__6637__$1, new cljs.core.Keyword(null, "duration", "duration", 1444101068), 1);
|
26098
26098
|
var src = cljs.core.first.call(null, cljs.core.seq.call(null, calabash_script.core.query.call(null, src_query)));
|
26099
26099
|
var tgt = cljs.core.first.call(null, cljs.core.seq.call(null, calabash_script.core.query.call(null, tgt_query)));
|
26100
26100
|
calabash_script.tests.fail_if_not.call(null, function() {
|
@@ -26115,39 +26115,39 @@ calabash_script.core.pan = function() {
|
|
26115
26115
|
return pan__delegate.call(this, src_query, tgt_query, kwargs);
|
26116
26116
|
};
|
26117
26117
|
pan.cljs$lang$maxFixedArity = 2;
|
26118
|
-
pan.cljs$lang$applyTo = function(
|
26119
|
-
var src_query = cljs.core.first(
|
26120
|
-
|
26121
|
-
var tgt_query = cljs.core.first(
|
26122
|
-
var kwargs = cljs.core.rest(
|
26118
|
+
pan.cljs$lang$applyTo = function(arglist__6638) {
|
26119
|
+
var src_query = cljs.core.first(arglist__6638);
|
26120
|
+
arglist__6638 = cljs.core.next(arglist__6638);
|
26121
|
+
var tgt_query = cljs.core.first(arglist__6638);
|
26122
|
+
var kwargs = cljs.core.rest(arglist__6638);
|
26123
26123
|
return pan__delegate(src_query, tgt_query, kwargs);
|
26124
26124
|
};
|
26125
26125
|
pan.cljs$core$IFn$_invoke$arity$variadic = pan__delegate;
|
26126
26126
|
return pan;
|
26127
26127
|
}();
|
26128
26128
|
calabash_script.core.pan_offset = function() {
|
26129
|
-
var pan_offset__delegate = function(src_offset, tgt_offset,
|
26130
|
-
var
|
26131
|
-
var options = cljs.core.nth.call(null,
|
26132
|
-
var
|
26133
|
-
var
|
26134
|
-
var duration = cljs.core.get.call(null,
|
26129
|
+
var pan_offset__delegate = function(src_offset, tgt_offset, p__6639) {
|
26130
|
+
var vec__6642 = p__6639;
|
26131
|
+
var options = cljs.core.nth.call(null, vec__6642, 0, null);
|
26132
|
+
var map__6643 = options;
|
26133
|
+
var map__6643__$1 = cljs.core.seq_QMARK_.call(null, map__6643) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6643) : map__6643;
|
26134
|
+
var duration = cljs.core.get.call(null, map__6643__$1, new cljs.core.Keyword(null, "duration", "duration", 1444101068), .75);
|
26135
26135
|
return calabash_script.utils.target.call(null).dragFromToForDuration(cljs.core.clj__GT_js.call(null, src_offset), cljs.core.clj__GT_js.call(null, tgt_offset), duration);
|
26136
26136
|
};
|
26137
26137
|
var pan_offset = function(src_offset, tgt_offset, var_args) {
|
26138
|
-
var
|
26138
|
+
var p__6639 = null;
|
26139
26139
|
if (arguments.length > 2) {
|
26140
|
-
|
26140
|
+
p__6639 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2), 0);
|
26141
26141
|
}
|
26142
|
-
return pan_offset__delegate.call(this, src_offset, tgt_offset,
|
26142
|
+
return pan_offset__delegate.call(this, src_offset, tgt_offset, p__6639);
|
26143
26143
|
};
|
26144
26144
|
pan_offset.cljs$lang$maxFixedArity = 2;
|
26145
|
-
pan_offset.cljs$lang$applyTo = function(
|
26146
|
-
var src_offset = cljs.core.first(
|
26147
|
-
|
26148
|
-
var tgt_offset = cljs.core.first(
|
26149
|
-
var
|
26150
|
-
return pan_offset__delegate(src_offset, tgt_offset,
|
26145
|
+
pan_offset.cljs$lang$applyTo = function(arglist__6644) {
|
26146
|
+
var src_offset = cljs.core.first(arglist__6644);
|
26147
|
+
arglist__6644 = cljs.core.next(arglist__6644);
|
26148
|
+
var tgt_offset = cljs.core.first(arglist__6644);
|
26149
|
+
var p__6639 = cljs.core.rest(arglist__6644);
|
26150
|
+
return pan_offset__delegate(src_offset, tgt_offset, p__6639);
|
26151
26151
|
};
|
26152
26152
|
pan_offset.cljs$core$IFn$_invoke$arity$variadic = pan_offset__delegate;
|
26153
26153
|
return pan_offset;
|
@@ -26157,15 +26157,15 @@ calabash_script.core.default_offset = function default_offset() {
|
|
26157
26157
|
return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null, "x", "x", 2099068185), hp.x, new cljs.core.Keyword(null, "y", "y", -1757859776), hp.y], null);
|
26158
26158
|
};
|
26159
26159
|
calabash_script.core.swipe = function() {
|
26160
|
-
var swipe__delegate = function(dir, query_spec,
|
26161
|
-
var
|
26162
|
-
var options = cljs.core.nth.call(null,
|
26163
|
-
var
|
26164
|
-
var
|
26165
|
-
var defaults =
|
26166
|
-
var duration = cljs.core.get.call(null,
|
26167
|
-
var endOffset = cljs.core.get.call(null,
|
26168
|
-
var startOffset = cljs.core.get.call(null,
|
26160
|
+
var swipe__delegate = function(dir, query_spec, p__6646) {
|
26161
|
+
var vec__6649 = p__6646;
|
26162
|
+
var options = cljs.core.nth.call(null, vec__6649, 0, null);
|
26163
|
+
var map__6650 = options;
|
26164
|
+
var map__6650__$1 = cljs.core.seq_QMARK_.call(null, map__6650) ? cljs.core.apply.call(null, cljs.core.hash_map, map__6650) : map__6650;
|
26165
|
+
var defaults = map__6650__$1;
|
26166
|
+
var duration = cljs.core.get.call(null, map__6650__$1, new cljs.core.Keyword(null, "duration", "duration", 1444101068), .5);
|
26167
|
+
var endOffset = cljs.core.get.call(null, map__6650__$1, new cljs.core.Keyword(null, "endOffset", "endOffset", 815744685));
|
26168
|
+
var startOffset = cljs.core.get.call(null, map__6650__$1, new cljs.core.Keyword(null, "startOffset", "startOffset", -590231263), new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null, "x", "x", 2099068185), .5, new cljs.core.Keyword(null, "y", "y", -1757859776), .5], null));
|
26169
26169
|
var end_offset = function() {
|
26170
26170
|
var or__3542__auto__ = endOffset;
|
26171
26171
|
if (cljs.core.truth_(or__3542__auto__)) {
|
@@ -26182,37 +26182,56 @@ calabash_script.core.swipe = function() {
|
|
26182
26182
|
return.5;
|
26183
26183
|
}
|
26184
26184
|
}();
|
26185
|
-
return calabash_script.core.perform_on_first.call(null, function(
|
26186
|
-
return function(
|
26187
|
-
return
|
26185
|
+
return calabash_script.core.perform_on_first.call(null, function(map__6650, map__6650__$1, defaults, duration, endOffset, startOffset, end_offset, duration__$1, vec__6649, options) {
|
26186
|
+
return function(p1__6645_SHARP_) {
|
26187
|
+
return p1__6645_SHARP_.dragInsideWithOptions(cljs.core.clj__GT_js.call(null, cljs.core.assoc.call(null, defaults, new cljs.core.Keyword(null, "startOffset", "startOffset", -590231263), startOffset, new cljs.core.Keyword(null, "duration", "duration", 1444101068), duration__$1, new cljs.core.Keyword(null, "endOffset", "endOffset", 815744685), end_offset)));
|
26188
26188
|
};
|
26189
|
-
}(
|
26189
|
+
}(map__6650, map__6650__$1, defaults, duration, endOffset, startOffset, end_offset, duration__$1, vec__6649, options), query_spec);
|
26190
26190
|
};
|
26191
26191
|
var swipe = function(dir, query_spec, var_args) {
|
26192
|
-
var
|
26192
|
+
var p__6646 = null;
|
26193
26193
|
if (arguments.length > 2) {
|
26194
|
-
|
26194
|
+
p__6646 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2), 0);
|
26195
26195
|
}
|
26196
|
-
return swipe__delegate.call(this, dir, query_spec,
|
26196
|
+
return swipe__delegate.call(this, dir, query_spec, p__6646);
|
26197
26197
|
};
|
26198
26198
|
swipe.cljs$lang$maxFixedArity = 2;
|
26199
|
-
swipe.cljs$lang$applyTo = function(
|
26200
|
-
var dir = cljs.core.first(
|
26201
|
-
|
26202
|
-
var query_spec = cljs.core.first(
|
26203
|
-
var
|
26204
|
-
return swipe__delegate(dir, query_spec,
|
26199
|
+
swipe.cljs$lang$applyTo = function(arglist__6651) {
|
26200
|
+
var dir = cljs.core.first(arglist__6651);
|
26201
|
+
arglist__6651 = cljs.core.next(arglist__6651);
|
26202
|
+
var query_spec = cljs.core.first(arglist__6651);
|
26203
|
+
var p__6646 = cljs.core.rest(arglist__6651);
|
26204
|
+
return swipe__delegate(dir, query_spec, p__6646);
|
26205
26205
|
};
|
26206
26206
|
swipe.cljs$core$IFn$_invoke$arity$variadic = swipe__delegate;
|
26207
26207
|
return swipe;
|
26208
26208
|
}();
|
26209
|
-
calabash_script.core.swipe_mark = function
|
26210
|
-
|
26211
|
-
|
26209
|
+
calabash_script.core.swipe_mark = function() {
|
26210
|
+
var swipe_mark__delegate = function(dir, mark, args) {
|
26211
|
+
return cljs.core.apply.call(null, calabash_script.core.swipe, dir, new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null, "view", "view", 1247994814), new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "marked", "marked", 1403026280), mark], null)], null), args);
|
26212
|
+
};
|
26213
|
+
var swipe_mark = function(dir, mark, var_args) {
|
26214
|
+
var args = null;
|
26215
|
+
if (arguments.length > 2) {
|
26216
|
+
args = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2), 0);
|
26217
|
+
}
|
26218
|
+
return swipe_mark__delegate.call(this, dir, mark, args);
|
26219
|
+
};
|
26220
|
+
swipe_mark.cljs$lang$maxFixedArity = 2;
|
26221
|
+
swipe_mark.cljs$lang$applyTo = function(arglist__6652) {
|
26222
|
+
var dir = cljs.core.first(arglist__6652);
|
26223
|
+
arglist__6652 = cljs.core.next(arglist__6652);
|
26224
|
+
var mark = cljs.core.first(arglist__6652);
|
26225
|
+
var args = cljs.core.rest(arglist__6652);
|
26226
|
+
return swipe_mark__delegate(dir, mark, args);
|
26227
|
+
};
|
26228
|
+
swipe_mark.cljs$core$IFn$_invoke$arity$variadic = swipe_mark__delegate;
|
26229
|
+
return swipe_mark;
|
26230
|
+
}();
|
26212
26231
|
calabash_script.core.swipe_offset = function() {
|
26213
|
-
var swipe_offset__delegate = function(offset,
|
26214
|
-
var
|
26215
|
-
var options = cljs.core.nth.call(null,
|
26232
|
+
var swipe_offset__delegate = function(offset, p__6653) {
|
26233
|
+
var vec__6655 = p__6653;
|
26234
|
+
var options = cljs.core.nth.call(null, vec__6655, 0, null);
|
26216
26235
|
var offset__$1 = function() {
|
26217
26236
|
var or__3542__auto__ = offset;
|
26218
26237
|
if (cljs.core.truth_(or__3542__auto__)) {
|
@@ -26234,49 +26253,49 @@ calabash_script.core.swipe_offset = function() {
|
|
26234
26253
|
return calabash_script.utils.target.call(null).dragFromToForDuration(cljs.core.clj__GT_js.call(null, from_offset), cljs.core.clj__GT_js.call(null, to_offset), duration);
|
26235
26254
|
};
|
26236
26255
|
var swipe_offset = function(offset, var_args) {
|
26237
|
-
var
|
26256
|
+
var p__6653 = null;
|
26238
26257
|
if (arguments.length > 1) {
|
26239
|
-
|
26258
|
+
p__6653 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1), 0);
|
26240
26259
|
}
|
26241
|
-
return swipe_offset__delegate.call(this, offset,
|
26260
|
+
return swipe_offset__delegate.call(this, offset, p__6653);
|
26242
26261
|
};
|
26243
26262
|
swipe_offset.cljs$lang$maxFixedArity = 1;
|
26244
|
-
swipe_offset.cljs$lang$applyTo = function(
|
26245
|
-
var offset = cljs.core.first(
|
26246
|
-
var
|
26247
|
-
return swipe_offset__delegate(offset,
|
26263
|
+
swipe_offset.cljs$lang$applyTo = function(arglist__6656) {
|
26264
|
+
var offset = cljs.core.first(arglist__6656);
|
26265
|
+
var p__6653 = cljs.core.rest(arglist__6656);
|
26266
|
+
return swipe_offset__delegate(offset, p__6653);
|
26248
26267
|
};
|
26249
26268
|
swipe_offset.cljs$core$IFn$_invoke$arity$variadic = swipe_offset__delegate;
|
26250
26269
|
return swipe_offset;
|
26251
26270
|
}();
|
26252
26271
|
calabash_script.core.pinch = function() {
|
26253
|
-
var pinch__delegate = function(in_or_out, q,
|
26254
|
-
var
|
26255
|
-
var options = cljs.core.nth.call(null,
|
26272
|
+
var pinch__delegate = function(in_or_out, q, p__6657) {
|
26273
|
+
var vec__6659 = p__6657;
|
26274
|
+
var options = cljs.core.nth.call(null, vec__6659, 0, null);
|
26256
26275
|
throw new Error;
|
26257
26276
|
};
|
26258
26277
|
var pinch = function(in_or_out, q, var_args) {
|
26259
|
-
var
|
26278
|
+
var p__6657 = null;
|
26260
26279
|
if (arguments.length > 2) {
|
26261
|
-
|
26280
|
+
p__6657 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2), 0);
|
26262
26281
|
}
|
26263
|
-
return pinch__delegate.call(this, in_or_out, q,
|
26282
|
+
return pinch__delegate.call(this, in_or_out, q, p__6657);
|
26264
26283
|
};
|
26265
26284
|
pinch.cljs$lang$maxFixedArity = 2;
|
26266
|
-
pinch.cljs$lang$applyTo = function(
|
26267
|
-
var in_or_out = cljs.core.first(
|
26268
|
-
|
26269
|
-
var q = cljs.core.first(
|
26270
|
-
var
|
26271
|
-
return pinch__delegate(in_or_out, q,
|
26285
|
+
pinch.cljs$lang$applyTo = function(arglist__6660) {
|
26286
|
+
var in_or_out = cljs.core.first(arglist__6660);
|
26287
|
+
arglist__6660 = cljs.core.next(arglist__6660);
|
26288
|
+
var q = cljs.core.first(arglist__6660);
|
26289
|
+
var p__6657 = cljs.core.rest(arglist__6660);
|
26290
|
+
return pinch__delegate(in_or_out, q, p__6657);
|
26272
26291
|
};
|
26273
26292
|
pinch.cljs$core$IFn$_invoke$arity$variadic = pinch__delegate;
|
26274
26293
|
return pinch;
|
26275
26294
|
}();
|
26276
26295
|
calabash_script.core.pinch_offset = function() {
|
26277
|
-
var pinch_offset__delegate = function(in_or_out, offset,
|
26278
|
-
var
|
26279
|
-
var options = cljs.core.nth.call(null,
|
26296
|
+
var pinch_offset__delegate = function(in_or_out, offset, p__6661) {
|
26297
|
+
var vec__6664 = p__6661;
|
26298
|
+
var options = cljs.core.nth.call(null, vec__6664, 0, null);
|
26280
26299
|
var offset__$1 = function() {
|
26281
26300
|
var or__3542__auto__ = offset;
|
26282
26301
|
if (cljs.core.truth_(or__3542__auto__)) {
|
@@ -26297,8 +26316,8 @@ calabash_script.core.pinch_offset = function() {
|
|
26297
26316
|
}();
|
26298
26317
|
var js_from_offset = cljs.core.clj__GT_js.call(null, from_offset);
|
26299
26318
|
var js_to_offset = cljs.core.clj__GT_js.call(null, to_offset);
|
26300
|
-
var
|
26301
|
-
switch(
|
26319
|
+
var G__6665 = in_or_out instanceof cljs.core.Keyword ? in_or_out.fqn : null;
|
26320
|
+
switch(G__6665) {
|
26302
26321
|
case "out":
|
26303
26322
|
return calabash_script.utils.target.call(null).pinchCloseFromToForDuration(js_from_offset, js_to_offset, duration);
|
26304
26323
|
break;
|
@@ -26310,27 +26329,27 @@ calabash_script.core.pinch_offset = function() {
|
|
26310
26329
|
}
|
26311
26330
|
};
|
26312
26331
|
var pinch_offset = function(in_or_out, offset, var_args) {
|
26313
|
-
var
|
26332
|
+
var p__6661 = null;
|
26314
26333
|
if (arguments.length > 2) {
|
26315
|
-
|
26334
|
+
p__6661 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 2), 0);
|
26316
26335
|
}
|
26317
|
-
return pinch_offset__delegate.call(this, in_or_out, offset,
|
26336
|
+
return pinch_offset__delegate.call(this, in_or_out, offset, p__6661);
|
26318
26337
|
};
|
26319
26338
|
pinch_offset.cljs$lang$maxFixedArity = 2;
|
26320
|
-
pinch_offset.cljs$lang$applyTo = function(
|
26321
|
-
var in_or_out = cljs.core.first(
|
26322
|
-
|
26323
|
-
var offset = cljs.core.first(
|
26324
|
-
var
|
26325
|
-
return pinch_offset__delegate(in_or_out, offset,
|
26339
|
+
pinch_offset.cljs$lang$applyTo = function(arglist__6667) {
|
26340
|
+
var in_or_out = cljs.core.first(arglist__6667);
|
26341
|
+
arglist__6667 = cljs.core.next(arglist__6667);
|
26342
|
+
var offset = cljs.core.first(arglist__6667);
|
26343
|
+
var p__6661 = cljs.core.rest(arglist__6667);
|
26344
|
+
return pinch_offset__delegate(in_or_out, offset, p__6661);
|
26326
26345
|
};
|
26327
26346
|
pinch_offset.cljs$core$IFn$_invoke$arity$variadic = pinch_offset__delegate;
|
26328
26347
|
return pinch_offset;
|
26329
26348
|
}();
|
26330
26349
|
calabash_script.core.scroll_to = function() {
|
26331
26350
|
var scroll_to__delegate = function(args) {
|
26332
|
-
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(
|
26333
|
-
return
|
26351
|
+
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(p1__6668_SHARP_) {
|
26352
|
+
return p1__6668_SHARP_.scrollToVisible();
|
26334
26353
|
}, args);
|
26335
26354
|
};
|
26336
26355
|
var scroll_to = function(var_args) {
|
@@ -26341,8 +26360,8 @@ calabash_script.core.scroll_to = function() {
|
|
26341
26360
|
return scroll_to__delegate.call(this, args);
|
26342
26361
|
};
|
26343
26362
|
scroll_to.cljs$lang$maxFixedArity = 0;
|
26344
|
-
scroll_to.cljs$lang$applyTo = function(
|
26345
|
-
var args = cljs.core.seq(
|
26363
|
+
scroll_to.cljs$lang$applyTo = function(arglist__6669) {
|
26364
|
+
var args = cljs.core.seq(arglist__6669);
|
26346
26365
|
return scroll_to__delegate(args);
|
26347
26366
|
};
|
26348
26367
|
scroll_to.cljs$core$IFn$_invoke$arity$variadic = scroll_to__delegate;
|
@@ -26350,8 +26369,8 @@ calabash_script.core.scroll_to = function() {
|
|
26350
26369
|
}();
|
26351
26370
|
calabash_script.core.touch_hold = function() {
|
26352
26371
|
var touch_hold__delegate = function(duration, args) {
|
26353
|
-
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(
|
26354
|
-
return
|
26372
|
+
return cljs.core.apply.call(null, calabash_script.core.perform_on_first, function(p1__6670_SHARP_) {
|
26373
|
+
return p1__6670_SHARP_.touchAndHold(duration);
|
26355
26374
|
}, args);
|
26356
26375
|
};
|
26357
26376
|
var touch_hold = function(duration, var_args) {
|
@@ -26362,9 +26381,9 @@ calabash_script.core.touch_hold = function() {
|
|
26362
26381
|
return touch_hold__delegate.call(this, duration, args);
|
26363
26382
|
};
|
26364
26383
|
touch_hold.cljs$lang$maxFixedArity = 1;
|
26365
|
-
touch_hold.cljs$lang$applyTo = function(
|
26366
|
-
var duration = cljs.core.first(
|
26367
|
-
var args = cljs.core.rest(
|
26384
|
+
touch_hold.cljs$lang$applyTo = function(arglist__6671) {
|
26385
|
+
var duration = cljs.core.first(arglist__6671);
|
26386
|
+
var args = cljs.core.rest(arglist__6671);
|
26368
26387
|
return touch_hold__delegate(duration, args);
|
26369
26388
|
};
|
26370
26389
|
touch_hold.cljs$core$IFn$_invoke$arity$variadic = touch_hold__delegate;
|
@@ -26378,8 +26397,8 @@ calabash_script.core.set_alert_handler_BANG_ = function set_alert_handler_BANG_(
|
|
26378
26397
|
return calabash_script.utils.target.call(null)["onAlert"] = handler;
|
26379
26398
|
};
|
26380
26399
|
calabash_script.core.add_alert_handler_BANG_ = function add_alert_handler_BANG_(handler) {
|
26381
|
-
return cljs.core.swap_BANG_.call(null, calabash_script.core._STAR_alert_handlers_STAR_, function(
|
26382
|
-
return cljs.core.cons.call(null, handler,
|
26400
|
+
return cljs.core.swap_BANG_.call(null, calabash_script.core._STAR_alert_handlers_STAR_, function(p1__6672_SHARP_) {
|
26401
|
+
return cljs.core.cons.call(null, handler, p1__6672_SHARP_);
|
26383
26402
|
});
|
26384
26403
|
};
|
26385
26404
|
calabash_script.core.set_alert_handler_BANG_.call(null, function(alert) {
|
@@ -26398,8 +26417,8 @@ calabash_script.core.keyboard_visible_QMARK_ = function keyboard_visible_QMARK_(
|
|
26398
26417
|
return calabash_script.query.valid_QMARK_.call(null, calabash_script.utils.keyboard.call(null));
|
26399
26418
|
};
|
26400
26419
|
calabash_script.core.element_with_keyboard_focus = function element_with_keyboard_focus() {
|
26401
|
-
return cljs.core.first.call(null, cljs.core.filter.call(null, function(
|
26402
|
-
return cljs.core._EQ_.call(null, 1,
|
26420
|
+
return cljs.core.first.call(null, cljs.core.filter.call(null, function(p1__6673_SHARP_) {
|
26421
|
+
return cljs.core._EQ_.call(null, 1, p1__6673_SHARP_.hasKeyboardFocus());
|
26403
26422
|
}, cljs.core.concat.call(null, calabash_script.core.query_el.call(null, new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null, "textField", "textField", -585123195)], null), calabash_script.utils.windows.call(null)), calabash_script.core.query_el.call(null, new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null, "textView", "textView", -1135056028)], null), calabash_script.utils.windows.call(null)))));
|
26404
26423
|
};
|
26405
26424
|
calabash_script.core.keyboard_enter_text = function() {
|
@@ -26419,18 +26438,23 @@ calabash_script.core.keyboard_enter_text = function() {
|
|
26419
26438
|
}();
|
26420
26439
|
var locate_key_error_reg = /failed to locate key/;
|
26421
26440
|
var kb = calabash_script.utils.keyboard.call(null);
|
26422
|
-
|
26441
|
+
var num_failed_keys = cljs.core.atom.call(null, 0);
|
26442
|
+
calabash_script.core.wait_for.call(null, new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null, "retry-frequency", "retry-frequency", 512696345), 1, new cljs.core.Keyword(null, "timeout", "timeout", -318625318), 60, new cljs.core.Keyword(null, "message", "message", -406056002), "Unable to type: " + cljs.core.str.cljs$core$IFn$_invoke$arity$1(txt)], null), function(tf_serialized, reset_to, locate_key_error_reg, kb, num_failed_keys, tf, temp__4124__auto__) {
|
26423
26443
|
return function() {
|
26424
26444
|
try {
|
26425
26445
|
kb.typeString(txt);
|
26426
26446
|
return true;
|
26427
|
-
} catch (
|
26428
|
-
if (
|
26429
|
-
var err =
|
26430
|
-
var
|
26431
|
-
calabash_script.log.log.call(null, ".typeString failed with error: '",
|
26432
|
-
if (cljs.core.truth_(cljs.core.re_find.call(null, locate_key_error_reg,
|
26433
|
-
|
26447
|
+
} catch (e6675) {
|
26448
|
+
if (e6675 instanceof Error) {
|
26449
|
+
var err = e6675;
|
26450
|
+
var err_str_6676 = "" + cljs.core.str.cljs$core$IFn$_invoke$arity$1(err);
|
26451
|
+
calabash_script.log.log.call(null, ".typeString failed with error: '", err_str_6676, "'");
|
26452
|
+
if (cljs.core.truth_(cljs.core.re_find.call(null, locate_key_error_reg, err_str_6676))) {
|
26453
|
+
cljs.core.swap_BANG_.call(null, num_failed_keys, cljs.core.inc);
|
26454
|
+
if (cljs.core.deref.call(null, num_failed_keys) > 3) {
|
26455
|
+
throw err;
|
26456
|
+
} else {
|
26457
|
+
}
|
26434
26458
|
} else {
|
26435
26459
|
}
|
26436
26460
|
calabash_script.log.log.call(null, "Restoring to text: '", reset_to, "'");
|
@@ -26438,14 +26462,14 @@ calabash_script.core.keyboard_enter_text = function() {
|
|
26438
26462
|
return false;
|
26439
26463
|
} else {
|
26440
26464
|
if (new cljs.core.Keyword(null, "else", "else", -1508377146)) {
|
26441
|
-
throw
|
26465
|
+
throw e6675;
|
26442
26466
|
} else {
|
26443
26467
|
return null;
|
26444
26468
|
}
|
26445
26469
|
}
|
26446
26470
|
}
|
26447
26471
|
};
|
26448
|
-
}(tf_serialized, reset_to, locate_key_error_reg, kb, tf, temp__4124__auto__));
|
26472
|
+
}(tf_serialized, reset_to, locate_key_error_reg, kb, num_failed_keys, tf, temp__4124__auto__));
|
26449
26473
|
return tf_serialized;
|
26450
26474
|
} else {
|
26451
26475
|
return calabash_script.utils.keyboard.call(null).typeString(txt);
|
@@ -26459,9 +26483,9 @@ calabash_script.core.keyboard_enter_text = function() {
|
|
26459
26483
|
return keyboard_enter_text__delegate.call(this, txt, args);
|
26460
26484
|
};
|
26461
26485
|
keyboard_enter_text.cljs$lang$maxFixedArity = 1;
|
26462
|
-
keyboard_enter_text.cljs$lang$applyTo = function(
|
26463
|
-
var txt = cljs.core.first(
|
26464
|
-
var args = cljs.core.rest(
|
26486
|
+
keyboard_enter_text.cljs$lang$applyTo = function(arglist__6677) {
|
26487
|
+
var txt = cljs.core.first(arglist__6677);
|
26488
|
+
var args = cljs.core.rest(arglist__6677);
|
26465
26489
|
return keyboard_enter_text__delegate(txt, args);
|
26466
26490
|
};
|
26467
26491
|
keyboard_enter_text.cljs$core$IFn$_invoke$arity$variadic = keyboard_enter_text__delegate;
|
@@ -26486,8 +26510,8 @@ calabash_script.core.deactivate = function deactivate(duration) {
|
|
26486
26510
|
}())) {
|
26487
26511
|
return val;
|
26488
26512
|
} else {
|
26489
|
-
var
|
26490
|
-
i =
|
26513
|
+
var G__6678 = i + 1;
|
26514
|
+
i = G__6678;
|
26491
26515
|
continue;
|
26492
26516
|
}
|
26493
26517
|
break;
|
@@ -26497,10 +26521,10 @@ calabash_script.core.tap_mark = function tap_mark(mark) {
|
|
26497
26521
|
return calabash_script.core.tap.call(null, new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null, "view", "view", 1247994814), new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "marked", "marked", 1403026280), mark], null)], null));
|
26498
26522
|
};
|
26499
26523
|
calabash_script.core.tap_offset = function() {
|
26500
|
-
var tap_offset__delegate = function(offset,
|
26501
|
-
var
|
26502
|
-
var options = cljs.core.nth.call(null,
|
26503
|
-
return calabash_script.core.wait_for.call(null, new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null, "retry-frequency", "retry-frequency", 512696345), .5, new cljs.core.Keyword(null, "timeout", "timeout", -318625318), 60, new cljs.core.Keyword(null, "message", "message", -406056002), "Unable to tap-offset: " + cljs.core.str.cljs$core$IFn$_invoke$arity$1(offset)], null), function(
|
26524
|
+
var tap_offset__delegate = function(offset, p__6679) {
|
26525
|
+
var vec__6682 = p__6679;
|
26526
|
+
var options = cljs.core.nth.call(null, vec__6682, 0, null);
|
26527
|
+
return calabash_script.core.wait_for.call(null, new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null, "retry-frequency", "retry-frequency", 512696345), .5, new cljs.core.Keyword(null, "timeout", "timeout", -318625318), 60, new cljs.core.Keyword(null, "message", "message", -406056002), "Unable to tap-offset: " + cljs.core.str.cljs$core$IFn$_invoke$arity$1(offset)], null), function(vec__6682, options) {
|
26504
26528
|
return function() {
|
26505
26529
|
try {
|
26506
26530
|
calabash_script.utils.target.call(null).tapWithOptions(cljs.core.clj__GT_js.call(null, offset), cljs.core.clj__GT_js.call(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "duration", "duration", 1444101068), function() {
|
@@ -26512,34 +26536,34 @@ calabash_script.core.tap_offset = function() {
|
|
26512
26536
|
}
|
26513
26537
|
}()], null)));
|
26514
26538
|
return true;
|
26515
|
-
} catch (
|
26516
|
-
if (
|
26517
|
-
var err =
|
26539
|
+
} catch (e6683) {
|
26540
|
+
if (e6683 instanceof Error) {
|
26541
|
+
var err = e6683;
|
26518
26542
|
calabash_script.log.log.call(null, "tap-offset failed", err);
|
26519
26543
|
return false;
|
26520
26544
|
} else {
|
26521
26545
|
if (new cljs.core.Keyword(null, "else", "else", -1508377146)) {
|
26522
|
-
throw
|
26546
|
+
throw e6683;
|
26523
26547
|
} else {
|
26524
26548
|
return null;
|
26525
26549
|
}
|
26526
26550
|
}
|
26527
26551
|
}
|
26528
26552
|
};
|
26529
|
-
}(
|
26553
|
+
}(vec__6682, options));
|
26530
26554
|
};
|
26531
26555
|
var tap_offset = function(offset, var_args) {
|
26532
|
-
var
|
26556
|
+
var p__6679 = null;
|
26533
26557
|
if (arguments.length > 1) {
|
26534
|
-
|
26558
|
+
p__6679 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1), 0);
|
26535
26559
|
}
|
26536
|
-
return tap_offset__delegate.call(this, offset,
|
26560
|
+
return tap_offset__delegate.call(this, offset, p__6679);
|
26537
26561
|
};
|
26538
26562
|
tap_offset.cljs$lang$maxFixedArity = 1;
|
26539
|
-
tap_offset.cljs$lang$applyTo = function(
|
26540
|
-
var offset = cljs.core.first(
|
26541
|
-
var
|
26542
|
-
return tap_offset__delegate(offset,
|
26563
|
+
tap_offset.cljs$lang$applyTo = function(arglist__6684) {
|
26564
|
+
var offset = cljs.core.first(arglist__6684);
|
26565
|
+
var p__6679 = cljs.core.rest(arglist__6684);
|
26566
|
+
return tap_offset__delegate(offset, p__6679);
|
26543
26567
|
};
|
26544
26568
|
tap_offset.cljs$core$IFn$_invoke$arity$variadic = tap_offset__delegate;
|
26545
26569
|
return tap_offset;
|
@@ -26556,8 +26580,8 @@ calabash_script.core.element_exists_QMARK_ = function() {
|
|
26556
26580
|
return element_exists_QMARK___delegate.call(this, args);
|
26557
26581
|
};
|
26558
26582
|
element_exists_QMARK_.cljs$lang$maxFixedArity = 0;
|
26559
|
-
element_exists_QMARK_.cljs$lang$applyTo = function(
|
26560
|
-
var args = cljs.core.seq(
|
26583
|
+
element_exists_QMARK_.cljs$lang$applyTo = function(arglist__6685) {
|
26584
|
+
var args = cljs.core.seq(arglist__6685);
|
26561
26585
|
return element_exists_QMARK___delegate(args);
|
26562
26586
|
};
|
26563
26587
|
element_exists_QMARK_.cljs$core$IFn$_invoke$arity$variadic = element_exists_QMARK___delegate;
|
@@ -26575,8 +26599,8 @@ calabash_script.core.element_does_not_exist_QMARK_ = function() {
|
|
26575
26599
|
return element_does_not_exist_QMARK___delegate.call(this, args);
|
26576
26600
|
};
|
26577
26601
|
element_does_not_exist_QMARK_.cljs$lang$maxFixedArity = 0;
|
26578
|
-
element_does_not_exist_QMARK_.cljs$lang$applyTo = function(
|
26579
|
-
var args = cljs.core.seq(
|
26602
|
+
element_does_not_exist_QMARK_.cljs$lang$applyTo = function(arglist__6686) {
|
26603
|
+
var args = cljs.core.seq(arglist__6686);
|
26580
26604
|
return element_does_not_exist_QMARK___delegate(args);
|
26581
26605
|
};
|
26582
26606
|
element_does_not_exist_QMARK_.cljs$core$IFn$_invoke$arity$variadic = element_does_not_exist_QMARK___delegate;
|
@@ -26598,8 +26622,8 @@ calabash_script.core.check_element_exists = function() {
|
|
26598
26622
|
return check_element_exists__delegate.call(this, args);
|
26599
26623
|
};
|
26600
26624
|
check_element_exists.cljs$lang$maxFixedArity = 0;
|
26601
|
-
check_element_exists.cljs$lang$applyTo = function(
|
26602
|
-
var args = cljs.core.seq(
|
26625
|
+
check_element_exists.cljs$lang$applyTo = function(arglist__6687) {
|
26626
|
+
var args = cljs.core.seq(arglist__6687);
|
26603
26627
|
return check_element_exists__delegate(args);
|
26604
26628
|
};
|
26605
26629
|
check_element_exists.cljs$core$IFn$_invoke$arity$variadic = check_element_exists__delegate;
|
@@ -26621,8 +26645,8 @@ calabash_script.core.check_element_does_not_exist = function() {
|
|
26621
26645
|
return check_element_does_not_exist__delegate.call(this, args);
|
26622
26646
|
};
|
26623
26647
|
check_element_does_not_exist.cljs$lang$maxFixedArity = 0;
|
26624
|
-
check_element_does_not_exist.cljs$lang$applyTo = function(
|
26625
|
-
var args = cljs.core.seq(
|
26648
|
+
check_element_does_not_exist.cljs$lang$applyTo = function(arglist__6688) {
|
26649
|
+
var args = cljs.core.seq(arglist__6688);
|
26626
26650
|
return check_element_does_not_exist__delegate(args);
|
26627
26651
|
};
|
26628
26652
|
check_element_does_not_exist.cljs$core$IFn$_invoke$arity$variadic = check_element_does_not_exist__delegate;
|
@@ -26640,8 +26664,8 @@ calabash_script.core.names = function() {
|
|
26640
26664
|
return names__delegate.call(this, args);
|
26641
26665
|
};
|
26642
26666
|
names.cljs$lang$maxFixedArity = 0;
|
26643
|
-
names.cljs$lang$applyTo = function(
|
26644
|
-
var args = cljs.core.seq(
|
26667
|
+
names.cljs$lang$applyTo = function(arglist__6689) {
|
26668
|
+
var args = cljs.core.seq(arglist__6689);
|
26645
26669
|
return names__delegate(args);
|
26646
26670
|
};
|
26647
26671
|
names.cljs$core$IFn$_invoke$arity$variadic = names__delegate;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|