Root element spec for "preceding-sibling"

This commit is contained in:
Yorick Peterse 2015-08-28 16:50:34 +02:00
parent e8377b360a
commit 3a04b1da06
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,14 @@ describe Oga::XPath::Compiler do
end
end
describe 'relative to the root element' do
describe 'preceding-sibling::*' do
it 'returns an empty NodeSet' do
evaluate_xpath(@document.children[0]).should == node_set
end
end
end
describe 'relative to an attribute' do
describe 'preceding-sibling::*' do
it 'returns an empty NodeSet' do