Minimize vdom diff in option value test
This commit is contained in:
parent
0f9d5f1631
commit
08a6638926
1 changed files with 3 additions and 3 deletions
|
|
@ -122,13 +122,13 @@ o.spec("form inputs", function() {
|
||||||
|
|
||||||
//test that value reverts to textContent when value omitted
|
//test that value reverts to textContent when value omitted
|
||||||
select = {tag: "select", children :[
|
select = {tag: "select", children :[
|
||||||
{tag: "option", text: "ccc"}
|
{tag: "option", text: "aaa"}
|
||||||
]}
|
]}
|
||||||
|
|
||||||
render(root, [select])
|
render(root, [select])
|
||||||
|
|
||||||
o(select.dom.firstChild.value).equals("ccc")
|
o(select.dom.firstChild.value).equals("aaa")
|
||||||
o(select.dom.value).equals("ccc")
|
o(select.dom.value).equals("aaa")
|
||||||
})
|
})
|
||||||
|
|
||||||
o("select yields invalid value without children", function() {
|
o("select yields invalid value without children", function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue