aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 18:36:47 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 18:36:47 +0000
commit8400aa6e4fc0d5941729654487c1b09f9ceb1193 (patch)
tree2f72eae91200f50681590f1341dc7aa614e4bfd9
parent79539637388ef38fdec0663b6796357af9d1a0fc (diff)
downloadelgg-8400aa6e4fc0d5941729654487c1b09f9ceb1193.tar.gz
elgg-8400aa6e4fc0d5941729654487c1b09f9ceb1193.tar.bz2
Commented some js Test files
git-svn-id: http://code.elgg.org/elgg/trunk@7176 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/js/tests/ElggAjaxOptionsTest.js4
-rw-r--r--engine/js/tests/ElggLibTest.js3
-rw-r--r--engine/js/tests/ElggSecurityTest.js4
3 files changed, 8 insertions, 3 deletions
diff --git a/engine/js/tests/ElggAjaxOptionsTest.js b/engine/js/tests/ElggAjaxOptionsTest.js
index 1f6f251de..8a2b7f574 100644
--- a/engine/js/tests/ElggAjaxOptionsTest.js
+++ b/engine/js/tests/ElggAjaxOptionsTest.js
@@ -1,8 +1,10 @@
+/**
+ * Tests elgg.ajax.handleOptions() with all of the possible valid inputs
+ */
ElggAjaxOptionsTest = TestCase("ElggAjaxOptionsTest");
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsNoArgs = function() {
assertNotUndefined(elgg.ajax.handleOptions());
-
};
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrl = function() {
diff --git a/engine/js/tests/ElggLibTest.js b/engine/js/tests/ElggLibTest.js
index 1cd1b139c..d5474c605 100644
--- a/engine/js/tests/ElggLibTest.js
+++ b/engine/js/tests/ElggLibTest.js
@@ -1,3 +1,6 @@
+/**
+ * Test basic elgg library functions
+ */
ElggLibTest = TestCase("ElggLibTest");
ElggLibTest.prototype.testGlobal = function() {
diff --git a/engine/js/tests/ElggSecurityTest.js b/engine/js/tests/ElggSecurityTest.js
index 2b497b869..4324f5671 100644
--- a/engine/js/tests/ElggSecurityTest.js
+++ b/engine/js/tests/ElggSecurityTest.js
@@ -9,8 +9,8 @@ ElggSecurityTest.prototype.setUp = function() {
ElggSecurityTest.prototype.testAddTokenAcceptsUndefined = function() {
var input,
expected = {
- __elgg_ts: this.ts,
- __elgg_token: this.token
+ __elgg_ts: this.ts,
+ __elgg_token: this.token
};
assertEquals(expected, elgg.security.addToken(input));