2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for PMA_generate_slider_effect from common.lib.php
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_generate_slider_effect_test.php
8 * @group common.lib-tests
14 require_once 'libraries/common.lib.php';
16 class PMA_generate_slider_effect_test
extends PHPUnit_Extensions_OutputTestCase
18 function testGenerateSliderEffectTest()
21 $cfg['InitialSlidersState'] = 'undefined';
24 $message = "test_message";
26 $this->expectOutputString('<div id="' . $id . '" class="pma_auto_slider" title="' . htmlspecialchars($message) . '">' . "\n" . ' ');
27 PMA_generate_slider_effect($id,$message);
30 function testGenerateSliderEffectTestClosed()
33 $cfg['InitialSlidersState'] = 'closed';
36 $message = "test_message";
38 $this->expectOutputString('<div id="' . $id . '" style="display: none; overflow:auto;" class="pma_auto_slider" title="' . htmlspecialchars($message) . '">' . "\n" . ' ');
39 PMA_generate_slider_effect($id,$message);
42 function testGenerateSliderEffectTestDisabled()
45 $cfg['InitialSlidersState'] = 'disabled';
48 $message = "test_message";
50 $this->expectOutputString('<div id="' . $id . '">');
51 PMA_generate_slider_effect($id,$message);