Searched defs:assertThrows (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/v8/test/intl/
H A Dassert.js131 function assertThrows(code, type_opt, cause_opt) { function
/external/chromium_org/ui/webui/resources/js/
H A Dwebui_resource_test.js63 function assertThrows(f) { function
/external/chromium_org/v8/test/mjsunit/
H A Dmjsunit.js94 var assertThrows; variable
326 assertThrows = function assertThrows(code, type_opt, cause_opt) {
323 assertThrows = function assertThrows(code, type_opt, cause_opt) { function
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-347914.js21 var assertThrows; variable
42 as1sertThrows = function assertThrows(code, type_opt, cause_opt) { var threwException = true; try { if (typeof code == 'function') { code(); } else { eval(code); } threwException = false; } catch (e) { if (typeof type_opt == 'function') { assertInstanceof(e, type_opt); } if (arguments.length >= 3) { assertEquals(e.type, cause_opt); } return; } }; function

Completed in 2463 milliseconds