Searched defs:assertThrows (Results 1 - 4 of 4) sorted by relevance
/external/chromium_org/v8/test/intl/ |
H A D | assert.js | 131 function assertThrows(code, type_opt, cause_opt) { function
|
/external/chromium_org/ui/webui/resources/js/ |
H A D | webui_resource_test.js | 63 function assertThrows(f) { function
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | mjsunit.js | 94 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 D | regress-347914.js | 21 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