[MERGE] forward port branch 11.0 up to ad825b673b

This commit is contained in:
Christophe Simonis
2018-04-16 18:34:56 +02:00
120 changed files with 2635 additions and 941 deletions
@@ -3080,7 +3080,7 @@ QUnit.module('basic_fields', {
QUnit.module('PhoneWidget');
QUnit.test('phone field in form view on extra small screens', function (assert) {
assert.expect(7);
assert.expect(8);
var form = createView({
View: FormView,
@@ -3127,6 +3127,15 @@ QUnit.module('basic_fields', {
assert.strictEqual($phoneLink.attr('href'), 'tel:new',
"should still have proper tel prefix");
// NOT NEEDED AS OF SAAS-11.3
// save phone with ­ and verify it is removed
form.$buttons.find('.o_form_button_edit').click();
form.$('input[type="text"].o_field_widget').val('h\u00ADi').trigger('input');
form.$buttons.find('.o_form_button_save').click();
$phoneLink = form.$('a.o_form_uri.o_field_widget');
assert.strictEqual($phoneLink.attr('href'), 'tel:hi',
"U+00AD should have been removed");
form.destroy();
});