diff --git a/tests/qweb/__snapshots__/t_debug_log.test.ts.snap b/tests/qweb/__snapshots__/t_debug_log.test.ts.snap index a8287e96..c43d5a6e 100644 --- a/tests/qweb/__snapshots__/t_debug_log.test.ts.snap +++ b/tests/qweb/__snapshots__/t_debug_log.test.ts.snap @@ -21,6 +21,37 @@ exports[`debugging t-debug 1`] = ` }" `; +exports[`debugging t-debug on sub template 1`] = ` +"function anonymous(bdom, helpers +) { + let { text, createBlock, list, multi, html, toggler, component } = bdom; + let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; + + let block1 = createBlock(\`
coucou
\`); + + return function template(ctx, node, key = \\"\\") { + debugger; + return block1(); + } +}" +`; + +exports[`debugging t-debug on sub template 2`] = ` +"function anonymous(bdom, helpers +) { + let { text, createBlock, list, multi, html, toggler, component } = bdom; + let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; + const callTemplate_2 = getTemplate(\`sub\`); + + let block1 = createBlock(\`coucou
- //coucou
`; + snapshotTemplateCode(template); + template = `