Commit graph

506 commits

Author SHA1 Message Date
Colin Kuskie
d1993c8131 Fix a test comment. 2009-05-11 21:18:36 +00:00
Doug Bell
d81f0ada05 added tests for getThreadsPaginator in Collaboration to allow future refactoring 2009-05-11 17:27:41 +00:00
Patrick Donelan
9e2cdeca13 Added some tests for Survey visualization 2009-05-11 11:06:55 +00:00
Patrick Donelan
7a3ecea4bb Survey Expressions can now access verbatim values 2009-05-11 06:55:13 +00:00
Patrick Donelan
cf98c81461 Fixed Survey's handling of multi-answer questions (e.g. maxAnswers != 1)
Now stores all supplied answers to multi-answer question as arrayref
Variable [[var]] text replacement converts to comma-separated list
Expression Engine's value() returns appropriate value depending on context
Expression Engine's score() does sum of multi-answers, as you would expect
Updated related i18n & hover-help, and tests
Cleaned up survey js somewhat
2009-05-08 08:00:04 +00:00
Doug Bell
d0a5cc8d66 fixed tests 2009-05-07 18:18:55 +00:00
Colin Kuskie
c93075519f Update test to work with new fixUrl code. 2009-05-07 16:42:04 +00:00
Graham Knop
1c1f1c295a don't clean up default groups 2009-05-07 15:57:11 +00:00
Patrick Donelan
f3ed30d939 Refactored Survey ExpressionEngine tag() util into tag() setter and tagged() accessor.
Updated i18n to reflect the fact that min/max/step are used for all numeric types, not just slider.

Also updated textCols/Rows i18n.
2009-05-06 05:53:10 +00:00
Patrick Donelan
3dda2b49d4 Survey Branch Expressions now allow you to "tag" data along the way and store
it in the response data structure along with the actual user input. Tag data
can be used in subsequent expressions, in [[tag]] templated text replacement,
and to classify responses in an arbitrary way.

Refactored Survey expression utility subs that lookup values/scores/tags in
external assets.

