MCPcopy
hub / github.com/jquery/jquery / createStatusCodes

Function createStatusCodes

test/unit/ajax.js:1927–1937  ·  view source on GitHub ↗
( name, isSuccess )

Source from the content-addressed store, hash-verified

1925 }
1926
1927 function createStatusCodes( name, isSuccess ) {
1928 name = "Test " + name + " " + ( isSuccess ? "success" : "error" );
1929 return {
1930 200: function() {
1931 assert.ok( isSuccess, name );
1932 },
1933 404: function() {
1934 assert.ok( !isSuccess, name );
1935 }
1936 };
1937 }
1938
1939 jQuery.each(
1940

Callers 1

ajax.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected