tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

assert.rst (765B)


      1 .. _assert-module:
      2 
      3 Assert module
      4 =============
      5 
      6 For XPCShell tests and mochitests, ``Assert`` is already present as an
      7 instantiated global to which you can refer - you don't need to construct it
      8 yourself. You can immediately start using ``Assert.ok`` and similar methods as
      9 test assertions.
     10 
     11 The full class documentation follows, but it is perhaps worth noting that this
     12 API is largely identical to
     13 `NodeJS' assert module <https://nodejs.org/api/assert.html>`_, with some
     14 omissions/changes including strict mode and string matching.
     15 
     16 .. js:autoclass:: Assert
     17  :members: ok, equal, notEqual, strictEqual, notStrictEqual, deepEqual, notDeepEqual,
     18            greater, less, greaterOrEqual, lessOrEqual, stringContains, stringMatches,
     19            throws, rejects, *