MCPcopy Index your code
hub / github.com/jquery/jquery / assertSpecialCharsSupport

Function assertSpecialCharsSupport

test/unit/manipulation.js:514–533  ·  view source on GitHub ↗
( method, characters )

Source from the content-addressed store, hash-verified

512 }
513
514 function assertSpecialCharsSupport( method, characters ) {
515 var child,
516 codepoint = characters.charCodeAt( 0 ).toString( 16 ).toUpperCase(),
517 description = characters.length === 1 ?
518 "U+" + ( "000" + codepoint ).slice( -4 ) + " " + characters :
519 "all special characters",
520 nodeName = "valid" + characters + "tagname";
521
522 child = buildChild( method, "<" + nodeName + "></" + nodeName + ">" );
523 assert.equal( child.nodeName.toUpperCase(), nodeName.toUpperCase(),
524 method + "(): Paired tag name includes " + description );
525
526 child = buildChild( method, "<" + nodeName + ">" );
527 assert.equal( child.nodeName.toUpperCase(), nodeName.toUpperCase(),
528 method + "(): Unpaired tag name includes " + description );
529
530 child = buildChild( method, "<" + nodeName + "/>" );
531 assert.equal( child.nodeName.toUpperCase(), nodeName.toUpperCase(),
532 method + "(): Self-closing tag name includes " + description );
533 }
534
535 function assertNameTerminatingCharsHandling( method, character ) {
536 var child,

Callers 1

manipulation.jsFile · 0.85

Calls 1

buildChildFunction · 0.85

Tested by

no test coverage detected