package cascade

  1. Overview
  2. Docs
CSS generation and manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.2.0.tbz
sha256=3315f94068943b3655bf530c1d82b68655524ff3601efedfbaf0a7f886fbf5a1
sha512=0f187c8e17fcbddaa0ad2760930956451062e476b678e1e60daf6ad9e7414fad99a2d70534dfdf8bca0a1092e374d009051f06b0ce9da33f2742cdde0187e75c

doc/cascade.browser/Browser/index.html

Module BrowserSource

Locating the node and the headless browser the render harnesses and the CLI's browser comparison drive, and reporting their absence the same way.

Sourceval getenv : string -> string option

getenv name is the value of the environment variable name, and None when it is unset or empty.

Sourceval executable : string -> bool

executable path is true when path names a file this process may execute.

Sourceval chrome_binary : unit -> string option

chrome_binary () is a headless-capable Chromium: CHROME when that names an executable, then PATH, then the puppeteer and playwright caches, then the macOS application bundle. Each cache keeps one directory per version, so the largest path is the newest build.

Sourceval node_binary : unit -> string option

node_binary () is node: NODE when that names an executable, PATH otherwise.

Sourceval chrome_version : string -> (int * int) option

chrome_version chrome is the (major, minor) the binary reports. The support dataset is keyed by version, so a harness that looks a production up has to say which build it measured rather than assume the one the default contract names.

Sourceval skip : string -> string -> 'a

skip harness reason prints a skip line naming harness and exits with status 0, so a machine without a browser does not fail the suite.

Sourceval suppressed : string -> unit

suppressed harness exits when CASCADE_NO_BROWSER is set: status 0 for the one value that acknowledges the run checks nothing, and status 1 for any other, so silencing harness cannot read as a pass.