From 70e4942d3e769bbdf94470868ae297f10aa9e3c7 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sat, 21 Mar 2015 00:59:40 +0100 Subject: [PATCH] CSS parser spec for "+ b" --- spec/oga/css/parser/axes_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/oga/css/parser/axes_spec.rb b/spec/oga/css/parser/axes_spec.rb index 6b66b91..dd84b55 100644 --- a/spec/oga/css/parser/axes_spec.rb +++ b/spec/oga/css/parser/axes_spec.rb @@ -28,6 +28,12 @@ describe Oga::CSS::Parser do ) end + it 'parses the + axis with an identifier only at the right-hand side' do + parse_css('+ y').should == parse_xpath( + 'following-sibling::*[1]/self::y' + ) + end + it 'parses the + axis called on another + axis' do parse_css('a + b + c').should == parse_xpath( 'descendant::a/following-sibling::*[1]/self::b/' \