(pos, tests)
| 1069 | } |
| 1070 | } |
| 1071 | function mergeLocators(pos, tests) { |
| 1072 | var locator = []; |
| 1073 | if (!$.isArray(tests)) tests = [ tests ]; |
| 1074 | if (tests.length > 0) { |
| 1075 | if (tests[0].alternation === undefined) { |
| 1076 | locator = determineTestTemplate(pos, tests.slice()).locator.slice(); |
| 1077 | if (locator.length === 0) locator = tests[0].locator.slice(); |
| 1078 | } else { |
| 1079 | $.each(tests, function(ndx, tst) { |
| 1080 | if (tst.def !== "") { |
| 1081 | if (locator.length === 0) locator = tst.locator.slice(); else { |
| 1082 | for (var i = 0; i < locator.length; i++) { |
| 1083 | if (tst.locator[i] && locator[i].toString().indexOf(tst.locator[i]) === -1) { |
| 1084 | locator[i] += "," + tst.locator[i]; |
| 1085 | } |
| 1086 | } |
| 1087 | } |
| 1088 | } |
| 1089 | }); |
| 1090 | } |
| 1091 | } |
| 1092 | return locator; |
| 1093 | } |
| 1094 | if (pos > -1) { |
| 1095 | if (ndxIntlzr === undefined) { |
| 1096 | var previousPos = pos - 1, test; |
no test coverage detected