An API to test IDL schema specifications.
An API to test IDL schema specifications. * available since Chrome master * https://developer.chrome.com/extensions/idltest
(get-array-buffer)
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 [buffer] where:
|buffer| - https://developer.chrome.com/extensions/idltest#property-cb-buffer.
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/extensions/idltest#method-getArrayBuffer.
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 [buffer] where: |buffer| - https://developer.chrome.com/extensions/idltest#property-cb-buffer. 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/extensions/idltest#method-getArrayBuffer.
(nocompile-func switch)
This function should not have C++ code autogenerated (the variable name |switch| should cause compile errors if it does). But the name should get defined and made visible from within extensions/apps code.
|switch| - https://developer.chrome.com/extensions/idltest#property-nocompileFunc-switch.
https://developer.chrome.com/extensions/idltest#method-nocompileFunc.
This function should not have C++ code autogenerated (the variable name |switch| should cause compile errors if it does). But the name should get defined and made visible from within extensions/apps code. |switch| - https://developer.chrome.com/extensions/idltest#property-nocompileFunc-switch. https://developer.chrome.com/extensions/idltest#method-nocompileFunc.
(nodefine-func switch)
This function should not have C++ code autogenerated (the variable name |switch| should cause compile errors if it does). The name should also never be defined in Javascript and invisible to extensions/apps code.
|switch| - https://developer.chrome.com/extensions/idltest#property-nodefineFunc-switch.
https://developer.chrome.com/extensions/idltest#method-nodefineFunc.
This function should not have C++ code autogenerated (the variable name |switch| should cause compile errors if it does). The name should also never be defined in Javascript and invisible to extensions/apps code. |switch| - https://developer.chrome.com/extensions/idltest#property-nodefineFunc-switch. https://developer.chrome.com/extensions/idltest#method-nodefineFunc.
(send-array-buffer input)
Functions for testing binary data request/response parameters. The first two just return back the bytes they were passed in an array.
|input| - https://developer.chrome.com/extensions/idltest#property-sendArrayBuffer-input.
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 [array] where:
|array| - https://developer.chrome.com/extensions/idltest#property-cb-array.
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/extensions/idltest#method-sendArrayBuffer.
Functions for testing binary data request/response parameters. The first two just return back the bytes they were passed in an array. |input| - https://developer.chrome.com/extensions/idltest#property-sendArrayBuffer-input. 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 [array] where: |array| - https://developer.chrome.com/extensions/idltest#property-cb-array. 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/extensions/idltest#method-sendArrayBuffer.
(send-array-buffer-view input)
TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView], I think because ArrayBufferView isn't an instantiable type. The best we might be able to do is have a 'choices' list including all the typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc.
|input| - https://developer.chrome.com/extensions/idltest#property-sendArrayBufferView-input.
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 [array] where:
|array| - https://developer.chrome.com/extensions/idltest#property-cb-array.
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/extensions/idltest#method-sendArrayBufferView.
TODO(asargent) - we currently can't have [instanceOf=ArrayBufferView], I think because ArrayBufferView isn't an instantiable type. The best we might be able to do is have a 'choices' list including all the typed array subclasses like Uint8Array, Uint16Array, Float32Array, etc. |input| - https://developer.chrome.com/extensions/idltest#property-sendArrayBufferView-input. 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 [array] where: |array| - https://developer.chrome.com/extensions/idltest#property-cb-array. 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/extensions/idltest#method-sendArrayBufferView.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.idltest namespace.
Taps all valid non-deprecated events in chromex.ext.idltest namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close