summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-03-15 14:06:31 +0100
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commitde214e37429213fe9f329ff3f11885fee3e271c4 (patch)
tree788d83d147e50eab53198f010edae442dc9eb929 /addons/web/static/tests/fields/basic_fields_tests.js
parent3467a90c0060de76d8f55e93aec5ba0b7d690cb5 (diff)
[REF] *: BS4, 'img-responsive' -> 'img-fluid'
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
-rw-r--r--addons/web/static/tests/fields/basic_fields_tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js
index a2224193bab..7d3108d5b43 100644
--- a/addons/web/static/tests/fields/basic_fields_tests.js
+++ b/addons/web/static/tests/fields/basic_fields_tests.js
@@ -1828,7 +1828,7 @@ QUnit.module('basic_fields', {
"the widget should have the correct class");
assert.strictEqual(form.$('div[name="document"] > img').length, 1,
"the widget should contain an image");
- assert.ok(form.$('div[name="document"] > img').hasClass('img-responsive'),
+ assert.ok(form.$('div[name="document"] > img').hasClass('img-fluid'),
"the image should have the correct class");
assert.strictEqual(form.$('div[name="document"] > img').attr('width'), "90",
"the image should correctly set its attributes");
@@ -4679,14 +4679,14 @@ QUnit.module('basic_fields', {
res_id: 2,
});
- assert.strictEqual(form.$('.img.img-responsive').length, 2,
+ assert.strictEqual(form.$('.img.img-fluid').length, 2,
"Two images should be rendered");
assert.strictEqual(form.$('.img.btn-info').length, 0,
"No image should be selected");
// select first image
- form.$(".img.img-responsive:first").click();
- assert.ok(form.$(".img.img-responsive:first").hasClass('btn-info'),
+ form.$(".img.img-fluid:first").click();
+ assert.ok(form.$(".img.img-fluid:first").hasClass('btn-info'),
"First image should be selected");
form.destroy();