Commit graph

1275 commits

Author SHA1 Message Date
Colin Kuskie
83ca676be5 We want to add tests, not logically or them... 2009-01-29 06:00:50 +00:00
Graham Knop
2bc81f7757 fixing tests for Form changes 2009-01-28 16:39:38 +00:00
Colin Kuskie
7f2bc2458c Handle the case where someone is doing double quoted variable interpolation
in the label part of an i18n fetch.
2009-01-27 20:33:55 +00:00
Colin Kuskie
0302e7b96e WebGUI Perl::Critic policy. Handle the case when the namespace is
variable instead of a literal.
2009-01-27 20:19:39 +00:00
Colin Kuskie
6b7886c856 Add module version detecting to this test to handle WRE and non-WRE
installations of WebGUI.
2009-01-27 03:07:13 +00:00
Colin Kuskie
f47cb2ffdd Detect when Devel::Symdump pukes and skip modules that fail falsely.
Give better diagnostics so that true coverage can be monitored.
2009-01-27 02:22:08 +00:00
David Delikat
d24079f2ca added splitTag test cases 2009-01-26 03:56:02 +00:00
Colin Kuskie
1b6dd7be63 Forward port the PayDriver bug fixes from 7.5 branch. Labels are always
taken consistently from the JSON blob, and not a mixture of the two.
2009-01-15 00:34:34 +00:00
Colin Kuskie
e3c77d4e80 Add a test for evaluating templates and macros in the right order
in the Snippet.  Fix a bug with that.
2009-01-12 22:23:41 +00:00
Graham Knop
b5104d9581 fixing photo comment test 2009-01-09 10:33:20 +00:00
Colin Kuskie
312d1f2f8b Update test to match fixed code. 2009-01-04 03:49:42 +00:00
JT Smith
c76d533c31 got it before perlDreamer did! 2008-12-20 16:12:09 +00:00
Colin Kuskie
a30f940db1 fix Account test to use whatever method is set by default 2008-12-17 03:29:41 +00:00
Graham Knop
0487acca1d fix Thingy test to account for new template options 2008-12-16 21:13:21 +00:00
Colin Kuskie
941240370b Add a mutator for questionsAnswered, with tests.
Correct POD for recordResponses.
Begin recordResponses answer processing tests.
2008-12-15 00:09:03 +00:00
Colin Kuskie
aa04599aec recordResponse tests (just a few)
Fix a bug where if a section is terminal, and has no questions, it did not return the terminal flag as true.
A little recordResponse POD.
2008-12-13 03:56:26 +00:00
Colin Kuskie
aafd5e5a2e goto tests. 2008-12-12 23:33:45 +00:00
Colin Kuskie
574d6cf036 nextQuestions tests.
Add POD, and make sure that answers returned by nextQuestions are safe refs.
2008-12-12 19:27:12 +00:00
Colin Kuskie
8fa164200a Add more AdminBar tests.
Fix adminbar macro to handle bad asset classes without dying.
2008-12-12 03:24:09 +00:00
Colin Kuskie
98294e4e78 Add tests for nextSectionid, nextSection, currentSection.
Add more POD to ResponseJSON
2008-12-12 00:36:08 +00:00
Colin Kuskie
c60393e44a Tests for createSurveyOrder and shuffle.
POD for several methods.
2008-12-12 00:03:16 +00:00
Colin Kuskie
1c1f01d473 Change ResponseJSON to use a proper mutator for startTime.
Add tests for startTime.
Survey uses the accessor, and no longer needs to manually set startTime.
2008-12-11 19:45:19 +00:00
Colin Kuskie
665284392f forward porting quotes in asset title fixTitle test 2008-12-11 19:20:12 +00:00
Colin Kuskie
09f7caab40 Provide a way for Template to import old packages that have headBlock properties, with tests. 2008-12-10 18:29:18 +00:00
Graham Knop
6810712f6e remove remnants of caseInsensitiveOS in tests 2008-12-10 05:45:34 +00:00
Colin Kuskie
08bf6b5147 Flesh out the ResponseJSON test more. Add POD. 2008-12-10 02:25:42 +00:00
Colin Kuskie
869aa3e64d Fix the TimeField form control, and add lots of tests. 2008-12-09 16:43:39 +00:00
Colin Kuskie
8ea45fe456 Switch to using dclone from Clone::clone due to bugs under
perl 5.10
2008-12-05 04:21:43 +00:00
Colin Kuskie
ace2c81fca update SurveyJSON test to fix perl 5.10 misleading errors 2008-12-05 03:41:29 +00:00
Colin Kuskie
75da4c46bd Add more tests for coverage.
Interim checkin for debug assistance.
2008-12-05 03:32:47 +00:00
Colin Kuskie
a50c27de67 add POD, fix a few typos.
Add tests for updateQuestionAnswers
2008-12-04 23:35:40 +00:00
Colin Kuskie
75f6497924 Tests for getEditVars, getEditSectionVars and addAnswersToQuestion.
Add POD.
Fix a bug with setting verbatims in addAnswersToQuestion
2008-12-04 22:01:17 +00:00
Colin Kuskie
24fe2e6dc0 Add tests for getQuestionEditVars.
Refactor out the list of valid question types to make testing easier.
2008-12-04 20:47:42 +00:00
Colin Kuskie
0453f47bc1 Tests for getDragDrop and getAnswerEditVars.
More POD.
2008-12-04 20:18:49 +00:00
Colin Kuskie
d370772762 Make copy use safe references.
Add tests for remove, and copy.
2008-12-03 04:41:38 +00:00
Colin Kuskie
f41421058c Add wide character JSON encoding test. 2008-12-03 02:39:35 +00:00
Graham Knop
6073703999 some fixes after Storage and Storage::Image merge 2008-12-03 00:33:13 +00:00
Graham Knop
0957247dbc removing WSClient 2008-12-03 00:32:58 +00:00
Graham Knop
5a1619f4f7 use proper method of formatting text for display in Textarea form
control
2008-12-03 00:32:18 +00:00
Colin Kuskie
e961bb6f26 forward port Product JSON collateral wide character fix 2008-12-01 19:29:45 +00:00
Colin Kuskie
23f8e48f6d Update POD for several methods.
Make getObject clone data for safety and update tests.
Make newObject always alter $address for consistency and update tests.
2008-12-01 17:39:34 +00:00
Colin Kuskie
377126da8c Add more POD to SurveyJSON.
Add some basic tests for getObject, update and remove.
2008-11-30 04:30:40 +00:00
Colin Kuskie
020c882fb6 Test abusing references in getObject.
More insertObject testing.
More POD.
2008-11-29 17:29:00 +00:00
Colin Kuskie
fe33c87f13 Add tests for insertObject, and a helper method for summarizing the SurveyJSON data structure.
Add POD for insertObject.  Note that splicing beyond the end of the array will generate
a warning.
2008-11-29 05:32:14 +00:00
Colin Kuskie
63646aa497 rename test 2008-11-28 17:25:40 +00:00
Colin Kuskie
356772b722 Build Survey2 tests. Each survey2 module has at least a basic
load test, and the SurveyJSON module has many more tests in
it, testing new, log, newSection, newQuestion, newAnswer and
newObject.
2008-11-28 05:02:38 +00:00
Colin Kuskie
d3f8a075a7 forward port Thingy newline display fix (Form/Textarea) 2008-11-26 19:13:46 +00:00
JT Smith
782a4396b5 The deprecated use of Graphics::Magick has been eliminated. WebGUI uses
Image::Magick exclusively for all image processing functions once again.
2008-11-26 17:00:26 +00:00
JT Smith
ee84cc7611 Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything
WebGUI::Storage::Image can do.
2008-11-26 16:06:18 +00:00
Yung Han Khoe
ee2e0ad48d Added Matrix tests, fixed some bugs 2008-11-25 07:50:50 +00:00