( test_name, res, exp )
| 23 | }; |
| 24 | |
| 25 | function test_handler( test_name, res, exp ) { |
| 26 | var is_err = ($.isFunction(exp) && exp.prototype instanceof Error); |
| 27 | if ( is_err && res instanceof exp ) { |
| 28 | ok( res instanceof exp, test_name ); |
| 29 | } |
| 30 | else { |
| 31 | same( res, exp, test_name ); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // these are used throughout to test if tag blocks suppress them |
| 36 | jQuery.tmpl.tag.syntax_error = { open: "throw SyntaxError('test syntax error');" }; |