1 description("This tests indexing outside the range of the computed style object.");
3 var element
= document
.createElement('div');
4 element
.style
.color
= 'rgb(120, 120, 120)';
5 document
.documentElement
.appendChild(element
);
6 var computedStyle
= window
.getComputedStyle(element
, null);
8 shouldBeEqualToString('typeof computedStyle.length', 'number');
9 shouldBeEqualToString('computedStyle[computedStyle.length]', '');
10 shouldBeUndefined('computedStyle[-1]')
12 document
.documentElement
.removeChild(element
);