|
|
|
[
Permlink
| « Hide
]
Benjamin Cox - 25/Sep/05 12:01 PM
Attached test case "urlXPathProblem.lzx"
Added unit test //depot/lps-dev/test/bugs/lpp-737.lzx
Also fixes Jim's testcase for hadling escaped strings, e.g. \' -> '. Checked in lzunit test at //depot/lps-dev/test/lfc/data/lzunit-lzparsedpath.lzx#1
testcase does not work, string literal can start with a single-quote or a double-quote!
--- <canvas debug="true" > <dataset name="mydata"> <record uri="http://www.google.com">Slashes text</record> <record uri="http:www.google.com">No-slashes text</record> </dataset> <simplelayout spacing="5"/> <!-- does work --> <text bgcolor="0xeaeaea" >double-single-double</text> <text x="10" datapath="mydata:/record[@uri='http://www.google.com']/@uri" /> <!-- does not work! --> <text bgcolor="0xeaeaea" >single-double-single</text> <text x="10" datapath='mydata:/record[@uri="http://www.google.com"]/@uri' /> <!-- this works, too --> <text bgcolor="0xeaeaea" >just a test</text> <text x="10" datapath='mydata:/record[@uri="http:www.google.com"]/@uri' /> </canvas> --- |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||