[TYPO3-core] RFC #14018: Bug: Unit test failure in t3lib_PageRenderer_testcase

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Apr 13 21:48:19 CEST 2010


Hi Oli,

all the testLoad<Framework> will now probably fail with the latest
addition (RFC#13998) which adds "?<timestamp>" to all rendered
javascript filenames (or in the filename, depending on the new setting).

So all those tests would need to be adapted:

In stead of this:
  contrib/prototype/prototype.js

if could also be this:
  contrib/prototype/prototype.js?1234656

or this:
  contrib/prototype/prototype.123456.js

Maybe checking with a regexp (blabla...prototype\.(js|js?\d+|\d\.js)) ?

Cheers,
Ernesto

Oliver Klee schrieb am 13.04.2010 21:29:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=14018
> 
> Branches:
> trunk
> 
> Problem:
> Using the latest trunk, I get the following test failure:
> 
> Testsuite: t3lib_PageRenderer_testcase
> 
> testEnableExtJsDebug
> ! Failure in test case testEnableExtJsDebug
> File:
> /home/klee/eclipse/typo3_src/tests/t3lib/t3lib_pagerenderer_testcase.php
> Line: 467:
> Description
> Failed asserting that <text> contains "<script
> src="contrib/extjs/adapter/jquery/ext-jquery-adapter.js"
> type="text/javascript"></script> <script
> src="contrib/extjs/ext-all-debug.js" type="text/javascript"></script>".
> 
> 
> Solution:
> Only check for the second line (as this is the only line relevant to
> this test anyway).
> 


More information about the TYPO3-team-core mailing list