MCPcopy Create free account
hub / github.com/jquery/jquery-ui / testLabels

Function testLabels

tests/unit/core/core.js:149–157  ·  view source on GitHub ↗
( testType )

Source from the content-addressed store, hash-verified

147 var dom = $( "#labels-fragment" );
148
149 function testLabels( testType ) {
150 var labels = dom.find( "#test" ).labels();
151 var found = labels.map( function() {
152 return String.prototype.trim.call( $( this ).text() );
153 } ).get();
154
155 assert.deepEqual( found, expected,
156 ".labels() finds all labels in " + testType + ", and sorts them in DOM order" );
157 }
158
159 testLabels( "the DOM" );
160

Callers 1

core.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…