diff --git a/addons/base/static/lib/qweb/qweb-test-trim.xml b/addons/base/static/lib/qweb/qweb-test-trim.xml deleted file mode 100644 index 964aa2733c5..00000000000 --- a/addons/base/static/lib/qweb/qweb-test-trim.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - ok - - ok - ok - ok - - o k - - - - - - [ ] - - - - diff --git a/addons/base/static/lib/qweb/qweb-test.js.html b/addons/base/static/lib/qweb/qweb-test.js.html index ebf05c25588..4474b6ac542 100644 --- a/addons/base/static/lib/qweb/qweb-test.js.html +++ b/addons/base/static/lib/qweb/qweb-test.js.html @@ -193,39 +193,6 @@ "Call with t-import (calls in current context)"); }); - module("Trim", { - setup: function () { - QWeb.add_template('qweb-test-trim.xml'); - }, - teardown: function () { - QWeb.templates = []; - QWeb.tag = {}; - QWeb.att = {}; - } - }); - test('Trim content', function () { - equals(QWeb.render('trim-content-both', {}), 'ok', - "Trims before and after content"); - equals(QWeb.render('trim-content-before', {}), 'ok ', - "Trims before content"); - equals(QWeb.render('trim-content-after', {}), ' ok', - "Trims after content"); - raises(function () {QWeb.render('trim-content-unknown', {});}, - "Trims with an unknown mode"); - }); - test('Trim content *and* children', function () { - equals(QWeb.render('trim-children-text', {}), 'o k', - "Trims text children"); - equals(QWeb.render('trim-children-elements', {}), '', - "Full trim"); - equals(QWeb.render('trim-mixed-children', {}), '[]', - "Trims mixed content of text and elements"); - equals(QWeb.render('trim-children-left', {}), ' ', - "Trims children and left of content"); - equals(QWeb.render('trim-children-right', {}), ' ', - "Trims children and right of content"); - }); - module("Foreach", { setup: function () { QWeb.add_template('qweb-test-foreach.xml');