qunit dom:QUnit的高级DOM断言 源码
qunit-dom 高级DOM断言 assert . dom ( 'h1' ) . exists ( ) ; assert . dom ( 'h1' ) . hasClass ( 'title' ) ; assert . dom ( 'h1' ) . hasText ( 'Welcome to Ember, John Doe!' ) ; assert . dom ( 'input' ) . isFocused ( ) ; assert . dom ( 'input' ) . hasValue ( /. + Doe/ ) ; assert . dom ( 'input' ) . hasAttr