Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / CSSStyleDeclaration / script-tests / css-style-item.js
blob29b3784139a2633c75b4e0879e7bd846f66cb74f
1 description("This tests indexing outside the range of the style object.");
3 var element = document.createElement('div');
4 element.style.color = 'red';
5 document.documentElement.appendChild(element);
6 var style = element.style;
8 shouldEvaluateTo('style.length', 1);
9 shouldBeEqualToString('style[0]', 'color');
10 shouldBeEqualToString('style[1]', '');
11 shouldBeUndefined('style[-1]')
13 document.documentElement.removeChild(element);