Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / test / libraries / common / PMA_generate_slider_effect_test.php
blob62458be8dada9269412563a8c2052af7342d6416
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
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
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_generate_slider_effect_test extends PHPUnit_Extensions_OutputTestCase
18 function testGenerateSliderEffectTest()
20 global $cfg;
21 $cfg['InitialSlidersState'] = 'undefined';
23 $id = "test_id";
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()
32 global $cfg;
33 $cfg['InitialSlidersState'] = 'closed';
35 $id = "test_id";
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()
44 global $cfg;
45 $cfg['InitialSlidersState'] = 'disabled';
47 $id = "test_id";
48 $message = "test_message";
50 $this->expectOutputString('<div id="' . $id . '">');
51 PMA_generate_slider_effect($id,$message);