mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: error if ForInStmt is not handled (#6131)
This commit is contained in:
@ -34,12 +34,15 @@ fn test_search_by_attribute_value() {
|
||||
|
||||
fn test_access_parent() {
|
||||
mut dom := generate_dom(generate_temp_html())
|
||||
div_tags := dom.get_by_tag('div')[0]
|
||||
assert div_tags.get_parent() != C.NULL
|
||||
parent := div_tags.get_parent()
|
||||
div_tags := dom.get_by_tag('div')
|
||||
assert div_tags[0].get_parent() != C.NULL
|
||||
/*
|
||||
parent := div_tags[0].get_parent()
|
||||
assert parent != C.NULL
|
||||
for div_tag in div_tags {
|
||||
assert div_tag.get_parent() == parent
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
fn test_search_by_attributes() {
|
||||
|
Reference in New Issue
Block a user