Searched defs:assertInstanceof (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/ui/webui/resources/js/
H A Dassert.js60 function assertInstanceof(value, type) { function
/external/chromium_org/v8/test/intl/
H A Dassert.js142 assertInstanceof(e, type_opt);
173 function assertInstanceof(obj, type) { function
/external/chromium_org/v8/test/mjsunit/
H A Dmjsunit.js101 var assertInstanceof; variable
337 assertInstanceof(e, type_opt);
349 assertInstanceof = function assertInstanceof(obj, type) {
346 assertInstanceof = function assertInstanceof(obj, type) { function
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-347914.js23 var assertInstanceof; 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
43 assertInstanceof = function assertInstanceof(obj, type) { if (!(obj instanceof type)) { var actualTypeName = null; var actualConstructor = Object.getPrototypeOf(obj).constructor; if (typeof actualConstructor == "function") { actualTypeName = actualConstructor.name || String(actualConstructor); } fail("Object <" + PrettyPrint(obj) + "> is not an instance of <" + (type.name || type) + ">" + (actualTypeName ? " but of < " + actualTypeName + ">" : "")); } };
H A Dregress-410912.js8 var assertInstanceof; variable
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/
H A Dasserts.js299 goog.asserts.assertInstanceof = function(value, type, opt_message, var_args) {
/external/chromium_org/chrome/third_party/chromevox/
H A DchromeVoxChromeBackgroundScript.js53 goog.asserts.assertInstanceof=function(a,b,c,d){!goog.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instanceof check failed.",null,c,Array.prototype.slice.call(arguments,3));return a};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.last=goog.array.peek;goog.array.ARRAY_PROTOTYPE_=Array.prototype;
H A DchromeVoxChromeOptionsScript.js114 goog.asserts.assertInstanceof=function(a,b,c,d){!goog.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instanceof check failed.",null,c,Array.prototype.slice.call(arguments,3));return a};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.last=goog.array.peek;goog.array.ARRAY_PROTOTYPE_=Array.prototype;

Completed in 502 milliseconds