Liking cljdoc? Tell your friends :D

chromex.app.test

clj
  * available since Chrome 36
* https://developer.chrome.com/apps/test
raw docstring

api-tableclj

source

assert-eqclj/smacro

(assert-eq)
(assert-eq expected)
(assert-eq expected actual)
(assert-eq expected actual message)
  |expected| - https://developer.chrome.com/apps/test#property-assertEq-expected.
  |actual| - https://developer.chrome.com/apps/test#property-assertEq-actual.
  |message| - https://developer.chrome.com/apps/test#property-assertEq-message.

https://developer.chrome.com/apps/test#method-assertEq.
sourceraw docstring

assert-eq*cljs

(assert-eq* config expected actual message)
source

assert-falseclj/smacro

(assert-false test)
(assert-false test message)
  |test| - https://developer.chrome.com/apps/test#property-assertFalse-test.
  |message| - https://developer.chrome.com/apps/test#property-assertFalse-message.

https://developer.chrome.com/apps/test#method-assertFalse.
sourceraw docstring

assert-false*cljs

(assert-false* config test message)
source

assert-last-errorclj/smacro

(assert-last-error expected-error)
  |expected-error| - https://developer.chrome.com/apps/test#property-assertLastError-expectedError.

https://developer.chrome.com/apps/test#method-assertLastError.
sourceraw docstring

assert-last-error*cljs

(assert-last-error* config expected-error)
source

assert-no-last-errorclj/smacro

(assert-no-last-error)
https://developer.chrome.com/apps/test#method-assertNoLastError.
sourceraw docstring

assert-no-last-error*cljs

(assert-no-last-error* config)
source

assert-throwsclj/smacro

(assert-throws fn self args)
(assert-throws fn self args message)
  |fn| - https://developer.chrome.com/apps/test#property-assertThrows-fn.
  |self| - https://developer.chrome.com/apps/test#property-assertThrows-self.
  |args| - https://developer.chrome.com/apps/test#property-assertThrows-args.
  |message| - https://developer.chrome.com/apps/test#property-assertThrows-message.

https://developer.chrome.com/apps/test#method-assertThrows.
sourceraw docstring

assert-throws*cljs

(assert-throws* config fn self args message)
source

assert-trueclj/smacro

(assert-true test)
(assert-true test message)
  |test| - https://developer.chrome.com/apps/test#property-assertTrue-test.
  |message| - https://developer.chrome.com/apps/test#property-assertTrue-message.

https://developer.chrome.com/apps/test#method-assertTrue.
sourceraw docstring

assert-true*cljs

(assert-true* config test message)
source

callbackclj/smacro

(callback)
(callback func)
(callback func expected-error)
  |func| - https://developer.chrome.com/apps/test#property-callback-func.
  |expected-error| - https://developer.chrome.com/apps/test#property-callback-expectedError.

https://developer.chrome.com/apps/test#method-callback.
sourceraw docstring

callback*cljs

(callback* config func expected-error)
source

callback-addedclj/smacro

(callback-added)
https://developer.chrome.com/apps/test#method-callbackAdded.
sourceraw docstring

callback-added*cljs

(callback-added* config)
source

callback-failclj/smacro

(callback-fail expected-error)

|expected-error| - https://developer.chrome.com/apps/test#property-callbackFail-expectedError.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-callbackFail.

  |expected-error| - https://developer.chrome.com/apps/test#property-callbackFail-expectedError.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-callbackFail.
sourceraw docstring

callback-fail*cljs

(callback-fail* config expected-error)
source

callback-passclj/smacro

(callback-pass)

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-callbackPass.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-callbackPass.
sourceraw docstring

callback-pass*cljs

(callback-pass* config)
source

check-deep-eqclj/smacro

(check-deep-eq)
(check-deep-eq expected)
(check-deep-eq expected actual)
  |expected| - https://developer.chrome.com/apps/test#property-checkDeepEq-expected.
  |actual| - https://developer.chrome.com/apps/test#property-checkDeepEq-actual.

https://developer.chrome.com/apps/test#method-checkDeepEq.
sourceraw docstring

