Lines Matching refs:prop
21 function testReadProperty(that, prop, expected) { argument
23 var actual = that[prop];
25 app.alert('PASS: ' + prop + ' = ' + actual);
27 app.alert('FAIL: ' + prop + ' = ' + actual + ', expected = ' + expected);
34 function testUnreadableProperty(that, prop) { argument
36 var value = that[prop];
37 app.alert('FAIL: ' + prop + ', expected to throw');
39 app.alert('PASS: ' + prop + ' threw ' + e.toString());
43 function testWriteProperty(that, prop, newValue) { argument
45 that[prop] = newValue;
46 var actual = that[prop];
48 app.alert('PASS: ' + prop + ' = ' + actual);
50 app.alert('FAIL: ' + prop + ' = ' + actual + ', expected = ' + newValue);
57 function testWriteIgnoredProperty(that, prop, expected, newValue) { argument
59 that[prop] = newValue;
60 var actual = that[prop];
62 app.alert('PASS: ' + prop + ' = ' + actual);
64 app.alert('FAIL: ' + prop + ' = ' + actual + ', expected = ' + expected);
71 function testUnwritableProperty(that, prop, newValue) { argument
73 that[prop] = newValue;
74 app.alert('FAIL: ' + prop + ' = ' + newValue + ', expected to throw');
76 app.alert('PASS: ' + prop + ' threw ' + e.toString());
80 function testRWProperty(that, prop, expected, newValue) { argument
81 testReadProperty(that, prop, expected);
82 testWriteProperty(that, prop, newValue);
85 function testRIProperty(that, prop, expected, newValue) { argument
86 testReadProperty(that, prop, expected);
87 testWriteIgnoredProperty(that, prop, expected, newValue);
90 function testROProperty(that, prop, expected) { argument
91 testReadProperty(that, prop, expected);
92 testUnwritableProperty(that, prop, 42);
95 function testXXProperty(that, prop) { argument
96 testUnreadableProperty(that, prop);
97 testUnwritableProperty(that, prop, 42);