tor-browser

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

test_do_check_matches.js (427B)


      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 }, { x: 1 });
      6 
      7  // Property order is irrelevant.
      8  Assert.deepEqual({ x: "foo", y: "bar" }, { y: "bar", x: "foo" }); // pass
      9 
     10  // Patterns nest.
     11  Assert.deepEqual({ a: 1, b: { c: 2, d: 3 } }, { a: 1, b: { c: 2, d: 3 } });
     12 
     13  Assert.deepEqual([3, 4, 5], [3, 4, 5]);
     14 }