Minimize vdom diff in option value test

This commit is contained in:
spacejack 2017-04-30 15:14:44 -04:00
parent 0f9d5f1631
commit 08a6638926

View file

@ -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() {