Xebium icon indicating copy to clipboard operation
Xebium copied to clipboard

default expectation for 'waitForEval'

Open raboof opened this issue 12 years ago • 2 comments

I use

|ensure|do|waitForEval|on|someCondition(someParameter)|with|true|

It would be nice if we could somehow make 'true' the default expectation, so I could drop the 'with true' here.

raboof avatar Mar 20 '13 09:03 raboof

Isn't using eval an evil thing in itself?

amolenaar avatar Sep 17 '13 13:09 amolenaar

Why? I for example use it to wait until all AJAX-request are cleared from the jQuery AJAX pipeline.

I think being able to call/evaluate JavaScript from Xebium is powerful and useful, not sure why it should be evil.

(of course you shouldn't use it to execute code strings inside your JavaScript code, but that's a different matter)

raboof avatar Sep 17 '13 14:09 raboof