Liking cljdoc? Tell your friends :D

client-test-lib.core


append-element-fncljs

(append-element-fn {element-selector :element-selector
                    append-element :append-element}
                   &
                   [window-obj])

Helper function for appending textarea in opener and focused window

Helper function for appending textarea in opener and focused window
sourceraw docstring

click-elemcljs

(click-elem fn-selector & [window-obj])

Helper function for clicking on an element selected by fn-selector in window-obj

Helper function for clicking on an element selected by fn-selector in window-obj
sourceraw docstring

close-windowcljs

(close-window fn-params window-obj)

Closes window of particular window-obj

fn-params are inherited from execute-vector-when-loaded function call of execute-fn and it's not used

done atom counts windows that are closed, if that number counts up to number of bots it closes the focused window too.

Closes window of particular window-obj

fn-params are inherited from execute-vector-when-loaded function call
of execute-fn and it's not used

done atom counts windows that are closed,
if that number counts up to number of bots it closes the focused window too.
sourceraw docstring

donecljs

source

execute-if-element-loadedcljs

(execute-if-element-loaded wait-for-selector execute-fn fn-params)

Executes function if element is loaded

Executes function if element is loaded
sourceraw docstring

execute-vector-when-loadedcljs

(execute-vector-when-loaded window-obj test-case-vector)

Execute vector of selectors and functions

window-obj - js/window object of where vector is going to be executed test-case-vector - vector of sub-vectors that contain selector which is waited for for function to be executed as first element of sub-vector function to be executed as second element of sub-vector second parameter of executing function is window-obj cause it needs reference to window where testing is going to take place first parameter of that function as third parameter of sub-vector

Example of vector: [[".content" executing-fn fn-params] [".body" executing-fn-two fn-params-two] ...]

Execute vector of selectors and functions

window-obj - js/window object of where vector is going to be executed
test-case-vector - vector of sub-vectors that contain
                     selector which is waited for
                       for function to be executed as first element of sub-vector
                     function to be executed as second element of sub-vector
                       second parameter of executing function
                       is window-obj cause it needs reference to
                       window where testing is going to take place
                     first parameter of that function as third parameter of sub-vector

Example of vector: [[".content" executing-fn fn-params]
                    [".body" executing-fn-two fn-params-two]
                    ...]
sourceraw docstring

log-actioncljs

(log-action {log-obj :log-obj})

Log performed action in textarea logger

Log performed action in textarea logger
sourceraw docstring

main-test-fn-acljs

source

number-of-botscljs

source

open-new-windowcljs

(open-new-window window-name)

Opens new window with URL same as of it's opener's

Opens new window with URL same as of it's opener's
sourceraw docstring

open-windowscljs

(open-windows main-test-fn)

Opens as much windows as bots-number fn parameter says so and one more as focus window focus window and opener window serve as monitor windows

Tracks every opened window reference in global variable windows-atom and passes that variable to focused widnow

Also main-test-fn parameter is passed to focused window and bots-number

Opens as much windows as bots-number fn parameter says so and one more as focus window
focus window and opener window serve as monitor windows

Tracks every opened window reference in global variable windows-atom
and passes that variable to focused widnow

Also main-test-fn parameter is passed to focused window and bots-number
sourceraw docstring

opener-consolecljs

(opener-console log-obj)

Log testing progress in textarea of opener window

Log testing progress in textarea of opener window
sourceraw docstring

run-testscljs

(run-tests main-test-fn & [bots-number])

Function that should be called from code that is being tested

Function that should be called from code that is being tested
sourceraw docstring

wait-for-elementcljs

(wait-for-element wait-for-selector execute-fn fn-params)

Wait for selected element to load

Wait for selected element to load
sourceraw docstring

wait-for-element-a-fncljs

source

windows-atomcljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close