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-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 {window-obj :window-obj log-obj :log-obj})

Log performed action in textarea logger

Log performed action in textarea logger
sourceraw docstring

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 bots-number 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 window-obj log-obj)

Log testing progress in textarea of opener and focused window

Log testing progress in textarea of opener and focused window
sourceraw docstring

run-finallycljs

(run-finally)

This function is called only if opened window name is 1, this name identifies focused window

It fetches all three parameters from window that were set by opener window waits for page to be loaded and runs main-test-fn with all parameters

This function is called only if opened window name is 1,
this name identifies focused window

It fetches all three parameters from window that were set by opener window
waits for page to be loaded and runs main-test-fn with all parameters
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

windows-atomcljs

source

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

× close