MCPcopy
hub / github.com/jquery/jquery / t

Function t

test/unit/selector.js:1819–1823  ·  view source on GitHub ↗

* Asserts that a select matches the given IDs * @example t("Check for something", "//[a]", ["foo", "bar"]); * @param {String} message - Assertion name * @param {String} selector - jQuery selector * @param {Array} expectedIds - Array of ids to construct what is expected

( message, selector, expectedIds )

Source from the content-addressed store, hash-verified

1817 * @param {Array} expectedIds - Array of ids to construct what is expected
1818 */
1819 function t( message, selector, expectedIds ) {
1820 var elems = jQuery( selector ).get();
1821
1822 assert.deepEqual( elems, q.apply( q, expectedIds ), message + " (" + selector + ")" );
1823 }
1824
1825 // ====== All known boolean attributes, including html5 booleans ======
1826 // autobuffer, autofocus, autoplay, async, checked,

Callers 2

selector.jsFile · 0.70
effects.jsFile · 0.70

Calls 1

jQueryFunction · 0.50

Tested by

no test coverage detected