Author: gotcha
Date: Wed Aug 29 09:35:13 2007
New Revision: 46125
Modified:
kukit/kukit.js/branch/commas-in-selectors/tests/test_kssparser.js
Log:
add test for wrong event parameters with namespace
Modified: kukit/kukit.js/branch/commas-in-selectors/tests/test_kssparser.js
==============================================================================
--- kukit/kukit.js/branch/commas-in-selectors/tests/test_kssparser.js
(original)
+++ kukit/kukit.js/branch/commas-in-selectors/tests/test_kssparser.js Wed Aug
29 09:35:13 2007
@@ -1186,7 +1186,7 @@
this.assertKssParmEquals(action.parms, {});
}
- this.testEventParametersWithError = function() {
+ this.testEventParametersErrorWithoutNamespace = function() {
var txt= ""
+"/* a long\n"
+"** comment\n"
@@ -1202,6 +1202,23 @@
this.assertParsingError(kukit.kssp.Document, cursor, null, true,
'Wrong value for evt-[<NAMESPACE>-]<EVENTNAME>
[blur] : <NAMESPACE>-<EVENTNAME> should exist in the event of the selectors. at
row', 6);
}
+
+ this.testEventParametersErrorWithNamespace = function() {
+ var txt= ""
+ +"/* a long\n"
+ +"** comment\n"
+ +"*/\n"
+ +"\n"
+ +"#calendar-previous a:click,\n"
+ +".inlineEditable:keydown{ \n"
+ +" evt-click-allowbubbling: true;\n"
+ +" evt-annoyClicker-annoy-preventdefault: true;\n"
+ +" action-server : kukitresponse/kukitGetPreviousMonth;\n"
+ +"}\n"
+ var cursor = new kukit.tk.Cursor(txt);
+ this.assertParsingError(kukit.kssp.Document, cursor, null, true,
+ 'Wrong value for evt-[<NAMESPACE>-]<EVENTNAME>
[annoyClicker-annoy] : <NAMESPACE>-<EVENTNAME> should exist in the event of the
selectors. at row', 6);
+ }
};
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins