Add test for DomainParser.complete_reference
issue5731 review22191002
This commit is contained in:
1 parent
14df832d52
commit
b0a0e653af
1 file changed
+16
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user