niv-openerp
40c4ed7f54
[FIX] problem in editable list o2m when hitting the enter button rapidly
...
bzr revid: nicolas.vanhoren@openerp.com-20121116151248-il59eiekk758suco
2012-11-16 16:12:48 +01:00
Xavier Morel
1e2e0c5cb1
[FIX] test cases
...
* mock(:) callback receives a pair (args, kwargs) not raw params
* list buttons test triggers domain evaluation, which depends on form (why???)
bzr revid: xmo@openerp.com-20121116115544-cdowx66w3m8inqon
2012-11-16 12:55:44 +01:00
Xavier Morel
e1e4c48c18
[REM] test runner feature which probably caused more trouble than it caught
...
avoid catching exception in executed callback, it just hinders debugging by generated completely bonkers traces
bzr revid: xmo@openerp.com-20121116105554-hu45anetrj1a8tl6
2012-11-16 11:55:54 +01:00
Xavier Morel
796e80ec2d
[FIX] deferred.pipe -> deferred.then
...
bzr revid: xmo@openerp.com-20121116101417-mkcjrdtocl6w7408
2012-11-16 11:14:17 +01:00
Xavier Morel
0d85c24ae3
[MERGE] from trunk, fix/adapt some tests
...
bzr revid: xmo@openerp.com-20121116100840-yyr9b4oru3zdftld
2012-11-16 11:08:40 +01:00
Xavier Morel
90f1015dee
[FIX] list button test: no call_button result now triggers an act_window_close
...
bzr revid: xmo@openerp.com-20121116094355-bsbxb0ufpjqx5j50
2012-11-16 10:43:55 +01:00
Xavier Morel
a9645151b6
[IMP] setup & teardown of test runner
...
simplify code and make setup & teardown processes more reliable
add testing.Stack tools which stacks promise-returning functions
around the actual promise-returning function to execute (the test case
itself).
testing.Stack returns an object with 3 methods, ``push([setup][,
teardown])``, ``unshift([setup][, teardown])`` and ``execute(fn,
*args)``. ``push`` and ``unshift`` create a new stack with the
provided setup and teardown added respectively at the top and bottom
of the stack.
``execute`` will walk the stack from bottom to top executing ``setup``
handlers (and waiting on their result), if all setup handlers execute
without failure the ``fn`` callback gets executed (and waited on) then
*all* ``teardown`` handlers are executed from top to bottom:
| setup
| setup
| setup
| setup
| fn
| teardown
| teardown
| teardown
V teardown
If a ``setup`` handler fails (the promise is rejected), teardowns will
start executing *from the previous level* (so the ``teardown``
matching the failed ``setup`` will *not* be run), but all
``teardowns`` below that will be run regardless, even if one fails the
next one will still be executed.
The stack will either ultimately return a promise rejection using the
*first* rejection it got (a rejection may be cascading, so the
rejection of a setup may also lead to or be linked to a teardown being
rejected later), or will return the resolution from ``fn``.
If ``execute`` is passed further arguments, those arguments will in
turn be forwarded to ``fn`` as well as all ``setup`` and ``teardown``
handlers.
bzr revid: xmo@openerp.com-20121116071712-zuld957icellezum
2012-11-16 08:17:12 +01:00
Xavier Morel
22edf6193d
[FIX] listview display when action button deletes the corresponding record
...
if a record has disappeared between activating a button and refreshing
the record, remove it from the list view
lp bug: https://launchpad.net/bugs/1042718 fixed
bzr revid: xmo@openerp.com-20121113104407-n924vinluqfdtesf
2012-11-13 11:44:07 +01:00
Xavier Morel
06bcfd27fc
[FIX] editable listview @on_write handling in case of @colors
...
the onwrite handler created an "empty" record with no field value
whatsoever, which'd blow up in the py evaluator. As during creation
(edition of a record where all fields are empty) create a record where
all fields are set to ``false`` so rendering works correctly, and wait
for content refresh to get correct data.
Also added a test for @on_write
bzr revid: xmo@openerp.com-20121112150526-vrr66ms95qbuoped
2012-11-12 16:05:26 +01:00
Fabien Meghazi
e7007332d8
[FIX] Restore tests
...
bzr revid: fme@openerp.com-20121107131212-dk2i6kzvkp4jwrb3
2012-11-07 14:12:12 +01:00
Fabien Meghazi
ca6c49becf
[IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
...
bzr revid: fme@openerp.com-20121030140630-gf20ye8fou1ebxft
2012-10-30 15:06:30 +01:00
Xavier Morel
6abc1134f5
[IMP] port list-edition tests to new framework
...
bzr revid: xmo@openerp.com-20121026100452-8s4j9g0mxzfuy834
2012-10-26 12:04:52 +02:00
Xavier Morel
a130035409
[IMP] port basic/existing tests to new framework, apart from editor stuff
...
bzr revid: xmo@openerp.com-20121026092144-0arxx2v9oi28e3d6
2012-10-26 11:21:44 +02:00
Xavier Morel
04282ff00e
[IMP] port search test to new framework, add handling of web.{submodule} dependencies
...
bzr revid: xmo@openerp.com-20121026084543-fobkc3ta5q2jc3q6
2012-10-26 10:45:43 +02:00
Xavier Morel
99a2dd3938
[ADD] first 90% of non-sucky testing API, last 90% left
...
also all existing tests shoud now be completely broken and need to be fixed
bzr revid: xmo@openerp.com-20121025154745-rw2gktfd6tp68k2m
2012-10-25 17:47:45 +02:00
vta vta@openerp.com
877957819e
[FIX] Fixed a forgotten add(), SearchView#on_invalid().
...
bzr revid: vta@openerp.com-20121019111558-zu8hzh7u61srew2e
2012-10-19 13:15:58 +02:00
Xavier Morel
b5be361c55
[FIX] various listview issues
...
bzr revid: xmo@openerp.com-20121018150108-althdcxk3jc2bkun
2012-10-18 17:01:08 +02:00
vta vta@openerp.com
59aaa765a6
[FIX] Fixed event name.
...
bzr revid: vta@openerp.com-20121018124607-rifo06nfx7jo134e
2012-10-18 14:46:07 +02:00
Xavier Morel
f910bc6780
[FIX] don't trigger search twice when a facet is removed from the query due to its values becoming empty
...
The facet removal from its last value being removed
(`this.remove(facet)` in the 'change' handler of the SearchQuery)
broadcasted its `remove` event, triggering the `do_search` (and
repaint) hook of the SearchView a second time right after the
`change`-triggered search.
Not only is this unnecessary and duplicated work (the `remove` is a
sync operation, so searchview-attached events haven't yet executed by
the time `remove` is called), the listview really doesn't like getting
a ``search`` signal while it's already executing a search.
So fix that.
bzr revid: xmo@openerp.com-20121018124005-6vfi7tqasz32ai8v
2012-10-18 14:40:05 +02:00
ggh-openerp
1a476fed69
[IMP] Remove add() in on_search method
...
bzr revid: ggh@tinyerp.com-20121011053907-tykje6i145fmjrl3
2012-10-11 11:09:07 +05:30
Vidhin Mehta (OpenERP)
558ad0616a
[IMP]remove callbacks from call method and improve related code.
...
bzr revid: vme@tinyerp.com-20121003103428-fnr942tzl065rcei
2012-10-03 16:04:28 +05:30
Vidhin Mehta (OpenERP)
b4c8143480
[IMP]remove callback from name_get function and improve related code.
...
bzr revid: vme@tinyerp.com-20120928065341-uiu3nf7seu5sps53
2012-09-28 12:23:41 +05:30
Xavier Morel
a933c17e54
[FIX] integrate web tests into buildbot runner, fix broken tests
...
* Remove deprecated tests and dead code
* Fix usage of mock
* Moar fixes
bzr revid: xmo@openerp.com-20120910105129-rxh3jqwkewh65rl3
2012-09-10 12:51:29 +02:00
Xavier Morel
4e23bcf80a
[IMP] update test runner pages, fix intermittent failure due to async test which didn't stop the test runner
...
bzr revid: xmo@openerp.com-20120905151914-hkrstjh5698dnddg
2012-09-05 17:19:14 +02:00
niv-openerp
5e338c591a
[IMP] made a whole-application replace of $element by $el
...
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
2012-08-24 20:27:07 +02:00
Christophe Simonis
63e4d9b572
[IMP] sed -i '' -e 's/connection/session/g'
...
bzr revid: chs@openerp.com-20120814152900-8r84kyz0qy1hwkvz
2012-08-14 17:29:00 +02:00
Xavier Morel
f1b6bc35d6
[FIX] add current_date to JS evaluation context
...
bzr revid: xmo@openerp.com-20120801144435-h0643av6ju9ncdpx
2012-08-01 16:44:35 +02:00
Xavier Morel
fbce1b1a1d
[FIX] increase test timeout due to mis-ordered async test taking way longer than expected
...
bzr revid: xmo@openerp.com-20120801130316-uzogecm5req2qrpj
2012-08-01 15:03:16 +02:00
Xavier Morel
acaec8b582
[FIX] Widget test: was changed to always have a root element for backwards fuckery reasons
...
bzr revid: xmo@openerp.com-20120801125910-x6obdnlx2oi5e3kw
2012-08-01 14:59:10 +02:00
Antony Lesuisse
fbb2f80cf1
[MERGE] backbonify-widgets, minor api changes that make Widget more similar to backbone Views
...
bzr revid: al@openerp.com-20120801124804-ov9l9ytabqx54gdo
2012-08-01 14:48:04 +02:00
Xavier Morel
f5bff3996b
[FIX] editor base state: initializing formview (and its pager) requires an actual dataset.ids.length
...
bzr revid: xmo@openerp.com-20120801123635-y21onweovg0uih7d
2012-08-01 14:36:35 +02:00
Xavier Morel
8a7428d731
[FIX] editable listview test: set_editable was removed, pass editable as option when creating listview
...
bzr revid: xmo@openerp.com-20120801123449-e65apxliok8fsrvq
2012-08-01 14:34:49 +02:00
Xavier Morel
d304f9fbb7
[CHG] rename this. to this.
...
because why make things simple when you can make them fucked up
bzr revid: xmo@openerp.com-20120726075359-b0uvuuagrfsf7nhb
2012-07-26 09:53:59 +02:00
Xavier Morel
0310d5ae73
[REM] #events can't be a function anymore
...
bzr revid: xmo@openerp.com-20120725091331-jvhgyf427cuxbwl4
2012-07-25 11:13:31 +02:00
Antony Lesuisse
3235ed8a18
[MERGE] trunk
...
bzr revid: al@openerp.com-20120725082646-ff6ljt0pquvm0dup
2012-07-25 10:26:46 +02:00
Antony Lesuisse
3611d585b3
[MERGE] trunk
...
bzr revid: al@openerp.com-20120721201123-3824izt73xvmk9vl
2012-07-21 22:11:23 +02:00
Xavier Morel
01e6e3ec07
[IMP] DOWNCASE ALL THE THINGS
...
apparently and contrary to what I remembered, we're still supposed to use underscore_separated method names, not camelCase
bzr revid: xmo@openerp.com-20120717132308-wvpldtprt33heee3
2012-07-17 15:23:08 +02:00
Xavier Morel
75c2845fb5
[ADD] default_get support on new row creation
...
bzr revid: xmo@openerp.com-20120716110430-9uv352m46d3mn1bx
2012-07-16 13:04:30 +02:00
Xavier Morel
0c872cf469
[FIX] trailing comma in array literal creates a single undefined element in IE8
...
bzr revid: xmo@openerp.com-20120712120657-14j2izo6idppq5aq
2012-07-12 14:06:57 +02:00
Xavier Morel
0bccd9be59
[FIX] tests: update jquery link, fix broken searchview test following merge
...
bzr revid: xmo@openerp.com-20120712115552-7adsu941o3wjtrmr
2012-07-12 13:55:52 +02:00
Xavier Morel
e431cda2d3
[MERGE} from trunk
...
bzr revid: xmo@openerp.com-20120711112959-tcb9epdfc9frt6ux
2012-07-11 13:29:59 +02:00
Xavier Morel
5b6df7ebeb
[ADD] Collection#pred as well, while we're at it
...
bzr revid: xmo@openerp.com-20120710131205-voi1nc5rkvewjr2f
2012-07-10 15:12:05 +02:00
Xavier Morel
079e90afbb
[ADD] successor method to list collections, to safely get the "next" record in a nested (groupby) context
...
bzr revid: xmo@openerp.com-20120710123718-kiot6zzji07a4iao
2012-07-10 14:37:18 +02:00
Xavier Morel
d968398d15
[ADD] events tests
...
bzr revid: xmo@openerp.com-20120705124342-vm0pavyzqfuwa3k5
2012-07-05 14:43:42 +02:00
Xavier Morel
09bf459bbc
[TESTS] add some
...
bzr revid: xmo@openerp.com-20120705070854-tsyl27v3hdh7sbds
2012-07-05 09:08:54 +02:00
Xavier Morel
b289447826
[TEST] saving of editor with required non-filled field, and cancelling of edition
...
bzr revid: xmo@openerp.com-20120704152329-81ktb8umm9xbr5wt
2012-07-04 17:23:29 +02:00
Xavier Morel
028f9d115f
[FIX] strangely implemented searchview test breaking some subsequent tests randomly
...
bzr revid: xmo@openerp.com-20120704140240-6yehb6c6ffxi7d12
2012-07-04 16:02:40 +02:00
Xavier Morel
cd90a9365c
[FUCK] that shit
...
bzr revid: xmo@openerp.com-20120704133521-7x05840jzek1d8e7
2012-07-04 15:35:21 +02:00
Xavier Morel
25284686f3
[TEST] saving of record being edited, improve RPC mocking to allow dispatch on ORM method name
...
bzr revid: xmo@openerp.com-20120704132822-3p4h1c6cyr0qvn2x
2012-07-04 15:28:22 +02:00
Xavier Morel
dda83dc1ea
[IMP] extract some testing primitives to a dedicated module, migrate search view tests to those
...
bzr revid: xmo@openerp.com-20120704112406-1lqwahtdo7fnla8o
2012-07-04 13:24:06 +02:00