diff --git a/library/ZendAfi/View/Helper/MonocleReaderServerSide.php b/library/ZendAfi/View/Helper/MonocleReaderServerSide.php index c80c9421d9f8fbe6520f6b6be780ede2464c7ccf..8a710caa8a796f11f2f3fdffdeeb67fbfda6f73a 100644 --- a/library/ZendAfi/View/Helper/MonocleReaderServerSide.php +++ b/library/ZendAfi/View/Helper/MonocleReaderServerSide.php @@ -108,7 +108,8 @@ class ZendAfi_View_Helper_MonocleReaderServerSide extends Zend_View_Helper_HtmlE 'controller' => 'bib-numerique', 'action' => 'full-screen', 'id' => $ressource->getId()], - '<img src="'.URL_ADMIN_IMG.'picto/show.gif" title="'.$this->view->_('Plein écran').'">', + $this->view->tagImg(URL_ADMIN_IMG . 'picto/show.gif', + ['alt' => $this->view->_('Plein écran')]), ['data-ajax' => 'false'] ); } diff --git a/public/opac/java/slider_navigation/tests/agenda_slider_test.js b/public/opac/java/slider_navigation/tests/agenda_slider_test.js index dc6cbeeef1be6ef741df1d8ea7a24e803b09d51c..b9327a596ce7e24217f4b573f94492b3c4da2c43 100644 --- a/public/opac/java/slider_navigation/tests/agenda_slider_test.js +++ b/public/opac/java/slider_navigation/tests/agenda_slider_test.js @@ -103,21 +103,21 @@ test('window height should be 80px', function() { }); -QUnit.asyncTest('cycle should trigger click and move articles', function( assert ) { +QUnit.asyncTest('cycle should not trigger click and not move articles', function( assert ) { expect( 1 ); - + fixture.trigger('click'); setTimeout(function() { - deepEqual(fixture.find('div.news_row').css('margin-left'), '-110px', fixture.html()); + deepEqual(fixture.find('div.news_row').css('margin-left'), '0px', fixture.html()); QUnit.start(); - }, 1000); + }, 1500); }); -QUnit.asyncTest('cycle should not trigger click and not move articles', function( assert ) { +QUnit.asyncTest('cycle should trigger click and move articles', function( assert ) { expect( 1 ); - fixture.trigger('click'); + setTimeout(function() { - deepEqual(fixture.find('div.news_row').css('margin-left'), '0px', fixture.html()); + deepEqual(fixture.find('div.news_row').css('margin-left'), '-110px', fixture.html()); QUnit.start(); - }, 1500); + }, 1000); }); diff --git a/tests/application/modules/telephone/controllers/BibNumeriqueControllerTest.php b/tests/application/modules/telephone/controllers/BibNumeriqueControllerTest.php index bb3b1c787d9392d5426332b79bab9666ef6c9afb..f7d09f827d82eb46687adbdb94ddcaea6b9e88e6 100644 --- a/tests/application/modules/telephone/controllers/BibNumeriqueControllerTest.php +++ b/tests/application/modules/telephone/controllers/BibNumeriqueControllerTest.php @@ -87,6 +87,7 @@ class BibNumeriqueControllerTelephoneViewAlbumMonumentsTest extends BibNumerique $this->assertXPath('//ul[@data-role="listview"]//li[@data-role="list-divider"]//a[contains(@href, "media/versailles.epub")]//img[contains(@src, "epub.png")]'); } + /** @test */ public function pageShouldBeHTML5Valid() { $this->assertHTML5();