Home | History | Annotate | Download | only in harmony

Lines Matching defs:props

33 function props(x) {
39 assertEquals(0, props({}).length, "olen0");
40 assertEquals(1, props({x:1}).length, "olen1");
41 assertEquals(2, props({x:1, y:2}).length, "olen2");
43 assertArrayEquals(["x"], props({x:1}), "x");
44 assertArrayEquals(["x", "y"], props({x:1, y:2}), "xy");
45 assertArrayEquals(["x", "y", "zoom"], props({x:1, y:2, zoom:3}), "xyzoom");
47 assertEquals(0, props([]).length, "alen0");
48 assertEquals(1, props([1]).length, "alen1");
49 assertEquals(2, props([1,2]).length, "alen2");
51 assertArrayEquals(["0"], props([1]), "0");
52 assertArrayEquals(["0", "1"], props([1,2]), "01");
53 assertArrayEquals(["0", "1", "2"], props([1,2,3]), "012");
62 assertArrayEquals(a, props(o), "charcodes");
65 assertEquals(0, props(a).length, "proplen0");
67 assertEquals(1, props(a).length, "proplen1");
69 assertEquals(2, props(a).length, "proplen2");
71 assertEquals(3, props(a).length, "proplen3");