tor-browser

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

test_do_check_matches_failing.js (514B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 function run_test() {
      5  Assert.deepEqual({ x: 1 }, {}); // fail: all pattern props required
      6  Assert.deepEqual({ x: 1 }, { x: 2 }); // fail: values must match
      7  Assert.deepEqual({ x: undefined }, {});
      8 
      9  // 'length' property counts, even if non-enumerable.
     10  Assert.deepEqual([3, 4, 5], [3, 5, 5]); // fail; value doesn't match
     11  Assert.deepEqual([3, 4, 5], [3, 4, 5, 6]); // fail; length doesn't match
     12 }