José Lorenzo Rodríguez
597643cd0c
Fixing small error in last commit
2009-10-22 00:17:31 -04:00
José Lorenzo Rodríguez
ce743c00e8
Expanding Helper an View functionaility to accept deep nested entitities.
...
This allows the form helper to render inputs with arbitrary number of dot separated parts
2009-10-22 00:17:23 -04:00
José Lorenzo Rodríguez
50ec80ff50
Continuing work on Helper::setEntity and associated methods
2009-10-22 00:17:14 -04:00
José Lorenzo Rodríguez
2941e89da3
Making Helper::viewEntity accept any number of levels
2009-10-22 00:16:37 -04:00
renan.saddam
4e8c268536
Making the test more clear by avoind +-2 days thing. Fixes #186 .
2009-10-21 19:19:21 -02:00
mark_story
fa6b1b1a20
Changing FormHelper::button() to actually create <button> elements instead of input elements. Test cases added.
2009-10-19 23:57:23 -04:00
mark_story
08f07a9aa4
Changing FormHelper::submit() to be able to create all types of submit buttons. Use 'type' option to create reset or button type inputs.
...
Test cases added.
2009-10-19 23:44:50 -04:00
jperras
ae342c6f2c
Fixing skip in previous commit: if skip condition evaluates to true, to prevent a fatal error from being produced.
2009-10-19 13:22:14 -04:00
jperras
daafac8a64
Merge branch '1.2' of code.cakephp.org:cakephp into 1.2
2009-10-19 12:51:32 -04:00
jperras
7ff3fcc4c4
Adding skip for non-existence of DateTimeZone class in time helper tests.
2009-10-19 12:51:06 -04:00
mark_story
2675bbcd53
Fixing FormHelper::__selectOptions incorrectly selecting options due to type juggling. Fixes #167
2009-10-18 22:05:17 -04:00
mark_story
057e3ff0aa
Removing $showEmpty parameter from all select based widgets.
...
Use attributes[empty] instead. This change unifies the api between form->input() and other widget methods.
Tests and docblocks updated.
2009-10-17 01:29:16 -04:00
mark_story
0dee625215
Removing escape parameter from para()
...
Renaming parameters.
2009-10-16 23:14:42 -04:00
mark_story
3c1d134685
Updating doc blocks.
...
Renaming inline param for style() to oneline.
Removing escape parameters from div() and tag()
2009-10-16 23:11:13 -04:00
mark_story
8e2f58d086
Removing HtmlHelper::css() inline parameter. Use $options[inline] instead.
...
Adding tests for inline = false script and css generation.
2009-10-16 23:00:31 -04:00
mark_story
6bb53a5c9d
Removing HtmlHelper::link()'s escapeTitle parameter. $options[escape] now controls escaping of attributes and title text.
2009-10-16 22:49:44 -04:00
mark_story
7344c0ce7d
Removing $inline parameter from HtmlHelper::meta() inline is now an option.
2009-10-16 22:31:56 -04:00
mark_story
f9f2986f48
Implementing Form helper default options. Allows the creation of persistent form options when opening a form.
...
Adding patch from 'Ceeram' / 'bankai'
Refs #56 .
2009-10-16 22:02:07 -04:00
mark_story
6dcc819121
Updating fileheaders.
2009-10-16 22:02:07 -04:00
mark_story
f07df02087
Making JsHelper::set() work well with setting the variables to an object property.
2009-10-16 22:02:06 -04:00
mark_story
4be98b6ed9
Adding JsHelper::set() + test cases.
2009-10-16 22:02:06 -04:00
renan.saddam
43dbf71624
Doing a little optimization for php 5.1 <, also fixing tests on Windows. Fixes #155 .
2009-10-15 18:09:58 -03:00
mark_story
906eb82e9b
Fixing typo in prototype engine helper. Fixes #172
2009-10-15 11:09:13 -04:00
mark_story
082156f9a1
Fixing FormHelper::input() label's for attribute when a datetime type is created and dateFormat or timeFormat is set to NONE. Fixes #168
2009-10-14 21:17:00 -04:00
mark_story
604b7e0a10
Splitting a long test for FormHelper up into smaller test cases.
2009-10-14 20:10:32 -04:00
mark_story
d1f5acd0e0
Merge commit 'origin/1.2' into 1.2-merge-in
...
Conflicts:
cake/console/libs/shell.php
cake/libs/model/connection_manager.php
cake/libs/view/helpers/html.php
cake/libs/view/helpers/javascript.php
cake/tests/cases/libs/i18n.test.php
cake/tests/cases/libs/model/connection_manager.test.php
cake/tests/cases/libs/model/model_read.test.php
cake/tests/cases/libs/view/helpers/html.test.php
cake/tests/groups/database.group.php
2009-10-14 00:51:55 -04:00
mark_story
e77ff5ae50
Fixing CacheHelper tests when app/views/posts/index.ctp exists.
2009-10-11 21:42:15 -04:00
mark_story
ee7015c9bd
Adding tests for utf8 chars to TextHelper::truncate()
2009-10-07 23:56:38 -04:00
mark_story
0d3ef03b9f
Updating file headers.
2009-10-07 23:43:01 -04:00
mark_story
06162d5022
Deprecating TextHelper::trim() as it is an alias for truncate().
...
Expanding use of mb_ methods.
Tests updated.
2009-10-07 23:43:01 -04:00
mark_story
c47e899ba1
Fixing HtmlHelper::css, and JavascriptHelper::link so that files containing the asset extension always get the extension added. Test cases added. Refs #139
2009-10-02 12:53:20 -04:00
mark_story
f12cbdba38
Fixing CacheHelper and multiple cake:nocache tags in a view file, breaking cake:nocache following $content_for_layout. Fixes #136
2009-10-01 01:03:47 -04:00
mark_story
58ec259714
Merge branch '1.3-router' into 1.3-misc
2009-09-30 00:51:20 -04:00
mark_story
893e177909
Fixing isset() checks in Router to test for empty values instead.
...
Updating prefix use in paginator helper test.
2009-09-30 00:50:15 -04:00
mark_story
070bbb5d0e
Removing magic 'title' key in Controller::set() and View::set()
...
Removing Controller::$pageTitle and View::$pageTitle.
Instead you should set('title_for_layout', $val) from your view or controller.
Test cases updated.
2009-09-28 21:23:40 -04:00
mark_story
508d737b6a
Updating HtmlHelper::css, JavascriptHelper::link to not replace multiple occurences of CSS_URL or JS_URL when using Asset.filter settings.
...
Test cases added.
Thanks to 'robustsolution' for the patch.
Fixes #105
2009-09-26 14:22:12 -04:00
mark_story
06cf97459a
Fixing XmlHelper::elem() when value is null and cdata = true. Removing empty invalid tag.
...
Test cases added.
Fixes #127
2009-09-24 22:43:31 -04:00
mark_story
ba7b2e9de6
Refactoring test cases to contain separate test methods for timestamped assets.
2009-09-24 00:28:27 -04:00
mark_story
ee514f3fc6
Adding Helper::assetTimestamp()
...
Refactor's repeated code from Html and Javascript Helpers.
Test cases added.
2009-09-23 23:45:11 -04:00
mark_story
26d2237df0
Making conditions easier to read.
...
Adding additional test for image timestamping.
Refs #108
2009-09-23 23:30:55 -04:00
ADmad
de4737323f
Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-23 23:30:34 -04:00
mark_story
022f8ccaa2
Making conditions easier to read.
...
Adding additional test for image timestamping.
Refs #108
2009-09-22 19:04:40 -04:00
ADmad
07a89cd953
Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
...
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-22 18:57:30 -04:00
mark_story
e6cc81226d
Merge branch '1.3-jshelper' into 1.3
2009-09-20 17:46:30 -04:00
mark_story
0d6f6232e6
Updating test case to fix issues when running in group context.
2009-09-17 20:23:36 -04:00
mark_story
e0b6b25365
Fixing inherited public properties not being set in SessionHelper.
...
Adding tests for SessionHelper construction and the setting of inherited properties. Fixes #94
2009-09-17 19:57:56 -04:00
mark_story
5717e3b59c
Merge branch '1.2' into 1.2-merger
...
Conflicts:
app/webroot/test.php
cake/VERSION.txt
cake/bootstrap.php
cake/config/config.php
cake/console/cake.php
cake/console/libs/schema.php
cake/console/templates/skel/webroot/test.php
cake/libs/configure.php
cake/tests/cases/console/libs/schema.test.php
cake/tests/cases/libs/debugger.test.php
cake/tests/cases/libs/model/model_write.test.php
cake/tests/fixtures/aco_fixture.php
2009-09-16 01:23:49 -04:00
mark_story
f1194a4ec9
Commiting fix to pass tests in last commit.
...
Making View::renderCache tests more specific.
2009-09-14 23:53:04 -04:00
mark_story
8cf7dbbbfa
Adding tests for CacheHelper triggering. Was broken by previous refactoring.
2009-09-14 23:49:20 -04:00
mark_story
01cf40bf12
Adding automatic use of $options for $disabledOptions in PaginatorHelper::next() and PaginatorHelper::prev(). Thanks to 'joaquin_win' for the initial patch. Refs #83
2009-09-14 23:06:24 -04:00
mark_story
9c41efd6fe
Adding NumberHelper::addFormat and test cases. Refs #5630
2009-09-10 22:54:49 -04:00
mark_story
818e7340f7
Adding test cases from #5630
2009-09-10 22:29:10 -04:00
mark_story
5f6015c3c4
Updating file headers and removing @static.
2009-09-10 22:23:48 -04:00
mark_story
0065005f95
Fixing custom error class not being used if error for field is a named index. Test case added. Fixes #76
2009-09-10 09:57:23 -04:00
mark_story
cf3521737f
Fixing selected with interval not selecting the correct option. Fixes #70 .
2009-09-03 22:47:17 -04:00
mark_story
ce7864920f
Adding ability to add arbitrary attributes to HtmlHelper::scriptBlock. Test case added.
2009-09-03 13:50:53 -04:00
mark_story
ead3b0ecf6
Allowing HtmlHelper::script() to take an array of options, allows for custom attributes to be added to script include tags. Test cases added. Fixes #2955
2009-09-03 13:45:39 -04:00
mark_story
c963d5cc43
Updating file headers.
2009-09-03 12:43:13 -04:00
mark_story
2ff5334347
Minor refactor to remove method calls to Inflector::camelize.
...
Adding tests to ensure references are maintained.
2009-09-03 09:37:25 -04:00
evilbloodydemon
75695341fa
Helpers addressed by $this->Helper->func()
2009-09-03 00:58:26 -04:00
mark_story
4d458e93b6
Updating SessionHelper::flash() to use elements for custom flash wrapping html instead of layouts.
2009-09-01 00:03:56 -04:00
mark_story
7c4d60abe8
Adding patch from 'grncdr' to allow default direction to be set for sort links created with PaginatorHelper::sort. Fixes #5151
2009-08-26 23:55:19 -04:00
mark_story
4f2d415663
Applying patch from 'kuja' to give default class names to links generated by Paginator::sort().
...
Fixes #6239
2009-08-26 23:33:13 -04:00
mark_story
38a4b619e6
Adding default classes to next and prev links.
...
Switching next() and prev() to use span by default.
2009-08-26 22:55:24 -04:00
mark_story
136b4db7ad
Deprecating $escape for HtmlHelper::tag() use $attributes['escape'] instead. Test case added.
2009-08-26 22:46:49 -04:00
mark_story
31ec714e2e
Adding View::_paths() optimization.
...
Test cases added.
Refs #49
2009-08-23 23:13:56 -04:00
mark_story
325446a8b3
Updating View::_paths to remove an always miss file_exists() check.
...
Test case added.
Refs #49
2009-08-23 22:43:51 -04:00
mark_story
3b95b4c95d
Merge branch '1.3' into 1.3-misc
2009-08-20 01:12:09 -04:00
gwoo
474ec34a5d
Merge commit 'origin/1.3-dev' into 1.3
2009-08-14 12:33:43 -04:00
mark_story
e306b65908
Updating View test case to work with updated API's
2009-08-14 12:08:33 -04:00
jperras
deed69ea37
Adding ability to input an array parameter for 3rd argument of TextHelper::highlight(). Implements #17 .
2009-08-13 13:32:34 -04:00
mark_story
73a63a4b65
Fixing whitespace.
2009-08-12 09:45:43 -04:00
mark_story
459fcb7a1a
Applying patch from 'evilbloodydemon'. Fixes JqueryEngine::request() when wrapCallbacks is true. Test cases added. Fixes #20
2009-08-12 09:45:42 -04:00
mark_story
08f0c7c157
Fixing method dispatching errors in JsHelper with regards to Object::object, and PHP4 workarounds.
2009-08-12 09:45:42 -04:00
mark_story
a7e300a7c1
Adding warning errors when an incompatible class is used.
2009-08-12 09:45:42 -04:00
mark_story
29881561d3
Adding tests to test arbitrary class injection.
2009-08-12 09:45:42 -04:00
mark_story
b1a27b1760
Adding ability to inject an ajax provider class into paginator helper. updating tests.
2009-08-12 09:45:42 -04:00
gwoo
6775e0997e
Merge branch '1.2' into 1.3
2009-08-03 13:13:18 -07:00
mark_story
72d90f2ce8
Adding tests for array_diff_key() in php4. Increasing test compatibility with php4
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8281 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-08-03 19:24:38 +00:00
mark_story
6ca2127aea
Fixing JsHelper tests to run in php4
2009-08-03 14:47:36 -04:00
mark_story
83a705f739
Merge branch '1.3' into 1.3-jshelper
2009-08-03 14:39:21 -04:00
jperras
a0b04ed924
Adding proper skipIf to Javascript asset timestamp test.
2009-08-02 22:54:05 -04:00
gwoo
f9f67a1759
fixing some test cases
2009-08-02 15:18:44 -07:00
gwoo
bf2b8a60e6
Merge branch '1.3-misc' into 1.3
2009-08-02 12:20:07 -07:00
gwoo
7fc465309e
Merge branch '1.2' into 1.3
2009-08-02 11:58:39 -07:00
gwoo
38221e7aa2
Merge branch '1.2' into 1.3
2009-08-01 23:47:28 -07:00
gwoo
9e1dec3ff3
fixes #6538 , xml serialization on multi dimensional
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8264 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-31 01:50:14 +00:00
gwoo
1423b0067b
Merge branch '1.2' into 1.3
2009-07-30 11:34:33 -07:00
mark_story
3a5b782737
Adding newlines and tests for slideDown slideUp alternate syntax for jquery engine.
2009-07-29 22:37:41 -04:00
mark_story
5b13b29a92
Adding callbackArguments and parseCallbacks to jQuery engine.
2009-07-29 22:19:02 -04:00
gwoo
aab4dc2f1a
Merge branch '1.3-inflector' into 1.3
2009-07-29 10:32:25 -07:00
mark_story
24299cf943
Implementing wrapped callbacks in Mootools. Fixing implementation in Prototype. Adding JsBaseEngineHelper::_processOptions() to reduce duplicate code.
...
Test cases appended and updated.
2009-07-29 00:05:27 -04:00
mark_story
47cd941b53
Applying optimization patch to PaginatorHelper and test refactorings to PaginatorHelper test case. Thanks Phally. Fixes #6526
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8259 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-28 12:40:31 +00:00
mark_story
75026715d1
Adding additional tests to Request and updating callback argument list.
2009-07-28 00:04:43 -04:00
mark_story
ebc221dbf7
Updating sortable options.
...
Fixing drag() when selector is a multiple element selection.
2009-07-27 22:36:22 -04:00
mark_story
ec10e90efb
Merge branch '1.3' into 1.3-jshelper
2009-07-27 12:11:43 -04:00
mark_story
cde9afb486
Updating Mootools engine to work seamlessly with $() and $$() type selections.
2009-07-27 08:45:31 -04:00
gwoo
062f471b7f
updating App::import usage. ran each test and everything seems ok.
2009-07-25 18:27:02 -07:00
mark_story
d4d9db43a7
Updating PrototypeEngineHelper::request() to use dataExpression. Allowing Js::submit() to work with prototype.
2009-07-25 18:12:53 -04:00
mark_story
dda6c93529
implementing serializeForm() in Prototype engine.
2009-07-25 18:02:54 -04:00
mark_story
def4c98a08
Merge branch '1.3' into 1.3-jshelper
...
Conflicts:
cake/libs/view/helpers/html.php
cake/libs/view/helpers/js.php
cake/tests/cases/libs/view/helpers/html.test.php
cake/tests/cases/libs/view/helpers/js.test.php
cake/tests/lib/header.php
2009-07-25 17:35:27 -04:00
mark_story
ed10374a6f
Adding tests for dataExpression to mootools engine.
2009-07-25 17:14:18 -04:00
mark_story
6f10f5de6d
Fixing issues with ajax forms and mootools. post needs to be lowercase.
...
Implementing serializeForm() in MootoolsEngine.
Updating doc blocks.
2009-07-25 17:10:22 -04:00
mark_story
2414a43c91
Adding HtmlHelper::scriptStart and HtmlHelper::scriptEnd. Further deprecates JavascriptHelper. Fixing issues in test case.
2009-07-25 15:43:26 -04:00
jperras
6fd0bfc96f
Adding integration test of CacheHelper with newly modified Inflector::slug, on caching actions with non-latin characters in route.
2009-07-25 15:11:52 -04:00
mark_story
4ebf5a4e32
Merge commit 'code/1.3' into 1.3-jshelper
...
Conflicts:
cake/tests/cases/libs/view/helpers/html.test.php
cake/tests/lib/header.php
2009-07-25 01:35:36 -04:00
mark_story
9a66c2cfc5
Fixing method param in jQuery engine. Needed to be converted to 'type'.
...
Fixing issues in JsHelper::submit() related to data being escaped.
Updating tests cases.
2009-07-24 23:29:44 -04:00
mark_story
49e0e5743f
Adding tests for custom url on submit()
2009-07-24 22:54:22 -04:00
mark_story
36722c0ef2
Implementing serializeForm() in jquery engine.
2009-07-24 22:46:33 -04:00
mark_story
76c13fa98e
Adding non buffered tests to Js::link()
...
Implementing Js::submit() adding test cases.
2009-07-24 22:13:54 -04:00
AD7six
b2142df2bc
adding a newline before all comment blocks
2009-07-24 21:18:37 +02:00
jperras
e40428801e
Removing all uses of uses() global method & replacing with require or App::import.
2009-07-24 13:41:08 -04:00
gwoo
a9d98e73c3
Merge branch '1.2' into 1.3
2009-07-22 09:27:31 -07:00
mark_story
a3d5a9beae
Adding stubs for JsHelper::submit()
2009-07-21 00:24:58 -04:00
mark_story
f9ff43b352
Refactoring paginator.test.php to use assertTags() where it makes sense.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8240 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-21 02:59:30 +00:00
gwoo
56bee6e1fc
fixes #6507 paginator sort directions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8239 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-21 01:53:14 +00:00
gwoo
4cfdd311a9
fixes #6476 , crash on missing layout in session flash
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8238 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-21 01:33:12 +00:00
gwoo
0935eb0477
fixing up some broken tests
2009-07-20 09:59:16 -07:00
gwoo
a2f0ab8b27
Merge branch '1.2' into 1.3
2009-07-20 09:31:56 -07:00
mark_story
76d5855d72
Applying patch from 'Phally' Fixes multiple issues in PaginatorHelper related to first and last option in numbers(). Fixes #6516
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8234 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-17 19:46:33 +00:00
mark_story
4a4b9eefe5
Updating file headers.
...
Removing newlines.
2009-07-17 00:09:06 -04:00
mark_story
baea319122
Applying patch from 'Dremora' fixes JavascriptHelper::codeBlock() and blockEnd() bugs where content vanished due to incorrectly structured buffers. Minor behavior change in that codeBlock(null) no longer returns an opening script tag. The entire script tag is returned when blockEnd() is called.
...
Test cases updated and refactored.
Fixes #6504
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8231 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-14 17:11:46 +00:00
mark_story
04b151edc9
Updating tests to be more specific. Adding tests for confirm.
2009-07-12 19:06:45 -04:00
mark_story
04fa46f228
Updating Js::link() adding confirm option.
2009-07-12 18:42:36 -04:00
mark_story
5119e58e3b
Starting work on Js::link()
2009-07-12 17:30:41 -04:00
mark_story
4d4bc9040e
Adding additional tests for object() encoding.
2009-07-11 17:36:48 -04:00
mark_story
69de1291e1
Removing deprecated options from object()
...
Tests updated.
2009-07-11 17:31:54 -04:00
mark_story
50c624486e
Updating tests to reflect changes in json encoding.
2009-07-11 17:21:06 -04:00
mark_story
b90b743853
Adding test cases from Javascript Helper. Preparing for refactor of
...
JsHelper::object().
2009-07-11 15:58:39 -04:00
DarkAngelBGE
44fa8d5fd0
Getting the time helper code coverage up to 99%
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8228 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-11 16:45:29 +00:00
DarkAngelBGE
11c664177f
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8227 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-11 15:36:45 +00:00
mark_story
9c51f720ed
Merge branch '1.3' into jshelper-integration
...
Conflicts:
cake/tests/cases/libs/view/helpers/js.test.php
2009-07-06 23:43:57 -04:00
davidpersson
68d333d088
Applying patches by ADMad updating HtmlHelper and adding test. Adding missing properties in test case. Preventing bleed through in test case. Fixes #6490
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8220 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-04 22:04:40 +00:00
gwoo
f1a4352620
Merge branch '1.2' into 1.3
2009-07-03 08:24:42 -07:00
gwoo
9e143bc335
fixes #6473 , dot notation for sort in next/prev
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8213 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-02 23:48:10 +00:00
gwoo
bc359259a2
Merge branch '1.2' into 1.3
2009-07-02 09:27:00 -07:00
mark_story
fd818bc493
Applying patch from 'mulleto'. Fixes plugin view file location with CamelCase plugin names. Test cases added.
...
Fixes #6334
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8202 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-24 22:02:00 +00:00
mark_story
1ea5f94c29
Updating JavascriptHelper::escapeString to properly encode utf8 characters as per the JSON spec.
...
Test cases added, with comparisons to json_encode()
Fixes #6400
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8198 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-17 01:59:41 +00:00
gwoo
f9339e3c81
simplified App::path(). Changed App::build() to handle all paths.
...
tests passing.
2009-06-11 09:13:16 -07:00
gwoo
24d78dd671
moving path configuration to App class
2009-06-07 15:24:10 -07:00
gwoo
303bc0fc89
fixing up some tests. pretty much all greens for me.
2009-06-02 17:21:15 -07:00
gwoo
fdd63d4e8e
Merge branch 'master' into 1.3
2009-06-02 10:12:14 -07:00
mark_story
50f4d91873
Adding test case to disprove #6411
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8181 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-30 19:12:15 +00:00
jperras
4f2d65943f
Fixing form helper checkbox hidden input generation for disabled fields. Thanks to 'trevorsg' for the patch & test case.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8173 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-14 03:26:53 +00:00
gwoo
db71202aac
Merge branch '1.2' into 1.3
2009-05-01 08:26:02 -07:00
mark_story
912f6589d5
Partial Revert "Adding optional param to remove colon on methods. Allows use inside"
...
This reverts commit b29e130606176e4ad4d834fdf42746b3c4085686.
2009-04-26 23:24:39 -04:00
mark_story
e990c5ba37
Adding optional param to remove colon on methods. Allows use inside
...
object literals.
2009-04-26 22:53:26 -04:00
mark_story
9754926d02
Merging with self.
2009-04-24 13:44:52 -04:00
renan.saddam
bd7bd5d891
Fixing issue when generating textarea with null value.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8146 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-16 18:12:01 +00:00
gwoo
ec18aac4ab
Merge branch 1.2 into 1.3
2009-04-15 15:16:01 -07:00
mark_story
8db4fe682b
Allowing name attribute to pass on to hidden field in FormHelper::radio().
...
Fixes inconsistency with checkbox(). Test case added.
Fixes #6260
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8145 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 17:18:01 +00:00
mark_story
377108f930
Adding tests to show correct usage of form::create() with querystring params. Closes #6278
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8144 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 02:29:50 +00:00
mark_story
32107f5fba
Fixing test broken in [8136]. Adding Configure::write() to prevent fails when running helpers as a group.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8143 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 02:14:04 +00:00
mark_story
3a3e003982
Adding drop() to mootools.
2009-04-11 23:37:24 -04:00
mark_story
1d5e3150a2
Adding drag() to mootools.
2009-04-11 23:09:58 -04:00
mark_story
02bb4e71f3
Adding drag and drop() methods to prototype.
...
Adding test for option pass through on _mapOptions(). Ensures that
correctly named options do not get munged.
2009-04-11 00:01:40 -04:00
mark_story
646cfd7a83
Adding drop() to jquery.
...
Adding testcases.
Fixing doc blocks.
2009-04-08 23:57:32 -04:00
mark_story
0269994842
Adding Drag() to jquery
2009-04-08 23:31:17 -04:00
mark_story
49f689a9ce
Updating mootools and prototype sortable implementation.
2009-04-06 21:56:20 -04:00
mark_story
c6c7630d8f
Fixing tests for php4 compat.
2009-04-06 21:24:14 -04:00
mark_story
f74408df0a
Updating request() in prototype.
2009-04-06 00:39:16 -04:00
mark_story
00f3c6f25d
Updating prototype engine and test case for request()
2009-04-06 00:03:19 -04:00
mark_story
5f7abae48c
Fixing request() callbacks. Starting test for prototype
2009-04-05 23:49:09 -04:00
mark_story
5f4cdf91ac
Fixing AjaxHelper::dragOptions to match scriptaculous docs.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8136 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-06 00:57:46 +00:00
mark_story
5c4f838f5a
Adding buffer flush to ajax helper test. Test suite menus now properly display.
...
Fixing Drag options. Adding test coverage. Fixes #6266
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8135 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-06 00:45:53 +00:00
mark_story
d74e2d1a73
Fixing newline escaping for single quote strings, output now matches json_encode().
...
Test added, and old test fixed.
Fixing buffering issues, causing test suite menu to disappear when running JavascriptHelper Test case.
Fixes #6167
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8134 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-04 02:42:46 +00:00
mark_story
87c5a5da6a
Fixing jquery::request() and update key.
...
Adding drag and drop test skeleton to mootools/jquery
2009-03-29 23:00:39 -04:00
mark_story
23423f2791
Updating request in Mootools
2009-03-29 22:08:49 -04:00
mark_story
a899af66da
Fixing jQuery tests.
2009-03-29 21:52:44 -04:00
mark_story
f2578315e7
Refactoring how buffering works.
...
Adding buffer params to method calls.
Adding tests for buffer calls.
2009-03-29 16:10:04 -04:00
mark_story
8eeb00b66e
Refactoring writeScripts to buffer() methods to clarify API.
2009-03-29 14:23:42 -04:00
mark_story
ba15d955e2
Updating effect in Mootools
...
Updating effects and effect test in Prototype
2009-03-28 23:46:23 -04:00
mark_story
768941baeb
Adding each() to prototype engine
2009-03-28 18:11:16 -04:00
mark_story
55eafaf112
Adding domReady to prototype
2009-03-28 18:06:20 -04:00
mark_story
8cc5990e09
Adding event() and tests to prototype library
2009-03-28 12:08:34 -04:00
mark_story
da2361de14
Adding get() + tests to prototype
2009-03-28 11:50:57 -04:00
mark_story
977efe4e1d
Fixing callback naming issues with mootools
2009-03-28 00:31:51 -04:00
mark_story
29b3a96cb2
Adding sort() to option parsing, makes testing easier.
2009-03-28 00:31:08 -04:00
mark_story
9708b2dc50
Adding sortables to mootools engine.
2009-03-28 00:15:05 -04:00
mark_story
d59a704fb1
Adding sortable to jQuery engine.
2009-03-27 23:44:57 -04:00
mark_story
574b0529ec
Merge branch '1.3' into 1.3-jshelper
...
Conflicts:
cake/tests/cases/libs/view/helpers/html.test.php
cake/tests/cases/libs/view/helpers/js.test.php
2009-03-27 23:13:50 -04:00
mark_story
6551e2a45d
Adding test for file input creation on hasOne relationship. Refs #6223
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8132 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-28 02:46:23 +00:00
mark_story
0516fb2090
Enabling disabled attribute to be passed to hidden input when making checkboxes.
...
Test case added.
Fixes #6226
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8128 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-25 16:58:29 +00:00
jperras
4439bc4f70
Fixing regression in PaginatorHelper. Adding tests for PaginatorHelper::sortDir, as well as fixing incorrect test for sorting with Model.field dot notation. Fixes #6218 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8125 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-22 18:59:53 +00:00
davidpersson
fd7d6718a1
Updating tests to not affect other ones when run from a group
...
Adding NoCrossContamination group
Shortening group class names
Renaming lib_controller group
Updating test imports to include the core AppController by default
Some cosmetics
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8123 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-21 23:55:39 +00:00
mark_story
f15b793a4a
Disabling caching of JS files by default. Requiring webroot to be
...
writable by default it not a good idea.
2009-03-19 22:05:06 -04:00
mark_story
0bd3cc97c1
Adding tests and features for script caching to files.
2009-03-19 22:02:18 -04:00
gwoo
643651fe56
Merge master in 1.3
2009-03-19 14:10:13 -07:00
davidpersson
3c3b852099
Changing package of tests from "cake.tests" to "cake".
...
Moving tearDown et al. to the top of each test class.
Adding short descriptions to docblocks.
Adding missing docblocks.
Removing unnecessary blank lines and whitespaces.
Updating labels of test groups.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8116 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-18 17:55:58 +00:00
mark_story
d787ec3720
Moving writeCache and getCache to JsHelper.
...
Adding drag, drop, sortable stubs.
Adding control of caching to JsHelper.
Refactoring tests.
2009-03-15 23:42:25 -04:00
mark_story
91903a4dec
Adding request() to mootools.
2009-03-15 22:15:22 -04:00
mark_story
e237eec343
Fixing event stopping in mootools
2009-03-15 21:51:00 -04:00
mark_story
eea1fa576c
Refactoring quote style in jquery engine
2009-03-15 21:44:40 -04:00
mark_story
87d68e5029
Switching quote styles in mootools engine
...
Adding effect() and each() to mootools
Adding tests
2009-03-15 19:59:16 -04:00
mark_story
51a187f3e5
Adding Event binding to mootools engine
2009-03-15 18:48:34 -04:00
mark_story
a9da171e8c
Removing multiple param for JsBaseEngine::get() it is not needed.
...
Adding get() to Mootools engine
2009-03-15 17:48:27 -04:00
mark_story
6b0058308e
Adding skeletons for mootools engine
2009-03-15 17:32:04 -04:00
mark_story
4b690237f0
Merge branch '1.3' of git@thechaw.com:cakephp into 1.3-jshelper
...
Conflicts:
cake/libs/view/helpers/html.php
2009-03-15 13:20:43 -04:00
mark_story
e873bb5ab9
Adding querystring creation and option mapping to jquery engine.
...
More complex ajax requests can now be done.
2009-03-15 13:08:29 -04:00
mark_story
72866966b0
Updating parseOptions to allow safeKeys that do not need to be escaped
...
Useful for handling function callbacks in options arrays.
2009-03-15 12:26:12 -04:00
mark_story
ffdbec12fe
Refactoring event() and adding ability to stop default events.
2009-03-15 12:10:46 -04:00
mark_story
ae2114dcc1
Starting request() for jquery engine.
...
Adding _mapOptions so engines can map from abstract to concrete option
names.
Tests added.
2009-03-14 17:01:49 -04:00
gwoo
6cb8b3d286
Merge branch 'master' into 1.3.x.x
2009-03-14 13:57:18 -07:00
mark_story
72e1c73134
Adding effects and effects tests to JqueryEngine
2009-03-14 01:57:24 -04:00
mark_story
94c4e18112
Adding error feedback to base class methods
2009-03-14 00:10:43 -04:00
mark_story
20530f5ffb
Adding test case for jquery engine
...
Adding some methods for jquery engine
Updating methods in base class
2009-03-13 20:50:31 -04:00
mark_story
518e567458
Fixing handling of true, false, null in object encoding.
2009-03-13 19:37:57 -04:00
nate
36d3540c19
Adding native-type-generation fixes for JavascriptHelper::object()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8095 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-13 14:49:00 +00:00
mark_story
a1a54a152b
Adding methods to baseEngine
...
Removing file inclusion from JsHelper
Adding writeCache to JsHelper
Adding tests.
2009-03-12 23:48:19 -04:00
mark_story
91e47a6379
Adding scriptBlock() to HtmlHelper.
...
Adding tests.
2009-03-12 22:59:55 -04:00
mark_story
7ea7bd90c2
Moving script() method into HtmlHelper.
...
Moving tests.
2009-03-12 19:51:30 -04:00
gwoo
de6541f658
fixes #6189 , paginator sort direction for associated fields of the same name
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8092 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-12 17:11:08 +00:00
mariano.iglesias
fdbf102228
Fixing issue where disallowing plugin was not possible in PaginatorHelper, fixes #6159
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8090 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 19:24:06 +00:00
mark_story
100fdc1876
Adding tests for $once parameter
2009-03-08 22:33:34 -04:00
mark_story
6213b83f8d
Removing methods that are being/moved removed.
...
Reformatting tests.
2009-03-08 01:01:08 -05:00
mark_story
3e0d645957
Moving JS generating methods to BaseEngine class
...
Adding duplicate script detection.
2009-03-07 22:06:00 -05:00
mark_story
2362f283f2
Refactoring out string escaping and object conversion into base class.
2009-03-07 20:16:11 -05:00
mark_story
93a2e8fcad
Adding tests for timestamping
2009-03-07 19:34:05 -05:00
mark_story
0c77cc98b5
Adding min/pack detection and auto use.
2009-03-07 13:10:50 -05:00
mark_story
ea177fb7d8
Adding tests for features to be implemented
2009-03-07 02:26:19 -05:00
mark_story
1c2cd94786
Adding test cases for alert, confirm, prompt
2009-03-06 19:56:28 -05:00
mark_story
c92cfa7238
Starting Test Case for JsHelper
2009-03-06 19:51:13 -05:00
mark_story
c164be8c03
Enabling Asset.timestamp for HtmlHelper::image() making it consistent with Javascript::link().
...
Tests added.
Fixes #6170
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8078 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-06 04:40:50 +00:00
mark_story
18a7115385
Adding test to show proper escaping of escaped strings in Javscript::object() closes #6167 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8076 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-06 03:53:31 +00:00
jperras
79cba70758
Updating number helper to allow output of main currency symbol in the 'after' slot. Also added some basic i18n for NumberHelper::toReadableSize Fixes #6150 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8069 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-03 15:32:12 +00:00
mark_story
0be4f64801
Adding test cases for URL encoded values. Refs #6134
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8062 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 20:01:55 +00:00
mark_story
af021cb4b2
Adding Html entity conversion to all urls generated by helpers, fixing potential for merged passedArgs to create xss vectors.
...
Adding integer cast in paginate() to page param.
Tests added/updated.
Fixes #6134
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8061 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 19:51:41 +00:00
the_undefined
74bf622866
Fixes #6071
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8053 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-23 15:19:33 +00:00
gwoo
f0d03a91cf
Merge branch 'master' into 1.3.x.x
2009-02-09 12:01:06 -08:00
nate
c2f111a45a
Standardizing format string in PaginatorHelper::counter(), %page% becomes {:page}, old keys still work, but will be deprecated
2009-02-07 08:41:15 -05:00
mark_story
2da0c208d5
Fixing Helper::value() when only a fieldname is used. Refactoring Helper::value() to reduce method calls. Added tests to Helper. Fixes #6033
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8012 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-26 19:45:55 +00:00
renan.saddam
b5d7f182a0
Disproving FormHelper::textarea always escapes value. Closes #6016 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8006 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-21 01:15:29 +00:00
mark_story
b94a85e938
Altering Helper::url() to enforce escaped query strings for generated urls.
...
Tests added to Html::link(). Fixes #5982
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7991 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:41:47 +00:00
TommyO
de1d1ae3bd
Fixed asset.timestamp inconsistency for css files.
...
Added tests to confirm css linking.
Closes #5990 . Fixes #5991
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7990 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:19:11 +00:00
mark_story
287968934f
Fixing next()/prev() when paginating multiple models. Added tests from 'hummer'. Fixes #5970
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7989 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:08:11 +00:00
mark_story
7b12272253
Fixing issues with am times and form test.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7975 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-13 18:42:08 +00:00
mark_story
79c791548f
Fixing formHelper::hour when specifying a strtotime compatible string for the selected value. Tests added Fixes #5941
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7967 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-30 16:20:38 +00:00
nate
ad208ff8c3
Refactoring previous fix to revert markup changes in HtmlHelper, updating FormHelper tests to comply with coding standard, correcting bad assertions, fixing issue with field types being mis-identified if duplicate names are used, fixes #5919
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7959 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:13:06 +00:00
nate
61850b1be1
Cleaning up test code formatting, adding fix for POST hash validation of checkbox lists, fixes #5903 , test cases added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7951 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-23 08:13:00 +00:00
mark_story
60e3c6caa4
Removing unecessary Mock object creation.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7949 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-22 04:31:21 +00:00
mark_story
943bb53dda
Correcting callback firing of helpers in view. Tests added fixes #5906
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7948 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-21 22:14:48 +00:00
mark_story
9071d8165f
Correcting generation of id attributes for radio buttons. Tests added, fixes #5891
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7924 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 01:49:58 +00:00
mark_story
8c51d72ed8
Adding tests to disprove #5855 . Closes #5855
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7911 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-09 18:49:00 +00:00
mark_story
090028403b
Fixing FormHelper dateTime creation when using custom empty strings and null values. Tests added. Fixes #5769
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-29 00:28:31 +00:00
mariano.iglesias
f9557c7611
Fixing issue where radio elements would produce wrong hash when Security component enabled in FormHelper, fixes #5791
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7891 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 16:32:54 +00:00
phpnut
69f883a89f
Adding $data['attrib'] back to RssHelper::channel(); after more research use cases for this were found.
...
Related test case added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7889 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 05:54:31 +00:00
mark_story
cfa2229689
Fixing incorrect implementation of RssHelper::channel(). Test cases added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7887 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-24 23:10:29 +00:00
mariano.iglesias
04d06bccf8
Adding tests for PaginatorHelper::prev(), disproves and closes #5793
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7884 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-23 16:38:35 +00:00
mark_story
f3fc8dd742
Fixing RssHelper test. Timezone in tests did not reflect the DST change.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7877 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-16 05:06:36 +00:00
mariano.iglesias
e9953e3f93
Fixing issue where JavascriptHelper::link was generating wrong URLs when webroot is defined and appending timestapping. Fixing issue in previous commit. Fixes #5723 , fixes #5045
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7851 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 12:45:00 +00:00