From 27459b2280c19f3202f2210bcdc3c3e52bc3daa1 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 21 Aug 2013 11:49:33 +0200 Subject: [PATCH] Used another XPath expression in the test to make it more robust. --- t/creoleaddition.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/creoleaddition.t b/t/creoleaddition.t index f533722c..5e5ef2a4 100644 --- a/t/creoleaddition.t +++ b/t/creoleaddition.t @@ -1,6 +1,6 @@ #!/usr/bin/env perl # Copyright (C) 2008 Weakish Jiang -# Copyright (C) 2009 Alex Schroeder +# Copyright (C) 2009-2013 Alex Schroeder # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -56,8 +56,6 @@ H2O
dt1
dd1
; {{{dt1}}}\n:dd1
dt1
dd1
-;[[http://www.toto.com|toto]] \n :Site of my friend Toto -
toto
Site of my friend Toto
; {{{[[http://www.toto.com|toto]]}}} \n : Site of my friend Toto
[[http://www.toto.com|toto]]
Site of my friend Toto
; what if we have {{{[[http://example.com]]}}} and {{{[[ftp://example.org]]}}}\n: And {{{[[http://example.net]]}}} @@ -75,6 +73,8 @@ H2O EOT xpath_run_tests(split('\n',<<'EOT')); +;[[http://www.toto.com|toto]] \n :Site of my friend Toto +//dl/dt[a[@class="url http outside"][@href="http://www.toto.com"][text()="toto"]]/following-sibling::dd[text()="Site of my friend Toto"] ##http://example.com## //code/a[@class="url http"][@href="http://example.com"][text()="http://example.com"] ##[[wiki page]] will work##