Searched defs:assertInstanceof (Results 1 - 8 of 8) sorted by relevance
/external/chromium_org/ui/webui/resources/js/ |
H A D | assert.js | 60 function assertInstanceof(value, type) { function
|
/external/chromium_org/v8/test/intl/ |
H A D | assert.js | 142 assertInstanceof(e, type_opt); 173 function assertInstanceof(obj, type) { function
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | mjsunit.js | 101 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 D | regress-347914.js | 23 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 D | regress-410912.js | 8 var assertInstanceof; variable
|
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/ |
H A D | asserts.js | 299 goog.asserts.assertInstanceof = function(value, type, opt_message, var_args) {
|
/external/chromium_org/chrome/third_party/chromevox/ |
H A D | chromeVoxChromeBackgroundScript.js | 53 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 D | chromeVoxChromeOptionsScript.js | 114 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