check-deep-eq*cljs

(check-deep-eq* config expected actual)
source

failclj/smacro

(fail)
(fail message)
  |message| - https://developer.chrome.com/apps/test#property-fail-message.

https://developer.chrome.com/apps/test#method-fail.
sourceraw docstring

fail*cljs

(fail* config message)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-api-definitionsclj/smacro

(get-api-definitions)
(get-api-definitions api-names)
  |api-names| - https://developer.chrome.com/apps/test#property-getApiDefinitions-apiNames.

https://developer.chrome.com/apps/test#method-getApiDefinitions.
sourceraw docstring

get-api-definitions*cljs

(get-api-definitions* config api-names)
source

get-api-featuresclj/smacro

(get-api-features)
https://developer.chrome.com/apps/test#method-getApiFeatures.
sourceraw docstring

get-api-features*cljs

(get-api-features* config)
source

get-configclj/smacro

(get-config)

Gives configuration options set by the test.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [test-config] where:

|test-config| - https://developer.chrome.com/apps/test#property-callback-testConfig.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-getConfig.

Gives configuration options set by the test.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [test-config] where:

  |test-config| - https://developer.chrome.com/apps/test#property-callback-testConfig.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-getConfig.
sourceraw docstring

get-config*cljs

(get-config* config)
source

get-module-systemclj/smacro

(get-module-system context)
Returns an instance of the module system for the given context.

  |context| - https://developer.chrome.com/apps/test#property-getModuleSystem-context.

https://developer.chrome.com/apps/test#method-getModuleSystem.
sourceraw docstring

get-module-system*cljs

(get-module-system* config context)
source

get-wake-event-pageclj/smacro

(get-wake-event-page)

Returns the wake-event-page API function, which can be called to wake up the extension's event page.

https://developer.chrome.com/apps/test#method-getWakeEventPage.

Returns the wake-event-page API function, which can be called to wake up the extension's event page.

https://developer.chrome.com/apps/test#method-getWakeEventPage.
sourceraw docstring

get-wake-event-page*cljs

(get-wake-event-page* config)
source

is-processing-user-gestureclj/smacro

(is-processing-user-gesture)
https://developer.chrome.com/apps/test#method-isProcessingUserGesture.
sourceraw docstring

is-processing-user-gesture*cljs

(is-processing-user-gesture* config)
source

listen-foreverclj/smacro

(listen-forever event)

|event| - https://developer.chrome.com/apps/test#property-listenForever-event.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-listenForever.

  |event| - https://developer.chrome.com/apps/test#property-listenForever-event.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-listenForever.
sourceraw docstring

listen-forever*cljs

(listen-forever* config event)
source

listen-onceclj/smacro

(listen-once event)

|event| - https://developer.chrome.com/apps/test#property-listenOnce-event.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-listenOnce.

  |event| - https://developer.chrome.com/apps/test#property-listenOnce-event.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-listenOnce.
sourceraw docstring

listen-once*cljs

(listen-once* config event)
source

logclj/smacro

(log message)
Logs a message during internal unit testing.

  |message| - https://developer.chrome.com/apps/test#property-log-message.

https://developer.chrome.com/apps/test#method-log.
sourceraw docstring

log*cljs

(log* config message)
source

notify-failclj/smacro

(notify-fail message)

Notifies the browser process that test code running in the extension failed. This is only used for internal unit testing.

|message| - https://developer.chrome.com/apps/test#property-notifyFail-message.

https://developer.chrome.com/apps/test#method-notifyFail.

Notifies the browser process that test code running in the extension failed.  This is only used for internal unit testing.

  |message| - https://developer.chrome.com/apps/test#property-notifyFail-message.

https://developer.chrome.com/apps/test#method-notifyFail.
sourceraw docstring

notify-fail*cljs

(notify-fail* config message)
source

notify-passclj/smacro

(notify-pass)
(notify-pass message)

Notifies the browser process that test code running in the extension passed. This is only used for internal unit testing.

|message| - https://developer.chrome.com/apps/test#property-notifyPass-message.

