Issue 57 in xspec: Testing the whitespace nodes

23 views
Skip to first unread message

xs...@googlecode.com

unread,
Apr 1, 2013, 11:40:27 AM4/1/13
to xspe...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 57 by mzhal...@gmail.com: Testing the whitespace nodes
http://code.google.com/p/xspec/issues/detail?id=57

I'm trying to test the text nodes taking into account the difference in the
quantity of spaces.

Here's a sample scenario:

<scenario label="test">
<call template="identity">
<param name="content">
<w:t>
<space> </space>
</w:t>
</param>
</call>


<expect>
<w:t>
<space> </space>
</w:t>
</expect>
</scenario>

And the referenced template:

<xsl:template name="identity">
<xsl:param name="content"/>

<xsl:sequence select="$content"/>
</xsl:template>

I expect this test to fail but it's passed.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

xs...@googlecode.com

unread,
Jul 15, 2013, 1:26:02 PM7/15/13
to xspe...@googlegroups.com
Updates:
Status: Accepted
Owner: fgeor...@gmail.com

Comment #1 on issue 57 by fgeor...@gmail.com: Testing the whitespace nodes
http://code.google.com/p/xspec/issues/detail?id=57

Hi,

Sorry for the late response... Actually, this is on purpose. We want
the above test to succeed exactly for the same reason that we want the
following test to succeed:

{{{
<scenario label="test">
<call template="identity">
<param name="content">
<w:t>
<text>Hello, world!</text>
</w:t>
</param>
</call>
<expect>
<w:t>
<text>Hello, world!</text>
</w:t>
</expect>
</scenario>
}}}

But I found what I think is a bug, because I would say I'd like the
following to fail:

{{{
<scenario label="test">
<call template="identity">
<param name="content">
<w:t>
<space xml:space="preserve"> </space>
</w:t>
</param>
</call>
<expect>
<w:t>
<space xml:space="preserve"> </space>
</w:t>
</expect>
</scenario>
}}}

Reply all
Reply to author
Forward
0 new messages