(name)
| 396 | function TestGeneralAccessors() { |
| 397 | var a = new DataView(new ArrayBuffer(256)); |
| 398 | function CheckAccessor(name) { |
| 399 | var f = a[name]; |
| 400 | assertThrows(function() { f(); }, TypeError); |
| 401 | f.call(a, 0, 0); // should not throw |
| 402 | assertThrows(function() { f.call({}, 0, 0); }, TypeError); |
| 403 | f.call(a); |
| 404 | f.call(a, 1); // should not throw |
| 405 | } |
| 406 | CheckAccessor("getUint8"); |
| 407 | CheckAccessor("setUint8"); |
| 408 | CheckAccessor("getInt8"); |
no test coverage detected