Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d21b063b
Commit
d21b063b
authored
Mar 01, 2009
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 135543 - @Support::Templates::testitems does not list all templates
Patch by ddkilzer@theracingworld.com (David D. Kilzer), r=gerv, justdave
parent
788a709d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
005whitespace.t
t/005whitespace.t
+15
-12
No files found.
t/005whitespace.t
View file @
d21b063b
...
...
@@ -18,34 +18,37 @@
# Rights Reserved.
#
# Contributor(s): Jacob Steenhagen <jake@acutex.net>
# David D. Kilzer <ddkilzer@kilzer.net>
#
#################
#Bugzilla Test 5#
#####no_tabs#####
BEGIN
{
use
lib
"t/"
;
}
BEGIN
{
use
Support::
Files
;
}
BEGIN
{
use
Support::
Templates
;
}
BEGIN
{
$tests
=
@
Support::Files::
testitems
;
}
BEGIN
{
$tests
+=
@
Support::Templates::
testitems
;
}
BEGIN
{
use
Test::
More
tests
=>
$tests
;
}
use
diagnostics
;
use
strict
;
use
lib
't'
;
use
Support::
Files
;
use
Support::
Templates
;
use
File::
Spec
0.82
;
use
Test::
More
tests
=>
(
scalar
(
@
Support::Files::
testitems
)
+
scalar
(
@
Support::Templates::
actual_files
));
my
@testitems
=
@
Support::Files::
testitems
;
my
@templates
=
map
(
$
Support::Templates::
include_path
.
"/"
.
$_
,
@
Support::Templates::
testitem
s
);
my
@templates
=
map
(
File::
Spec
->
catfile
(
$
Support::Templates::
include_path
,
$_
)
,
@
Support::Templates::
actual_file
s
);
push
(
@testitems
,
@templates
);
foreach
my
$file
(
@testitems
)
{
open
(
FILE
,
"$file"
);
my
@file
=
<
FILE
>
;
close
(
FILE
);
if
(
grep
/\t/
,
@file
)
{
if
(
grep
/\t/
,
<
FILE
>
)
{
ok
(
0
,
"$file contains tabs --WARNING"
);
}
else
{
ok
(
1
,
"$file has no tabs"
);
}
close
(
FILE
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment