]>
iEval git - app-musicexpo.git/blob - t/musicexpo-cache.t
5 use Test
::More tests
=> 3;
7 use File
::Temp qw
/tempfile/;
12 $file = (tempfile UNLINK
=> 1)[1];
13 @ARGV = (-cache
=> $file, sort <empty
*>);
15 BEGIN { use_ok
('App::MusicExpo'); }
19 open STDOUT
, '>', \
$out;
23 is
$out, <<'OUT', 'output is correct';
26 <meta charset="utf-8">
27 <link rel="stylesheet" href="musicexpo.css">
28 <script async defer type="application/javascript" src="player.js"></script>
30 <div id="player"></div>
34 <tr><th>Title<th>Artist<th>Album<th>Genre<th>Track<th>Year<th>Type
36 <tr><td class="title"><a href="#silence-cellule" data-hash="#silence-cellule">Cellule</a><td class="artist">Silence<td class="album">L'autre endroit<td class="genre">Electro<td class="track">01/09<td class="year">2005<td class="formats"><a href="/music/empty.flac">FLAC</a> <a href="/music/empty.ogg">Vorbis</a>
37 <tr><td class="title"><a href="#silence-cellule" data-hash="#silence-cellule">Cellule</a><td class="artist">Silence<td class="album">L'autre endroit<td class="genre">Electro<td class="track">01/09<td class="year">2005<td class="formats"><a href="/music/empty3.mp3">MP3</a>
38 <tr><td class="title"><a href="#silence-cellule" data-hash="#silence-cellule">Cellule</a><td class="artist">Silence<td class="album">L'autre endroit<td class="genre">Electro<td class="track">1/9<td class="year">2005<td class="formats"><a href="/music/empty4.aac">AAC</a>
42 ok
-e
$file, 'cache exists';
This page took 0.062812 seconds and 4 git commands to generate.