Commit graph

1294 commits

Author SHA1 Message Date
Graham Knop
db226238ce silence warning in errorhandler test 2009-03-12 23:27:50 +00:00
Colin Kuskie
499777b808 Add a few multi-user Cart/session/addressBook tests. 2009-03-12 21:17:25 +00:00
Colin Kuskie
12c5b14ab4 Handle different random sort orders on different machines. 2009-03-12 21:12:21 +00:00
Graham Knop
ff21ad645d fix Workflow test, we now have 11 workflows by default 2009-03-12 20:43:24 +00:00
Graham Knop
4186f74089 fix User test for visitor private messaging change 2009-03-12 20:43:20 +00:00
Colin Kuskie
bdbd0792ad Remove diag output from test 2009-03-11 16:32:13 +00:00
Patrick Donelan
634706efc1 Merge branch 'master' into passive_analytics_without_flux
* master:
  Fixed Survey Take template
  Squashed commit of the following: (from survey-rfe branch)
  Fix a POD typo.
  correct inbox message from user preface
  Fix a typo in the Default gallery view template
  Documentation bug in buildArrayRefOfHashRefs
  changed screenshots in Matrix Listing view to popup
  matrix privileging fixes
  Fix an i18n typo in the Post user defined variables.
  Remove debugging code.
  approval workflow fix
  matrix upgrade and privileging fixes
  fixed: Template parser cannot be set
  forward porting gallery bug fixes
  preparing for 7.7.0 dev
  parser should be a selectbox, not a selectlist.
  labeling survey as beta
  fixeding my borkes to the changelog
  fixed #9852: Users can accept private messages from Visitor, but Visitor cannot send messages
2009-03-11 18:53:58 +11:00
Patrick Donelan
5da0379f99 Updated SurveyJSON tests to recognise goto[Expression] on Section and Question 2009-03-11 15:29:04 +11:00
Patrick Donelan
7ec5cab126 Merge branch 'master' into survey
* master: (121 commits)
  Fix a POD typo.
  correct inbox message from user preface
  Fix a typo in the Default gallery view template
  Documentation bug in buildArrayRefOfHashRefs
  changed screenshots in Matrix Listing view to popup
  matrix privileging fixes
  Fix an i18n typo in the Post user defined variables.
  Remove debugging code.
  approval workflow fix
  matrix upgrade and privileging fixes
  fixed: Template parser cannot be set
  forward porting gallery bug fixes
  preparing for 7.7.0 dev
  parser should be a selectbox, not a selectlist.
  labeling survey as beta
  fixeding my borkes to the changelog
  fixed #9852: Users can accept private messages from Visitor, but Visitor cannot send messages
  preparing for 7.6.14 release
  fix AdSpace, Ad tests
  Restore the original properties for the profile category that was modified for test.
  ...

Conflicts:
	docs/gotcha.txt
	docs/upgrades/upgrade_7.6.10-7.6.11.pl
	lib/WebGUI/Asset/Wobject/Survey.pm
	lib/WebGUI/Asset/Wobject/Survey/SurveyJSON.pm
2009-03-11 15:26:07 +11:00
Colin Kuskie
703bce933c Remove debugging code. 2009-03-06 15:40:59 +00:00
Colin Kuskie
30d171515a Optimize the Bucket analysis for speed.
Optimized in 3 ways.
1) Local caching and compiling of all regexps.
2) URL level bucket caching
3) Tweaked canShowDebug to speed it up.  This was ported back
   to the core.
