MCPcopy Create free account
hub / github.com/compat-table/compat-table / makeAsyncPassedFn

Function makeAsyncPassedFn

master.js:47–63  ·  view source on GitHub ↗
(className, textContent)

Source from the content-addressed store, hash-verified

45// For async tests, this returned function is used to set results
46// instead of returning true/false.
47function 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}
64window.__asyncPassedFn = makeAsyncPassedFn('yes', "Yes");
65window.__strictAsyncPassedFn = makeAsyncPassedFn("no strict", "Strict");
66

Callers 1

master.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected