diff --git a/cake/tests/cases/libs/view/helpers/javascript.test.php b/cake/tests/cases/libs/view/helpers/javascript.test.php
index 4e02db593..b071d8faf 100644
--- a/cake/tests/cases/libs/view/helpers/javascript.test.php
+++ b/cake/tests/cases/libs/view/helpers/javascript.test.php
@@ -66,6 +66,14 @@ class JavascriptTest extends UnitTestCase {
unset($this->View);
}
+ function testConstruct() {
+ $Javascript =& new JavascriptHelper(array('safe'));
+ $this->assertTrue($Javascript->safe);
+
+ $Javascript =& new JavascriptHelper(array('safe' => false));
+ $this->assertFalse($Javascript->safe);
+ }
+
function testLink() {
$result = $this->Javascript->link('script.js');
$expected = '';
@@ -257,6 +265,11 @@ class JavascriptTest extends UnitTestCase {
$this->assertPattern('/^