Add test for DomainParser.complete_reference

issue5731
review22191002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-07-26 15:56:46 +02:00
1 parent 14df832d52
commit b0a0e653af
1 file changed
+16
+16
View File
@@ -1599,6 +1599,22 @@
[['male', 'f'], [['male', 'female']]],
].forEach(test_func, field);
field = {
'type': 'reference',
'selection': [
['spam', 'Spam'],
['ham', 'Ham'],
['', ''],
]
};
[
['s', ['%spam%']],
['test', []],
['', ['%spam%', '%ham%', '%']],
[null, ['%spam%', '%ham%', '%']],
[['spam', 'h'], [['spam', 'ham']]],
].forEach(test_func, field);
});
QUnit.test('DomainInversion simple_inversion', function() {