Author: reebalazs
Date: Fri Dec 28 12:53:12 2007
New Revision: 50158
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/ (props changed)
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_errors.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_tokenizer.js
Log:
Fix ecma tests in production mode:
errors tests are only added to the case in development mode.
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_errors.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_errors.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_errors.js
Fri Dec 28 12:53:12 2007
@@ -147,5 +147,9 @@
kukit.ErrorsTestCase.prototype = new kukit.UtilsTestCaseBase;
if (typeof(testcase_registry) != 'undefined') {
- testcase_registry.registerTestCase(kukit.ErrorsTestCase,
'kukit.ErrorsTestCase');
+ // Only add these tests for development mode
+ // (For the console, they are added elsewhere permanently.)
+ if (kukit.isDevelMode) {
+ testcase_registry.registerTestCase(kukit.ErrorsTestCase,
'kukit.ErrorsTestCase');
+ }
}
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_tokenizer.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_tokenizer.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_tokenizer.js
Fri Dec 28 12:53:12 2007
@@ -61,9 +61,9 @@
}
this.assertNotEquals(exc, null, 'Should have thrown a ParsingError
exception.');
//
- var info = exc.info;
// Assert the text of the error.
if (typeof(errtxt) != 'undefined') {
+ var info = exc.info;
// We are only interested for the ultimate error message
// thas is, here we ignore the annotations we might have put on
the message
while (info.previous_info) {
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins