Skip to content

Commit

Permalink
Minimize vdom diff in option value test
Browse files Browse the repository at this point in the history
  • Loading branch information
spacejack committed Apr 30, 2017
1 parent 0f9d5f1 commit 08a6638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions render/tests/test-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ o.spec("form inputs", function() {

//test that value reverts to textContent when value omitted
select = {tag: "select", children :[
{tag: "option", text: "ccc"}
{tag: "option", text: "aaa"}
]}

render(root, [select])

o(select.dom.firstChild.value).equals("ccc")
o(select.dom.value).equals("ccc")
o(select.dom.firstChild.value).equals("aaa")
o(select.dom.value).equals("aaa")
})

o("select yields invalid value without children", function() {
Expand Down

0 comments on commit 08a6638

Please sign in to comment.