[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/tests/cases/examples/tags/html_macro/ -> javascript.test.php (source)

   1  <?php
   2  /**
   3   * @package WACT_TESTS
   4   * @version $Id: javascript.test.php,v 1.1 2004/11/26 22:14:19 quipo Exp $
   5   */
   6  
   7  /**
   8   * @package WACT_TESTS
   9   */
  10  class ExamplesTagsJavascriptTestCase extends WACTWebTestCase {
  11      function ExamplesTagsJavascriptTestCase($name = 'WebTestCase') {
  12          $this->WACTWebTestCase($name);
  13      }
  14  
  15      function testExists() {
  16          $this->assertTrue($this->get(WACT_EXAMPLES_HTTP_PATH . '/tags/html_macro/javascript.php'));
  17          $this->assertNormalPage();
  18          $this->assertWantedPattern('/<script type=\"text\/javascript"/');
  19          $this->assertWantedPattern('/document\.write\(unescape\(\'%3c/');
  20          $this->assertNoUnWantedPattern('/Html tags will encoded as well/');
  21      }
  22  
  23  }
  24  ?>


Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5