Skip to content
Snippets Groups Projects
Commit 8a3bda8d authored by Ghislain Loas's avatar Ghislain Loas
Browse files

fix html5 & qunit failures

parent fca5bcda
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!2061Master,!1964Stable
Pipeline #14 passed with stage
in 6 minutes and 34 seconds
......@@ -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']
);
}
......
......@@ -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);
});
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment