Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
rubygem-nokogiri-17
rubygem-nokogiri-1.7-fix-xslt-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-nokogiri-1.7-fix-xslt-test.patch of Package rubygem-nokogiri-17
From bac0a67fc2b05a78d724437d58955de00c10bf67 Mon Sep 17 00:00:00 2001 From: Mike Dalessio <mike.dalessio@gmail.com> Date: Thu, 14 Sep 2017 16:11:42 -0400 Subject: [PATCH] fix test whose behavior changed in libxslt 1.1.30 note that the test is backwards-compatible with earlier versions of libxslt. this is the commit in libxslt that introduced the change in behavior: commit 45ea7fc4554ee2f39f0a301346f7bd24108c8228 Author: Nick Wellnhofer <wellnhofer@aevum.de> Date: Thu May 26 11:38:28 2016 +0200 Consider built-in templates in apply-imports The XSLT specification says about the built-in templates: "The built-in template rules are treated as if they were imported implicitly before the stylesheet and so have lower import precedence than all other template rules." That means that the apply-imports instruction needs to consider built-in templates, as "xsl:apply-imports processes the current node using only template rules that were imported into the stylesheet element". Fixes bug #654150: https://bugzilla.gnome.org/show_bug.cgi?id=654150 --- test/xslt/test_custom_functions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/xslt/test_custom_functions.rb b/test/xslt/test_custom_functions.rb index 5e3e950a..b373da04 100644 --- a/test/xslt/test_custom_functions.rb +++ b/test/xslt/test_custom_functions.rb @@ -55,7 +55,7 @@ EOXML </xsl:stylesheet> EOXSL result = xsl.transform @xml - assert_equal 'FOO', result.css('title').first.text + assert_match(/FOO/, result.css('title').first.text) end @@ -126,7 +126,7 @@ EOXSL </xsl:stylesheet> EOXSL result = xsl.transform @xml - assert_equal 'FOO', result.css('title').first.text + assert_match(/FOO/, result.css('title').first.text) end end end -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor