[MERGE] forward port branch saas-11.1 up to 7e469eb77a
This commit is contained in:
@@ -1111,7 +1111,7 @@ QUnit.module('basic_fields', {
|
||||
QUnit.module('UrlWidget');
|
||||
|
||||
QUnit.test('url widget in form view', function (assert) {
|
||||
assert.expect(8);
|
||||
assert.expect(9);
|
||||
|
||||
var form = createView({
|
||||
View: FormView,
|
||||
@@ -1131,6 +1131,8 @@ QUnit.module('basic_fields', {
|
||||
"should have a anchor with correct classes");
|
||||
assert.strictEqual(form.$('a.o_form_uri.o_field_widget.o_text_overflow').attr('href'), 'yop',
|
||||
"should have proper href link");
|
||||
assert.strictEqual(form.$('a.o_form_uri.o_field_widget.o_text_overflow').attr('target'), '_blank',
|
||||
"should have target attribute set to _blank");
|
||||
assert.strictEqual(form.$('a.o_form_uri.o_field_widget.o_text_overflow').text(), 'yop',
|
||||
"the value should be displayed properly");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user