2009-03-04 13:25:32 +11:00
Colin Kuskie
3bafce6e3e Test for running benchmarking. 2009-03-04 13:24:24 +11:00
Graham Knop
c7f887e47a fix AdSpace, Ad tests 2009-03-03 20:11:22 +00:00
Colin Kuskie
c84e875612 Restore the original properties for the profile category that was modified for test. 2009-03-03 17:46:05 +00:00
Graham Knop
c10787e40e fix ProfileCategory test misusing the API 2009-03-03 17:40:26 +00:00
Graham Knop
d7649d3212 survey test fix 2009-03-03 17:07:53 +00:00
Colin Kuskie
91ecdda498 Fix a bug in the paginator where in 10/20 page links the number
of pages becomes less than 10/20.
Add lots of Paginator tests to check this.
2009-02-26 18:01:57 +00:00
Graham Knop
ddf3a9ed74 test fix 2009-02-25 21:15:34 +00:00
David Delikat
8adae35947 fixed postfix object notation 2009-02-23 04:51:45 +00:00
Graham Knop
65a0c7bbae allow single quote delimiters for macro parameters 2009-02-23 04:25:17 +00:00
David Delikat
af5ad84fc8 added code and test suite for a series of functions that
identify non-human web clients so that advertising can
eliminate ghost impressions and ghost clicks
2009-02-23 00:20:46 +00:00
Colin Kuskie
7684aa6e53 Add a quick, 1-off profile category test. 2009-02-21 23:17:25 +00:00
Colin Kuskie
118a05a00c Handle the case when CODE_COP=0 2009-02-21 22:22:05 +00:00
Colin Kuskie
9988f6a116 Add a check for keys with spaces. 2009-02-21 22:19:46 +00:00
Graham Knop
e596489f10 adjust template i18n test to use the real macro parser 2009-02-21 22:17:24 +00:00
Colin Kuskie
f509317d55 Complete the Asset/Wobject/Matrix.t fix by using the newly calculated assetId in the test. 2009-02-21 02:24:34 +00:00
Colin Kuskie
f0b025e855 Update International test for new International module. 2009-02-21 02:16:15 +00:00
Colin Kuskie
cdcdd2951f Clean up after the newly modified DeleteExpiredSession test. 2009-02-21 02:06:22 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
8b06f912ca Rewrite the DeleteExpiredSessions test to not take cheap shortcuts
that are not very reliable.
2009-02-20 22:31:03 +00:00
Colin Kuskie
4ee2e59f1d Add a test to make sure that update does not erase values that it is not given. 2009-02-19 18:09:32 +00:00
Colin Kuskie
d4fb48f77d Fix a bad test that will fail when we upgrade to mysql 5.1 2009-02-19 16:35:46 +00:00
Graham Knop
e5ede77c29 use char instead of varchar 2009-02-18 03:18:20 +00:00
Colin Kuskie
c90fa56507 Make WebGUI::PseudoRequest work with fatals. Cookies are now mocked and
tied off inside that package.  ErrorHandler uses the session request object,
instead of RequestUtil.
2009-02-18 02:46:59 +00:00
Graham Knop
2079266627 fix matrix test function 2009-02-17 20:53:09 +00:00
Colin Kuskie
96c15c56b2 Optimize canShowDebug for speed by caching the calculated check. 2009-02-16 21:03:31 +00:00
Patrick Donelan
50091e8e3a Started working on Survey Multiple Choice bundle management. 2009-02-16 00:13:58 +00:00
Patrick Donelan
34340e56fb Added Survey::surveyJSON_* convenience methods that auto-persist to the db 2009-02-12 01:07:22 +00:00
Patrick Donelan
7128a3d07c More Survey.pm refactoring
Turned getResponseId into a lazy-loading responseId mutator
Added responseIdCookies flag as a workaround for WebGUI::Test::getPage's
lack of cookie support
2009-02-11 09:27:31 +00:00
Patrick Donelan
e139136d08 Made Survey->surveyJSON lazy-load so that you don't have to call
loadSurveyJSON() everywhere.
2009-02-11 09:26:50 +00:00
Patrick Donelan
8d7599d781 Moved Survey.pm's "survey" and "response" properties to private hash
vars and added accessors.

So that you don't end up with mind-bending code that looks like:
$survey->survey->{survey}
2009-02-11 09:26:27 +00:00
Patrick Donelan
d882181fd1 Started refactoring the Survey.pm Wobject class
Refactored www_jumpTo and added tests
Added Params::Validate
Improved docs
Made call to SurveyJSON->createSurveyOrder() unnecessary
Turned ResponseJSON->nextResponse a mutator
2009-02-11 09:25:42 +00:00
Graham Knop
1edc66367e Spectre tests shouldn't need WRE to run 2009-02-10 22:54:54 +00:00
Graham Knop
a8dab0ac03 fix exif test 2009-02-10 21:41:48 +00:00
Graham Knop
bf9bd2f0d2 use proper JSON encoding/decoding 2009-02-10 21:41:36 +00:00
Colin Kuskie
5d8ede926c use PseudoRequest to stop some test warnings 2009-02-10 20:24:34 +00:00
Colin Kuskie
2482c0f89f Remove tests from FetchMimeType that just were setup to help Fedora pass. 2009-02-10 17:26:29 +00:00
Patrick Donelan
b0c5c09461 Merge branch 'master' into survey
* master: (127 commits)
  Prefill in the email address in the ITransact credentials form from the user's Shop address.
  fixed Matrix best/worst rated lists
  Fix bad form variable for phone number in EMS Badge address info.
  - Added a switch to allow the use of non-WebGUI objects with the Workflow
  fixing a problem with previous survey fix
  fixed #9671: Survey - breaks admin bar
  fixed a Matrix sql problem
  i18n the image labels and title for the asset manager, manage screen.
  Prevent an imported package from changing the a current asset's status from pending to anything else.
  Remove trailing comma in Shop/Transaction JS so IE6 works.
  fixed documentation
  fixed a bug when a matrix listing didn't have a forum attached
  small char encoding fix to merged upgrade
  fix small issue in addChild
  adding merge point
  Fix a problem with purging an EMS.
  Update this template so that it passes the template i18n test.
  Fix a broken i18n label in answer edit template for the Survey.
  Unify all Survey CSS into 1 file, and use it.
  Adding/fixing Survey i18n and Help
  ...

Conflicts:
	lib/WebGUI/Asset/Wobject/Survey.pm
	lib/WebGUI/Asset/Wobject/Survey/ResponseJSON.pm
	lib/WebGUI/i18n/English/Asset_Survey.pm
	www/extras/wobject/Survey/editsurvey/object.js
2009-02-10 07:57:42 +00:00
Patrick Donelan
306502465c Started refactoring nextQuestions in ResponseJSON
Made perlcritic happier
Extracted getQuestionResponses from processGotoExpression
Eliminated getPreviousAnswer
2009-02-06 01:56:54 +00:00
Patrick Donelan
345989370f Renamed ResponseJSON branching methods 2009-02-06 01:56:18 +00:00