Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / CSSStyleDeclaration / script-tests / css-computed-style-item.js
blob9a0b14561fbdb985e5b29a8062c1aae9c3d25b91
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);