Bug #22390 ยป 14018.diff
tests/t3lib/t3lib_pagerenderer_testcase.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* test enable ExtJsDebug
|
||
*
|
||
* @test
|
||
*/
|
||
public function testEnableExtJsDebug() {
|
||
$expectedReturnValue = '<script src="contrib/extjs/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>' . LF . '<script src="contrib/extjs/ext-all-debug.js" type="text/javascript"></script>';
|
||
public function enableExtJsDebugIncludesExtAllDebugJavaScript() {
|
||
$this->fixture->loadExtJS(TRUE, TRUE, 'jquery');
|
||
$this->fixture->enableExtJsDebug();
|
||
$out = $this->fixture->render();
|
||
$this->assertContains(
|
||
$expectedReturnValue,
|
||
$out
|
||
'<script src="contrib/extjs/ext-all-debug.js" ' .
|
||
'type="text/javascript"></script>',
|
||
$this->fixture->render()
|
||
);
|
||
}
|
||