1eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockdescription("This tests indexing outside the range of the computed style object."); 2eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 3eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockvar element = document.createElement('div'); 4eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockelement.style.color = 'rgb(120, 120, 120)'; 5eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockdocument.documentElement.appendChild(element); 6eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockvar computedStyle = window.getComputedStyle(element, null); 7eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 8eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlockshouldBeEqualToString('typeof computedStyle.length', 'number'); 9eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlockshouldBeEqualToString('computedStyle[computedStyle.length]', ''); 10eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlockshouldBeUndefined('computedStyle[-1]') 11eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 12eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Blockdocument.documentElement.removeChild(element); 13eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve Block 14eff69b907ef2cd3a9af0351287a929c66f58e3f6Steve BlocksuccessfullyParsed = true; 15