Skip to content

Commit

Permalink
improve unit tests for <option>
Browse files Browse the repository at this point in the history
  • Loading branch information
client9 committed Apr 26, 2010
1 parent 3ae59e7 commit 98974ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion specs/parser/spec.js
Expand Up @@ -502,6 +502,10 @@ function testForm(doc, isenvjs) {
equals(form.e5.options.item(0).value, 'v5', 'form.e5.options[0].value');
equals(form.e5.options.item(1).value, 'opt2', 'form.e5.options[1].value');

// test the option.index
equals(form.e5.options[0].index, 0, 'form.e5.options[0].index');
equals(form.e5.options[1].index, 1, 'form.e5.options[1].index');

// firefox bugs or incomplete behavior
// some of these run under the doc and innerHTML tests, but
// don't work under the DOMAPI test
Expand Down Expand Up @@ -635,7 +639,7 @@ test('Form Named Elements via DOMAPI', function() {
var opt = new Option('v5', 'v5', true, true);
opt.name ='o1';
select.add(opt, null);
// select.appendChild(opt);
// select.appendChild(opt);

opt = new Option('opt2', 'opt2');
opt.id = 'o2';
Expand Down

0 comments on commit 98974ab

Please sign in to comment.