Fixed bug whereby only highest precedence Survey expression was being evaluated
rather than letting them all run and do their own short-circuiting.
2009-05-04 06:28:05 +00:00
Patrick Donelan
ac1a00b252 Survey Branch Expressions can now test whether a question
has been reached/answered, rather than just testing for the value
of a response
2009-05-04 04:06:40 +00:00
Paul Driver
f4df3b1280 template attachments (scripts and stylesheets) 2009-05-01 23:03:36 +00:00
Colin Kuskie
d83f1fd5fc Last batch of User and Group cleanups. 2009-05-01 03:29:32 +00:00
Colin Kuskie
39607fc208 Another batch of clean-ups for users and groups. 2009-05-01 02:48:18 +00:00
Colin Kuskie
c60237443c Test cleanups.
Fix a leaking group in Asset/Post/permission.t.  Threads do not clean
up their groups when they are purged.
2009-05-01 02:17:39 +00:00
Graham Knop
1937ef3ab6 fix survey test 2009-04-30 21:30:15 +00:00
Graham Knop
12298aa7ca fix thingy test for field type being provided provided 2009-04-30 20:55:13 +00:00
Graham Knop
51ce57d7fc fix export test 2009-04-30 20:06:26 +00:00
Doug Bell
c60db6b1be fix now that things are packed 2009-04-30 19:27:21 +00:00
Colin Kuskie
db290f91f9 Add an option to the Sku to require individual shipping of this sku, separate
from other items in the cart.  Update the FlatRate driver to support calculating that.
2009-04-29 16:52:16 +00:00
Colin Kuskie
40b5ac13a4 Update code to match new RssFeed API w.r.t exporting. 2009-04-28 19:51:47 +00:00
Colin Kuskie
409e3a3f6c Automatically cleanup storage created for export collateral tests. 2009-04-24 22:41:39 +00:00
Colin Kuskie
19f703dc9b Merge with HEAD, 10472 2009-04-24 17:12:17 +00:00
Colin Kuskie
32ef0d5068 getKeywordStaticURL function, with tests. 2009-04-24 16:53:53 +00:00
Colin Kuskie
f9e3c0c99c Check what happens with URLS with an initial dot in them 2009-04-24 16:53:35 +00:00
Patrick Donelan
5e9db959ad Added another Survey ResponseJSON test 2009-04-24 03:43:40 +00:00
Colin Kuskie
90f4abfac1 remove tests for the old, removed, getTaxRate method which was
moved into Shop/TaxDriver
2009-04-24 03:40:42 +00:00
Colin Kuskie
09ad8d2a11 Remove subclass exportHtml_view in favor of a session scratch variable for telling
when the asset is being exported.  Keyword files are exported into a private directory
to prevent filename collisions.
2009-04-24 00:05:09 +00:00
Graham Knop
f10da67dae fix Post test cleaning up core groups 2009-04-23 16:46:01 +00:00
Patrick Donelan
6c58e1de81 Added Survey meta-targets NEXT_SECTION and END_SURVEY to allow for more
convenient jumping
Improved processGotoExpression tests
2009-04-22 07:19:23 +00:00
Patrick Donelan
99855719d0 Survey bug fixes: Verbatim responses now properly recorded
Added useText option to responseValuesByVariableName so that it can be
used for both branch expressions and [[var]] text substitution correctly
Added extra verbatim handling to [[var]] text substitution
All survey test now pass, except for one involving True/False
multi-chocie bundle, soon to be fixed by updating bundle
2009-04-22 05:16:29 +00:00
Colin Kuskie
f2451e2f7e Add feed support to StoryTopic. 2009-04-22 04:59:23 +00:00
Colin Kuskie
070df97708 tag cloud urls in export mode 2009-04-22 01:20:55 +00:00
Patrick Donelan
c3ea6d4683 Added Survey back button, with option to turn it on/off, tests, and i18n
Noticed that some Survey tests are broken, will fix tomorrow
2009-04-21 07:12:07 +00:00
Colin Kuskie
54aaa673cf exported keyword file tests 2009-04-20 23:09:55 +00:00
Colin Kuskie
d1db12d1e4 Finish export code.
Make the list of assets templatable, since the user can see it.
Beginnings of export collateral tests.
2009-04-20 21:18:24 +00:00
Colin Kuskie
7b3ab664fe test for getStaticKeywordUrl 2009-04-17 17:20:12 +00:00
Colin Kuskie
08c033b2c5 Document how template variables work in export mode.
Change how pagination works when exporting.
Early code for exporting keyword pages.
2009-04-17 17:11:07 +00:00
Colin Kuskie
c439453784 Make rssUrl and atomUrl variables respond to exportMode. 2009-04-16 21:19:17 +00:00
Colin Kuskie
1ddf1b50a4 add export mode for StoryArchive.
Turn off search variables when in export mode.
2009-04-16 19:21:28 +00:00
Colin Kuskie
fbbd63eaa5 Static export for the topic is done. 2009-04-16 17:09:48 +00:00
Colin Kuskie
1a9da53abf Modify tests to use the automatic storage cleanup provided by WebGUI::Test.
Several tests previously leaked storage locations.
2009-04-14 01:54:28 +00:00
Colin Kuskie
c28c7771c3 Top story photo template variables, with i18n, help and tests. 2009-04-13 23:16:53 +00:00
Colin Kuskie
4768a8687e Add storage locations to package data for a Story. With tests. 2009-04-13 17:56:44 +00:00
Colin Kuskie
314a12def2 Add an autoclean-up method to WebGUI::Test, and convert the Story test
to use it.
2009-04-13 17:33:42 +00:00
Colin Kuskie
1edaca4ed2 Merge up to 10305 2009-04-13 17:04:23 +00:00
Colin Kuskie
fa2e5c2c90 Add valid storageId checks for duplication, since '' ne storageId. 2009-04-13 16:38:26 +00:00
Colin Kuskie
5729a40ab2 Add tests that _really_ check for duplicated storage locations. 2009-04-13 16:36:37 +00:00
Colin Kuskie
ec4713855a Convert Story asset to use Class::C3 properly.
Add a method to duplicate the photo collateral JSON data, with tests.
Make addRevision and duplicate use that method.
2009-04-13 16:33:24 +00:00
Colin Kuskie
ddd06c2ede Provide a way for WebGUI::Test to register groups to clean up at
the end of a test.
Convert several tests to use that, including Post.t, which leaked Groups.
2009-04-13 02:45:03 +00:00