Skip to content
Permalink
Browse files

Item9225: fix up some commented out tests, and remove others

git-svn-id: http://svn.foswiki.org/trunk@15648 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
SvenDowideit SvenDowideit
SvenDowideit authored and SvenDowideit committed Oct 21, 2012
1 parent 51fb837 commit e62554d4c9066e87cb67bf314e4d6f3ce3f50cef
Showing with 12 additions and 11 deletions.
  1. +12 −11 UnitTestContrib/test/unit/ViewScriptTests.pm
@@ -419,14 +419,6 @@ sub test_urlparsing {
$this->urltest( '/Sandbox//?topic=System.WebChanges',
'System', 'WebChanges' );

#nested
# $this->urltest($this->{test_subweb}, $this->{test_subweb}, 'WebHome');
# $this->urltest('/'.$this->{test_subweb}, $this->{test_subweb}, 'WebHome');
# $this->urltest('/'.$this->{test_subweb}.'/', $this->{test_subweb}, 'WebHome');
# $this->urltest('//'.$this->{test_subweb}, $this->{test_subweb}, 'WebHome');
# $this->urltest('///'.$this->{test_subweb}, $this->{test_subweb}, 'WebHome');
# $this->urltest('/'.$this->{test_subweb}.'$this->{test_subweb}//', $this->{test_subweb}, 'WebHome');
# $this->urltest('/'.$this->{test_subweb}.'///', $this->{test_subweb}, 'WebHome');
$this->urltest( '/' . $this->{test_subweb} . '/WebHome',
$this->{test_subweb}, 'WebHome' );
$this->urltest( '/' . $this->{test_subweb} . '//WebHome',
@@ -467,9 +459,18 @@ sub test_urlparsing {
$this->urltest( '/' . $this->{test_subweb} . '/WebIndex//?topic=WebChanges',
$this->{test_subweb} . '/WebIndex', 'WebChanges' );

# $this->urltest('/'.$this->{test_subweb}.'?topic=WebChanges', $this->{test_subweb}, 'WebChanges');
# $this->urltest('/'.$this->{test_subweb}.'/?topic=WebChanges', $this->{test_subweb}, 'WebChanges');
# $this->urltest('/'.$this->{test_subweb}.'//?topic=WebChanges', $this->{test_subweb}, 'WebChanges');
$this->urltest( '/' . $this->{test_subweb} . '/Other?topic=WebChanges',
$this->{test_subweb}, 'WebChanges' );

#you may read 'subweb' but as its the last string in the url, foswiki treats it as a topicname
$this->urltest( '/' . $this->{test_subweb} . '?topic=WebChanges',
$this->{test_web}, 'WebChanges' );

#trailing slashes make it a web again
$this->urltest( '/' . $this->{test_subweb} . '/?topic=WebChanges',
$this->{test_subweb}, 'WebChanges' );
$this->urltest( '/' . $this->{test_subweb} . '//?topic=WebChanges',
$this->{test_subweb}, 'WebChanges' );

$this->urltest(
'/' . $this->{test_subweb} . '/WebIndex?topic=System.WebChanges',

0 comments on commit e62554d

Please sign in to comment.
You can’t perform that action at this time.