Root element spec for "preceding-sibling"
This commit is contained in:
parent
e8377b360a
commit
3a04b1da06
|
@ -46,6 +46,14 @@ describe Oga::XPath::Compiler do
|
||||||
end
|
end
|
||||||
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 'relative to an attribute' do
|
||||||
describe 'preceding-sibling::*' do
|
describe 'preceding-sibling::*' do
|
||||||
it 'returns an empty NodeSet' do
|
it 'returns an empty NodeSet' do
|
||||||
|
|
Loading…
Reference in New Issue