r2682 - photoviewer: visual tests improved
Author: joern.zaefferer
Date: Tue Jun 9 06:19:42 2009
New Revision: 2682
Added:
branches/labs/photoviewer/tests/visual/photoviewer/earth-thumb.jpg
(contents, props changed)
branches/labs/photoviewer/tests/visual/photoviewer/earth.jpg
(contents, props changed)
branches/labs/photoviewer/tests/visual/photoviewer/flight-thumb.jpg
(contents, props changed)
branches/labs/photoviewer/tests/visual/photoviewer/flight.jpg
(contents, props changed)
Removed:
branches/labs/photoviewer/tests/visual/photoviewer/photo.jpg
branches/labs/photoviewer/tests/visual/photoviewer/thumb.jpg
Modified:
branches/labs/photoviewer/tests/visual/photoviewer/default.html
branches/labs/photoviewer/tests/visual/photoviewer/photo.php
Log:
photoviewer: visual tests improved
Modified: branches/labs/photoviewer/tests/visual/photoviewer/default.html
==============================================================================
--- branches/labs/photoviewer/tests/visual/photoviewer/default.html
(original)
+++ branches/labs/photoviewer/tests/visual/photoviewer/default.html Tue
Jun 9 06:19:42 2009
@@ -14,14 +14,7 @@
<script type="text/javascript">
$(function() {
- $("#photos").photoviewer({
- rotateIn: function(direction) {
- $(this).fadeIn(hide);
- },
- rotateOut: function(direction, finished) {
- hide = finished;
- }
- });
+ $("#photos").photoviewer();
});
</script>
<style>
@@ -33,11 +26,11 @@
<body>
<div id="photos">
- <a href="photo.php" title="Flight">
- <img src="thumb.jpg" />
+ <a href="photo.php?img=earth" title="Flight">
+ <img src="earth-thumb.jpg" />
</a>
- <a href="photo.php" title="Flight">
- <img src="thumb.jpg" />
+ <a href="photo.php?img=flight" title="Flight">
+ <img src="flight-thumb.jpg" />
</a>
</div>
Added: branches/labs/photoviewer/tests/visual/photoviewer/earth-thumb.jpg
==============================================================================
Binary file. No diff available.
Added: branches/labs/photoviewer/tests/visual/photoviewer/earth.jpg
==============================================================================
Binary file. No diff available.
Added: branches/labs/photoviewer/tests/visual/photoviewer/flight-thumb.jpg
==============================================================================
Binary file. No diff available.
Added: branches/labs/photoviewer/tests/visual/photoviewer/flight.jpg
==============================================================================
Binary file. No diff available.
Modified: branches/labs/photoviewer/tests/visual/photoviewer/photo.php
==============================================================================
--- branches/labs/photoviewer/tests/visual/photoviewer/photo.php (original)
+++ branches/labs/photoviewer/tests/visual/photoviewer/photo.php Tue Jun 9
06:19:42 2009
@@ -1,5 +1,5 @@
<?php
usleep(800000);
header("Content-type: image/jpeg");
-echo file_get_contents("photo.jpg");
+echo file_get_contents($_GET['img'] . ".jpg");
?>