aboutsummaryrefslogtreecommitdiff
path: root/js/tests/ElggEventsTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/ElggEventsTest.js')
-rw-r--r--js/tests/ElggEventsTest.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/ElggEventsTest.js b/js/tests/ElggEventsTest.js
index 1fc9c8e86..4765878cf 100644
--- a/js/tests/ElggEventsTest.js
+++ b/js/tests/ElggEventsTest.js
@@ -11,7 +11,7 @@ ElggEventsTest.prototype.testEventHandlersMustBeFunctions = function () {
ElggEventsTest.prototype.testReturnValueDefaultsToTrue = function () {
assertTrue(elgg.trigger_event('fee', 'fum'));
-
+
elgg.register_event_handler('fee', 'fum', elgg.nullFunction);
assertTrue(elgg.trigger_event('fee', 'fum'));
};
@@ -19,10 +19,10 @@ ElggEventsTest.prototype.testReturnValueDefaultsToTrue = function () {
ElggEventsTest.prototype.testCanGlomEventsWithAll = function () {
elgg.register_event_handler('all', 'bar', elgg.abstractMethod);
assertException("all,bar", function() { elgg.trigger_event('foo', 'bar'); });
-
+
elgg.register_event_handler('foo', 'all', elgg.abstractMethod);
assertException("foo,all", function() { elgg.trigger_event('foo', 'baz'); });
-
- elgg.register_event_handler('all', 'all', elgg.abstractMethod);
+
+ elgg.register_event_handler('all', 'all', elgg.abstractMethod);
assertException("all,all", function() { elgg.trigger_event('pinky', 'winky'); });
}; \ No newline at end of file