Skip to content

Commit

Permalink
Test numbers of elements returned by CSS selector query
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-h21 committed Nov 11, 2016
1 parent 70a8a6c commit 2998200
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/dom-test.lua
Expand Up @@ -80,8 +80,7 @@ describe("Basic DOM functions", function()
]]
local newobj = dom.parse(document)
local matchedlist = newobj:get_selector_path(objects)
print("matched", #matchedlist)
for k, v in ipairs(matchedlist) do print(v:get_element_name()) end
assert.truthy(#matchedlist == 3)
-- assert.truthy(#obj:prepare_selector(selector)==2)
end)

Expand Down

0 comments on commit 2998200

Please sign in to comment.