[Wact-cvs] wact/tests/cases/template/components/html bbcode.test.php,1.7,1.8
Status: Pre-Alpha
Brought to you by:
jeffmoore
From: Norbert M. <nor...@us...> - 2006-01-28 22:11:52
|
Update of /cvsroot/wact/wact/tests/cases/template/components/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16939/components/html Modified Files: bbcode.test.php Log Message: adding TemplateFinder to template tests Index: bbcode.test.php =================================================================== RCS file: /cvsroot/wact/wact/tests/cases/template/components/html/bbcode.test.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** bbcode.test.php 24 Oct 2005 09:09:28 -0000 1.7 --- bbcode.test.php 28 Jan 2006 22:11:44 -0000 1.8 *************** *** 4,7 **** --- 4,8 ---- * @version $Id$ */ + require_once WACT_ROOT . '/template/factory.inc.php'; require_once WACT_ROOT . '/template/template.inc.php'; require_once WACT_ROOT . '/template/components/html/bbcode.inc.php'; *************** *** 11,20 **** class HtmlBBCodeComponentTestCase extends TagComponentTestBase { ! function testJavascriptInjection() { $Template = '<html:bbcode id="test">'; RegisterTestingTemplate('/components/html/bbcode/javascriptinjection.html', $Template); ! $Page =& new Template('/components/html/bbcode/javascriptinjection.html'); $BBCode =& $Page->getChild('test'); --- 12,27 ---- class HtmlBBCodeComponentTestCase extends TagComponentTestBase { ! function setUp() { ! parent::setUp(); ! ! $this->TemplateFinder =& new TemplateFinder(); ! } ! ! function testJavascriptInjection() { $Template = '<html:bbcode id="test">'; RegisterTestingTemplate('/components/html/bbcode/javascriptinjection.html', $Template); ! $Page =& $this->TemplateFinder->getResource('/components/html/bbcode/javascriptinjection.html'); $BBCode =& $Page->getChild('test'); |