( method, characters )
| 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, |
no test coverage detected