Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp

Issue 2441593002: binding: Returns a reject promise when |this| is not of the type. (Closed)
Patch Set: Updated test expectations. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // clang-format off 8 // clang-format off
9 #include "V8TestCallbackFunctions.h" 9 #include "V8TestCallbackFunctions.h"
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 } // namespace TestCallbackFunctionsV8Internal 276 } // namespace TestCallbackFunctionsV8Internal
277 277
278 const V8DOMConfiguration::AccessorConfiguration V8TestCallbackFunctionsAccessors [] = { 278 const V8DOMConfiguration::AccessorConfiguration V8TestCallbackFunctionsAccessors [] = {
279 {"voidCallbackFunctionAttribute", TestCallbackFunctionsV8Internal::voidCallb ackFunctionAttributeAttributeGetterCallback, TestCallbackFunctionsV8Internal::vo idCallbackFunctionAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 279 {"voidCallbackFunctionAttribute", TestCallbackFunctionsV8Internal::voidCallb ackFunctionAttributeAttributeGetterCallback, TestCallbackFunctionsV8Internal::vo idCallbackFunctionAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
280 {"anyCallbackFunctionOptionalAnyArgAttribute", TestCallbackFunctionsV8Intern al::anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestCallb ackFunctionsV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSette rCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder}, 280 {"anyCallbackFunctionOptionalAnyArgAttribute", TestCallbackFunctionsV8Intern al::anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestCallb ackFunctionsV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSette rCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder},
281 {"customElementsCallbacksReadonlyAttribute", TestCallbackFunctionsV8Internal ::customElementsCallbacksReadonlyAttributeAttributeGetterCallback, 0, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}, 281 {"customElementsCallbacksReadonlyAttribute", TestCallbackFunctionsV8Internal ::customElementsCallbacksReadonlyAttributeAttributeGetterCallback, 0, 0, 0, null ptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder},
282 }; 282 };
283 283
284 const V8DOMConfiguration::MethodConfiguration V8TestCallbackFunctionsMethods[] = { 284 const V8DOMConfiguration::MethodConfiguration V8TestCallbackFunctionsMethods[] = {
285 {"returnCallbackFunctionMethod", TestCallbackFunctionsV8Internal::returnCall backFunctionMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype}, 285 {"returnCallbackFunctionMethod", TestCallbackFunctionsV8Internal::returnCall backFunctionMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
286 {"returnCallbackFunctionMethod2", TestCallbackFunctionsV8Internal::returnCal lbackFunctionMethod2MethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype}, 286 {"returnCallbackFunctionMethod2", TestCallbackFunctionsV8Internal::returnCal lbackFunctionMethod2MethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
287 {"voidMethodCallbackFunctionInArg", TestCallbackFunctionsV8Internal::voidMet hodCallbackFunctionInArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype}, 287 {"voidMethodCallbackFunctionInArg", TestCallbackFunctionsV8Internal::voidMet hodCallbackFunctionInArgMethodCallback, 0, 1, v8::None, V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
288 {"voidMethodCallbackFunctionInArg2", TestCallbackFunctionsV8Internal::voidMe thodCallbackFunctionInArg2MethodCallback, 0, 1, v8::None, V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype}, 288 {"voidMethodCallbackFunctionInArg2", TestCallbackFunctionsV8Internal::voidMe thodCallbackFunctionInArg2MethodCallback, 0, 1, v8::None, V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der},
289 {"voidMethodCallbackFunctionWithReturnValueInArg", TestCallbackFunctionsV8In ternal::voidMethodCallbackFunctionWithReturnValueInArgMethodCallback, 0, 1, v8:: None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 289 {"voidMethodCallbackFunctionWithReturnValueInArg", TestCallbackFunctionsV8In ternal::voidMethodCallbackFunctionWithReturnValueInArgMethodCallback, 0, 1, v8:: None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
290 {"voidMethodOptionalCallbackFunctionInArg", TestCallbackFunctionsV8Internal: :voidMethodOptionalCallbackFunctionInArgMethodCallback, 0, 0, v8::None, V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 290 {"voidMethodOptionalCallbackFunctionInArg", TestCallbackFunctionsV8Internal: :voidMethodOptionalCallbackFunctionInArgMethodCallback, 0, 0, v8::None, V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigura tion::CheckHolder},
291 {"voidMethodNullableCallbackFunctionInArg", TestCallbackFunctionsV8Internal: :voidMethodNullableCallbackFunctionInArgMethodCallback, 0, 1, v8::None, V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 291 {"voidMethodNullableCallbackFunctionInArg", TestCallbackFunctionsV8Internal: :voidMethodNullableCallbackFunctionInArgMethodCallback, 0, 1, v8::None, V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigura tion::CheckHolder},
292 {"customElementCallbacksMethod", TestCallbackFunctionsV8Internal::customElem entCallbacksMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype}, 292 {"customElementCallbacksMethod", TestCallbackFunctionsV8Internal::customElem entCallbacksMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
293 }; 293 };
294 294
295 static void installV8TestCallbackFunctionsTemplate(v8::Isolate* isolate, const D OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 295 static void installV8TestCallbackFunctionsTemplate(v8::Isolate* isolate, const D OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
296 // Initialize the interface object's template. 296 // Initialize the interface object's template.
297 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestCallbackFunctions::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT emplate>(), V8TestCallbackFunctions::internalFieldCount); 297 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestCallbackFunctions::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT emplate>(), V8TestCallbackFunctions::internalFieldCount);
298 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 298 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
299 ALLOW_UNUSED_LOCAL(signature); 299 ALLOW_UNUSED_LOCAL(signature);
300 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 300 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
301 ALLOW_UNUSED_LOCAL(instanceTemplate); 301 ALLOW_UNUSED_LOCAL(instanceTemplate);
302 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 302 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
(...skipping 13 matching lines...) Expand all
316 316
317 v8::Local<v8::Object> V8TestCallbackFunctions::findInstanceInPrototypeChain(v8:: Local<v8::Value> v8Value, v8::Isolate* isolate) { 317 v8::Local<v8::Object> V8TestCallbackFunctions::findInstanceInPrototypeChain(v8:: Local<v8::Value> v8Value, v8::Isolate* isolate) {
318 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 318 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
319 } 319 }
320 320
321 TestCallbackFunctions* V8TestCallbackFunctions::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 321 TestCallbackFunctions* V8TestCallbackFunctions::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
322 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 322 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
323 } 323 }
324 324
325 } // namespace blink 325 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698