Lines Matching refs:props
17 var props = Object.keys(arr);
19 assert (props.indexOf("0") !== -1);
20 assert (props.indexOf("1") !== -1);
21 assert (props.indexOf("2") !== -1);
22 assert (props.length === 3);
26 props = Object.keys(obj);
28 assert (props.indexOf("key1") !== -1);
29 assert (props.indexOf("key2") !== -1);
30 assert (props.indexOf("key3") !== -1);
31 assert (props.indexOf("key4") !== -1);
32 assert (props.indexOf("key5") !== -1);
33 assert (props.length === 5);
41 props = Object.keys(obj2);
43 assert (props.indexOf("key_one") !== -1);
44 assert (props.indexOf("key_two") === -1);
45 assert (props.length === 1);
58 props = Object.keys (new Child());
60 assert (props.indexOf("prop") !== -1);
61 assert (props.indexOf("method") !== -1);
62 assert (props.length === 2);
87 props = Object.keys(o);
88 assert(props.length === 2);
89 assert(o[props[0]] === "OK");
90 assert(o[props[1]] === "OK");