Home | History | Annotate | Download | only in script-tests
      1 description("This tests indexing outside the range of the computed style object.");
      2 
      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);
      7 
      8 shouldBeEqualToString('typeof computedStyle.length', 'number');
      9 shouldBeEqualToString('computedStyle[computedStyle.length]', '');
     10 shouldBeUndefined('computedStyle[-1]')
     11 
     12 document.documentElement.removeChild(element);
     13 
     14 successfullyParsed = true;
     15