yesod/yesod-core/test/YesodCoreTest
Isaac van Bakel b9fbdb3950 Add idempotent versions of setDescription API
`setDescription` and `setDescriptionI` present a similar API to
`setTitle` and `setTitleI`, but unlike those functions the description
functions are not idempotent - so calling them multiple times inserts
multiple `<meta/>` tags in HTML `<head/>`.

This adds explicitly idempotent versions of those functions which are
handled in a similar way to the title, so that calling them multiple
times has the effect of taking the final value specified.

Because the non-idempotent behaviour of setDescription is not obvious,
this also adds warnings for that behaviour to make it clear what the
effect of multiple calls will be. Unfortunately, setDescriptionIdemp
can't be made a drop-in replacement because developers may have defined
their own layouts which need to take pageDescription into account.
2022-04-20 12:54:23 +01:00
..
JsLoaderSites Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
ParameterizedSite Add test for regression of mkYesod 2020-09-22 15:41:45 +07:00
Auth.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
Breadcrumb.hs yesod-core: test for looping breadcrumbs 2021-05-20 14:25:17 +02:00
Cache.hs Remove unnecesary Typeable deriving 2020-01-17 11:48:58 -05:00
CleanPath.hs Catch up with Data.Conduit.Combinators 2018-01-10 12:16:31 -08:00
Csrf.hs Default CSRF tokens to the root path "/" 2016-08-16 07:25:41 -07:00
ErrorHandling.hs Remove sometimes failing test 2022-03-25 07:30:33 -04:00
Exceptions.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
Header.hs Set X-XSS-Protection to 1; mode=block. 2018-08-03 14:17:11 -05:00
InternalRequest.hs Drop mwc-random 2018-01-15 10:18:16 +02:00
JsLoader.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
Json.hs Deprecate insecure JSON body functions 2019-01-24 09:12:48 -06:00
Links.hs Catch up with Data.Conduit.Combinators 2018-01-10 12:16:31 -08:00
LiteApp.hs LiteApp uses a Writer monad 2013-03-27 08:51:03 +02:00
Media.hs Take hlint suggestions. 2016-06-28 08:28:23 +02:00
MediaData.hs Route attributes/appcache example #518 2013-04-11 17:07:22 +03:00
Meta.hs Add idempotent versions of setDescription API 2022-04-20 12:54:23 +01:00
NoOverloadedStrings.hs Switch to SubHandlerFor 2018-01-24 13:01:26 +02:00
NoOverloadedStringsSub.hs Simplify YesodSubDispatch 2018-01-11 23:13:32 +02:00
ParameterizedSite.hs Add test for regression of mkYesod 2020-09-22 15:41:45 +07:00
RawResponse.hs Add timeouts so stalling is more obvious 2018-06-19 09:52:20 +03:00
Redirect.hs Code review fixes for #1444 2017-09-08 09:00:12 +09:00
Reps.hs selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
RequestBodySize.hs Cleanup warnings 2018-01-15 15:09:07 +02:00
Ssl.hs Add laxSameSiteSessions and strictSameSiteSessions 2016-05-01 16:31:01 +01:00
Streaming.hs LiteApp uses a Writer monad 2013-03-27 08:51:03 +02:00
StubLaxSameSite.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
StubSslOnly.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
StubStrictSameSite.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
StubUnsecured.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
WaiSubsite.hs Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
Widget.hs Fix test suite for latest wai-extra (fixes #1711) 2020-12-14 11:29:11 +02:00
YesodTest.hs Simplified GHandler/GWidget 2013-03-13 10:59:10 +02:00