Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 Cu.import("resource://testing-common/services-common/utils.js");
6 function run_test() {
7 let thing = {o: {foo: "foo", bar: ["bar"]}, a: ["foo", {bar: "bar"}]};
8 let ret = TestingUtils.deepCopy(thing);
9 do_check_neq(ret, thing)
10 do_check_neq(ret.o, thing.o);
11 do_check_neq(ret.o.bar, thing.o.bar);
12 do_check_neq(ret.a, thing.a);
13 do_check_neq(ret.a[1], thing.a[1]);
14 do_check_eq(ret.o.foo, thing.o.foo);
15 do_check_eq(ret.o.bar[0], thing.o.bar[0]);
16 do_check_eq(ret.a[0], thing.a[0]);
17 do_check_eq(ret.a[1].bar, thing.a[1].bar);
18 }