]> iEval git - app-musicexpo.git/commitdiff
Update tests
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 2 Apr 2015 11:35:15 +0000 (14:35 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 2 Apr 2015 11:35:15 +0000 (14:35 +0300)
t/musicexpo-cache.t
t/musicexpo.t

index 0e45058d63b6b62aafebfb0774ceafec26c8837b..3fc3e1380f5b1dfdc4cb829ef88837de0ceb4b4d 100644 (file)
@@ -26,7 +26,7 @@ is $out, <<'OUT', 'output is correct';
 <!DOCTYPE html>
 <title>Music</title>
 <meta charset="utf-8">
-<link rel="stylesheet" href="/music.css">
+<link rel="stylesheet" href="musicexpo.css">
 <script async defer type="application/javascript" src="player.js"></script>
 
 <div id="player"></div>
@@ -35,10 +35,8 @@ is $out, <<'OUT', 'output is correct';
 <thead>
 <tr><th>Title<th>Artist<th>Album<th>Genre<th>Track<th>Year<th>Type
 <tbody>
-<tr><td>Cellule<td>Silence<td>L&#39;autre endroit<td>Electro<td>01/09<td>2005<td><a href="/music/empty.flac">FLAC</a> <a href="/music/empty.mp3">MP3</a> 
+<tr><td class="title">Cellule<td class="artist">Silence<td class="album">L&#39;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.mp3">MP3</a> 
 </table>
-
-<pre id="json" style="display: none">{"files":[{"album":"L'autre endroit","artist":"Silence","formats":[{"file":"empty.flac","format":"FLAC"},{"file":"empty.mp3","format":"MP3"}],"genre":"Electro","title":"Cellule","tracknumber":"01","tracktotal":"09","year":"2005"}],"prefix":"/music/"}</pre>
 OUT
 
 ok -e $file, 'cache exists';
index beae39b1e0ad2b1569a4bfe95a645325d3ff661d..550c5745cab34eb7531cefdcbacb789a8a2fa1d3 100644 (file)
@@ -18,7 +18,7 @@ is $out, <<'OUT', 'output is correct';
 <!DOCTYPE html>
 <title>Music</title>
 <meta charset="utf-8">
-<link rel="stylesheet" href="/music.css">
+<link rel="stylesheet" href="musicexpo.css">
 <script async defer type="application/javascript" src="player.js"></script>
 
 <div id="player"></div>
@@ -28,6 +28,4 @@ is $out, <<'OUT', 'output is correct';
 <tr><th>Title<th>Artist<th>Album<th>Genre<th>Track<th>Year<th>Type
 <tbody>
 </table>
-
-<pre id="json" style="display: none">{"files":[],"prefix":"/music/"}</pre>
 OUT
This page took 0.025586 seconds and 4 git commands to generate.