Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 539b8b5

Browse files
author
chrisisbeef
committed
Repackaging Source
1 parent 293afab commit 539b8b5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/javascript/TestCore.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
* The ESAPI is published by OWASP under the BSD license. You should read and accept the
1111
* LICENSE before you use, modify, and/or redistribute this software.
1212
*/
13+
14+
function setup() {
15+
org.owasp.esapi.ESAPI.initialize();
16+
}
17+
1318
function testNamespace() {
1419
assertNotNull($namespace);
1520
assertEvaluatesToTrue($namespace('org.owasp.esapi.testnamespace'));

src/test/javascript/testCore.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
<script type="text/javascript" language="JavaScript" src="../../../dist/resources/Base.esapi.properties.js"></script>
2525
<script type="text/javascript" language="JavaScript" src="../resources/TestCode.esapi.properties.js"></script>
2626
<script type="text/javascript" language="JavaScript" src="TestCore.js"></script>
27-
<script type="text/javascript" language="JavaScript">
28-
org.owasp.esapi.ESAPI.initialize();
29-
</script>
3027
</head>
3128
<body>
3229
<div id="test"></div>

0 commit comments

Comments
 (0)