コード例 #1
0
 /**
  * @test
  */
 public function loadExtJsInDebugLoadsDebugExtJs()
 {
     $subject = new \TYPO3\CMS\Core\Page\PageRenderer();
     $expectedRegExp = '#<script src="contrib/extjs/ext-all-debug\\.(js|\\d+\\.js|js\\?\\d+)" type="text/javascript"></script>#';
     $subject->loadExtJS(TRUE, TRUE, 'jquery');
     $subject->enableExtJsDebug();
     $out = $subject->render();
     $this->assertRegExp($expectedRegExp, $out);
 }
コード例 #2
0
 /**
  * @test
  */
 public function loadExtJsInDebugLoadsDebugExtJs()
 {
     $subject = new \TYPO3\CMS\Core\Page\PageRenderer();
     $expectedRegExp = '#<script src="sysext/core/Resources/Public/JavaScript/Contrib/extjs/ext-all-debug\\.(js|\\d+\\.js|js\\?\\d+)" type="text/javascript"></script>#';
     $subject->loadExtJS(true, true);
     $subject->enableExtJsDebug();
     $out = $subject->render();
     $this->assertRegExp($expectedRegExp, $out);
 }