| 45 | // For async tests, this returned function is used to set results |
| 46 | // instead of returning true/false. |
| 47 | function makeAsyncPassedFn(className, textContent) { |
| 48 | return function (rowNum) { |
| 49 | return function () { |
| 50 | var elem = $("#table-wrapper tbody tr:not(.category)") |
| 51 | .eq(+rowNum) |
| 52 | .children(".current") |
| 53 | .first() |
| 54 | .prop("className", className) |
| 55 | .text(textContent); |
| 56 | |
| 57 | if (window.__updateHeaderTotal) { |
| 58 | elem.parent().prevAll('.supertest').first().each(window.__updateSupertest); |
| 59 | $('th.current').each(window.__updateHeaderTotal); |
| 60 | } |
| 61 | }; |
| 62 | }; |
| 63 | } |
| 64 | window.__asyncPassedFn = makeAsyncPassedFn('yes', "Yes"); |
| 65 | window.__strictAsyncPassedFn = makeAsyncPassedFn("no strict", "Strict"); |
| 66 | |