Colin Kuskie
84716b87ed
set explicit check for html,head and body tags to useEmptyStyle to keep an eye on the template
2007-02-28 23:17:20 +00:00
Colin Kuskie
4469301092
Based on SVN history, put the behavior of the SQL back and fixed the POD and
...
the tests.
2007-02-25 06:20:54 +00:00
Colin Kuskie
5a379fe91e
Add tests for urlExists and fix bugs in the method. It now handles
...
placeholders correctly and does exactly what the POD says, assetId
requires that the url be with that assetId, rather than not in that
assetId.
2007-02-25 06:18:15 +00:00
Colin Kuskie
70d7bb2513
Remove some dead code in Group.t
...
Add more tests for coverage in User.t
2007-02-25 05:57:54 +00:00
Colin Kuskie
128ab06bf6
Built a test for newByEmail and removed the TODO test.
2007-02-24 04:36:11 +00:00
Colin Kuskie
31139678ee
Corner cases for User.pm coverage
...
Converted 2 more queries to use placeholders
2007-02-24 00:37:55 +00:00
Colin Kuskie
2a0eb20bc7
Tests for the canUseAdminMode method of User.pm
...
Uncovered and fixed a bug where $session->user instead of $self was used in canUseAdminMode
Added an explicit test in Config.pm to make sure that array refs can be passed to ->set.
2007-02-23 23:39:35 +00:00
Colin Kuskie
2803ae520c
Ran coverage on User.t and found that we're missing two entire
...
methods, so I added TODO tests for them. Overall coverage is low
as well.
Began converting User.pm to use placeholders.
2007-02-23 22:27:23 +00:00
Colin Kuskie
6683d27795
clean-up. High code coverage always makes me excited
2007-02-23 05:11:55 +00:00
Colin Kuskie
906775d505
AdSpace has 100% coverage, aside from some conditionals in the set method.
...
Found and fixed an off by 1 error in displayImpressions that allowed boughtImpressions+1
impressions to be displayed.
2007-02-23 04:59:06 +00:00
Colin Kuskie
47c55075f6
add a test for deactivating an ad by impressions
2007-02-22 06:11:13 +00:00
Colin Kuskie
5d0b0a3c80
more AdSpace tests
2007-02-21 00:11:42 +00:00
Colin Kuskie
d884856148
begin a sequence of tests to check Ad and AdSpace interactions, countClicks and getAds
2007-02-19 05:00:32 +00:00
Colin Kuskie
9666dadc82
This set of tests brings overall coverage close to 100% for the Ad module.
...
Remainnig conditionals in the set subroutine will be tested after 7.4
comes our and ->get can be modified to return the whole set of properties.
Fixed a bug in the Ad module where the priority could not be set to 0.
2007-02-19 04:01:24 +00:00
Colin Kuskie
b8bd315555
begin to add tests for Ad.pm coverage
2007-02-18 17:38:13 +00:00
Colin Kuskie
fd9e2ecd21
A bunch more Ad tests. Need to check the coverage to see if anything has been
...
missed.
Removed a duplicate alt attribute in the image ad.
2007-02-17 00:36:49 +00:00
Colin Kuskie
76585a1daa
Added a new method to WebGUI::HTML called makeParameter safe. It will
...
encode commas and single quotes to make the output safe to embed inside
of a macro.
Added tests to verify that it works correctly.
Updated the c_companyName macro to use makeParameterSafe.
Added tests to verify that the changed macro works okay.
Updated the c_companyName documentation.
Added a blurb to the gotchas file to cover the change to the macro.
2007-02-13 23:42:53 +00:00
Colin Kuskie
52a3023b09
more Ad tests, testing for rendering text ads
2007-02-13 23:12:51 +00:00
Colin Kuskie
84198ceea0
More tests for AdSpace/Ad.pm, one of which found a bug with
...
handling Macros in Rich Media ads. This was fixed.
Just the start of template docs for the Calendar. Finishing the
Calendar docs requires doing the Event docs.
2007-02-10 00:16:16 +00:00
Colin Kuskie
cae65be309
more tests for AdSpace/Ad.pm
2007-02-06 04:41:12 +00:00
Colin Kuskie
d1ede96e63
Make AdSpace->get provide a hash ref if none is supplied.
...
Add tests to improve test coverage and to verify defaults from the
DB and the code.
2007-02-05 04:10:15 +00:00
Colin Kuskie
c9726f7b4d
New AdSpace tests, need to start looking at coverage.
...
Added some comments and fixed some POD in AdSpace.pm and Ad.pm
2007-02-05 01:01:20 +00:00
Colin Kuskie
870d9dbe46
more tests for AdSpace and added more POD to AdSpace.pm and Ad.pm
2007-02-04 04:12:19 +00:00
Colin Kuskie
ef07faa506
fix failing test for looking up dynamic lables
2007-02-02 17:51:15 +00:00
Doug Bell
af66fa585c
Updated AssetExportHtml and tests. Now to re-order the export.
2007-02-01 16:57:05 +00:00
Roy Johnson
19bf1f4e8a
fix - export fails with strange urls. Factored url to path translation out into a seperate method. Added beginnings of a smoke test for AssetExportHtml.pm.
2007-01-30 15:34:43 +00:00
Colin Kuskie
016e16aab1
fix a bad test in the Clipboard and add the AssetPackage test
2007-01-26 05:02:04 +00:00
Colin Kuskie
dc8cbd5fb2
adding clipboard test, this will fail
2007-01-26 04:04:35 +00:00
Colin Kuskie
709939f5a1
try to make delta time tests more robust by moving the time variable assignment
2007-01-25 19:06:11 +00:00
Roy Johnson
83c2595c40
-7.3.6 stable release
...
-fixed the slash_gateway and pageurl macro tests so they didn't reak havoc on the rest of the test suite.
2007-01-24 17:32:57 +00:00
Colin Kuskie
66b59adde8
the Slash_gatewayUrl and PageUrl macros now accept optional URL arguments
2007-01-23 21:49:34 +00:00
Colin Kuskie
6c6aad240d
add tests to DateTime to guarantee that add works
2007-01-19 16:22:24 +00:00
Colin Kuskie
3930e1415d
update test to track core change in Form/Checkbox.pm
2007-01-19 16:14:30 +00:00
Colin Kuskie
2180b9bf91
Added a test to see if clone would duplicate the session. It does.
...
Subclassed DateTime's from_object method, which was secretely deleting
the internal session variable. There is probably a more robust way to
do this, such as by "...implementing the utc_rd_values() method as the
from_object docs suggest.
Finished fixing the bug with time zone errors in editing an event.
2007-01-19 06:25:43 +00:00
Colin Kuskie
17fac4a7cb
New methods in WebGUI::DateTime that clearly state how they handle timezones.
...
The standard is everything going into the DB is in UTC. Timezones have to be
manually handled after being fetched.
Added a test for the new methods and for object construction.
Changed Calendar and Event Assets to use the new methods.
Interim checkin to get some debug help from Doug.
2007-01-19 05:16:57 +00:00
Roy Johnson
2684f7476c
some new tests for the wiki
2007-01-17 13:21:05 +00:00
Colin Kuskie
7175a95f16
adding new paginator test for getPage
2007-01-15 06:05:38 +00:00
Colin Kuskie
e6d6aee9f0
XHTML fixes for Help
2007-01-10 05:24:23 +00:00
Colin Kuskie
d980882d1c
more Paginator tests
2007-01-10 05:07:24 +00:00
Colin Kuskie
797f5f9363
Add a test to Utility.t to make sure that WebGUI::Utility::round also rounds up.
...
Add Paginator tests for paginating array data.
Fix an off by 1 error in the Paginator when handling array data. SQL data is fine.
2007-01-10 03:03:31 +00:00
Colin Kuskie
c95fefec81
adding test for headBlock processing in style templates. They should only show up once.
2007-01-07 22:42:13 +00:00
Colin Kuskie
393b6a1091
adding test for nesting macros
2007-01-04 19:11:17 +00:00
Roy Johnson
1a95b94598
Fixed failing calendar test
...
7.3.3 beta release
2007-01-04 00:50:41 +00:00
Colin Kuskie
5a26e4f2d8
Assets need to be committed before adding children to them. This should really be done in addChild to prevent it since it was manually hacked into the CS.
2006-12-22 18:10:27 +00:00
Roy Johnson
e92871629c
Added a the beginnings of a test suite for the wiki. Fixed privilege check in the media folder.
2006-12-21 16:19:37 +00:00
Colin Kuskie
9d0894b674
Add a new method to t/lib/WebGUI/Test.pm to return the path to the test
...
collateral.
Update all tests to use the new method.
Change testCodebase.pl to run long tests by default. To disable the
long tests, use the --noLongTests switch.
2006-12-15 23:17:22 +00:00
Roy Johnson
b5aea5a60b
fixed some broken tests
2006-12-13 14:20:06 +00:00
Drake
cd3f31924a
A few extra workflow tests.
2006-12-13 05:11:50 +00:00
Colin Kuskie
bdb88b6c6d
fix lookup of English language tags when translation fails
2006-12-13 04:47:41 +00:00
Roy Johnson
39a992e0a7
Added the beginnings of a test suite for the Calendar wobject
2006-12-10 23:22:04 +00:00