https://developer.chrome.com/apps/test#method-notifyPass.

Notifies the browser process that test code running in the extension passed.  This is only used for internal unit testing.

  |message| - https://developer.chrome.com/apps/test#property-notifyPass-message.

https://developer.chrome.com/apps/test#method-notifyPass.
sourceraw docstring

notify-pass*cljs

(notify-pass* config message)
source

on-message*cljs

(on-message* config channel & args)
source

run-testsclj/smacro

(run-tests tests)
  |tests| - https://developer.chrome.com/apps/test#property-runTests-tests.

https://developer.chrome.com/apps/test#method-runTests.
sourceraw docstring

run-tests*cljs

(run-tests* config tests)
source

run-with-user-gestureclj/smacro

(run-with-user-gesture)

Runs the callback in the context of a user gesture.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-runWithUserGesture.

Runs the callback in the context of a user gesture.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [].

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-runWithUserGesture.
sourceraw docstring

run-with-user-gesture*cljs

(run-with-user-gesture* config)
source

send-messageclj/smacro

(send-message message)

Sends a string message to the browser process, generating a Notification that C++ test code can wait for.

|message| - https://developer.chrome.com/apps/test#property-sendMessage-message.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [response] where:

|response| - https://developer.chrome.com/apps/test#property-callback-response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-sendMessage.

Sends a string message to the browser process, generating a Notification that C++ test code can wait for.

  |message| - https://developer.chrome.com/apps/test#property-sendMessage-message.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [response] where:

  |response| - https://developer.chrome.com/apps/test#property-callback-response.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-sendMessage.
sourceraw docstring

send-message*cljs

(send-message* config message)
source

set-exception-handlerclj/smacro

(set-exception-handler)

Sets the function to be called when an exception occurs. By default this is a function which fails the test. This is reset for every test run through test.runTests.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [message exception] where:

|message| - https://developer.chrome.com/apps/test#property-callback-message. |exception| - https://developer.chrome.com/apps/test#property-callback-exception.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-setExceptionHandler.

Sets the function to be called when an exception occurs. By default this is a function which fails the test. This is reset
for every test run through test.runTests.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [message exception] where:

  |message| - https://developer.chrome.com/apps/test#property-callback-message.
  |exception| - https://developer.chrome.com/apps/test#property-callback-exception.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-setExceptionHandler.
sourceraw docstring

set-exception-handler*cljs

(set-exception-handler* config)
source

succeedclj/smacro

(succeed)
(succeed message)
  |message| - https://developer.chrome.com/apps/test#property-succeed-message.

https://developer.chrome.com/apps/test#method-succeed.
sourceraw docstring

succeed*cljs

(succeed* config message)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.test namespace.

Taps all valid non-deprecated events in chromex.app.test namespace.
sourceraw docstring

tap-on-message-eventsclj/smacro

(tap-on-message-events channel & args)

Used to test sending messages to extensions.

Events will be put on the |channel| with signature [::on-message [info]] where:

|info| - https://developer.chrome.com/apps/test#property-onMessage-info.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/apps/test#event-onMessage.

Used to test sending messages to extensions.

Events will be put on the |channel| with signature [::on-message [info]] where:

  |info| - https://developer.chrome.com/apps/test#property-onMessage-info.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/apps/test#event-onMessage.
sourceraw docstring

wait-for-round-tripclj/smacro

(wait-for-round-trip message)

Sends a string message one round trip from the renderer to the browser process and back.

|message| - https://developer.chrome.com/apps/test#property-waitForRoundTrip-message.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [message] where:

|message| - https://developer.chrome.com/apps/test#property-callback-message.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-waitForRoundTrip.

Sends a string message one round trip from the renderer to the browser process and back.

  |message| - https://developer.chrome.com/apps/test#property-waitForRoundTrip-message.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [message] where:

  |message| - https://developer.chrome.com/apps/test#property-callback-message.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/apps/test#method-waitForRoundTrip.
sourceraw docstring

wait-for-round-trip*cljs

(wait-for-round-trip* config message)
source

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

× close