Home | History | Annotate | Download | only in script-tests
      1 description("This tests indexing outside the range of the style object.");
      2 
      3 var element = document.createElement('div');
      4 element.style.color = 'red';
      5 document.documentElement.appendChild(element);
      6 var style = element.style;
      7 
      8 shouldEvaluateTo('style.length', 1);
      9 shouldBeEqualToString('style[0]', 'color');
     10 shouldBeEqualToString('style[1]', '');
     11 shouldBeUndefined('style[-1]')
     12 
     13 document.documentElement.removeChild(element);
     14 
     15 successfullyParsed = true;
     16