Skip to content

Commit

Permalink
use a relative path for the CSS location
Browse files Browse the repository at this point in the history
Otherwise the tests will only pass when run from a very specific
location.
  • Loading branch information
Matt Boyle authored and petdance committed Sep 1, 2010
1 parent 2ab04ae commit dc1f872
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion t/01_highlighting.t
Expand Up @@ -23,7 +23,7 @@ my $hilite;
for my $lang (qw(perl perl6)) {
my $syntax_file = catfile('syntax', "$lang.vim");
my $ftplugin_file = catfile('ftplugin', "$lang.vim");
my $css_url = 'file:///' . join('/', getcwd(), 't', 'vim_syntax.css');
my $css_url = join('/', '..', '..', 't', 'vim_syntax.css');

$hilite = Text::VimColor->new(
html_full_page => 1,
Expand Down
2 changes: 1 addition & 1 deletion t_source/perl/advanced.t.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>[untitled]</title>
<link rel="stylesheet" type="text/css" href="file:////home/hinrik/src/vim-perl/t/vim_syntax.css" />
<link rel="stylesheet" type="text/css" href="../../t/vim_syntax.css" />
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion t_source/perl/basic.t.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>[untitled]</title>
<link rel="stylesheet" type="text/css" href="file:////home/hinrik/src/vim-perl/t/vim_syntax.css" />
<link rel="stylesheet" type="text/css" href="../../t/vim_syntax.css" />
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion t_source/perl6/basic.t.html
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>[untitled]</title>
<link rel="stylesheet" type="text/css" href="file:////home/hinrik/src/vim-perl/t/vim_syntax.css" />
<link rel="stylesheet" type="text/css" href="../../t/vim_syntax.css" />
</head>
<body>

Expand Down

0 comments on commit dc1f872

Please sign in to comment.