tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / forms / script-tests / select-set-length.js
1 description('Tests that setting the .length of an HTMLSelectElement correctly creates and destroys options.');
2
3 var sel = document.createElement('select');
4 document.body.appendChild(sel);
5
6 shouldBe('sel.length', '0');
7
8 sel.length = 200;
9 shouldBe('sel.length', '200');
10
11 sel.length = 100;
12 shouldBe('sel.length', '100');
13
14 sel.length = 180;
15 shouldBe('sel.length', '180');