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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.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 "V8TestIntegerIndexedGlobal.h" 9 #include "V8TestIntegerIndexedGlobal.h"
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 V8TestIntegerIndexedGlobal::indexedPropertyDeleterCustom(index, info); 154 V8TestIntegerIndexedGlobal::indexedPropertyDeleterCustom(index, info);
155 } 155 }
156 156
157 } // namespace TestIntegerIndexedGlobalV8Internal 157 } // namespace TestIntegerIndexedGlobalV8Internal
158 158
159 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedGlobalAccess ors[] = { 159 const V8DOMConfiguration::AccessorConfiguration V8TestIntegerIndexedGlobalAccess ors[] = {
160 {"length", TestIntegerIndexedGlobalV8Internal::lengthAttributeGetterCallback , TestIntegerIndexedGlobalV8Internal::lengthAttributeSetterCallback, 0, 0, nullp tr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::C heckHolder}, 160 {"length", TestIntegerIndexedGlobalV8Internal::lengthAttributeGetterCallback , TestIntegerIndexedGlobalV8Internal::lengthAttributeSetterCallback, 0, 0, nullp tr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::C heckHolder},
161 }; 161 };
162 162
163 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalMethods[ ] = { 163 const V8DOMConfiguration::MethodConfiguration V8TestIntegerIndexedGlobalMethods[ ] = {
164 {"voidMethodDocument", TestIntegerIndexedGlobalV8Internal::voidMethodDocumen tMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance}, 164 {"voidMethodDocument", TestIntegerIndexedGlobalV8Internal::voidMethodDocumen tMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
165 }; 165 };
166 166
167 static void installV8TestIntegerIndexedGlobalTemplate(v8::Isolate* isolate, cons t DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 167 static void installV8TestIntegerIndexedGlobalTemplate(v8::Isolate* isolate, cons t DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
168 // Initialize the interface object's template. 168 // Initialize the interface object's template.
169 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestIntegerIndexedGlobal::wrapperTypeInfo.interfaceName, V8TestIntegerIndexed Global::domTemplateForNamedPropertiesObject(isolate, world), V8TestIntegerIndexe dGlobal::internalFieldCount); 169 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestIntegerIndexedGlobal::wrapperTypeInfo.interfaceName, V8TestIntegerIndexed Global::domTemplateForNamedPropertiesObject(isolate, world), V8TestIntegerIndexe dGlobal::internalFieldCount);
170 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 170 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
171 ALLOW_UNUSED_LOCAL(signature); 171 ALLOW_UNUSED_LOCAL(signature);
172 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 172 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
173 ALLOW_UNUSED_LOCAL(instanceTemplate); 173 ALLOW_UNUSED_LOCAL(instanceTemplate);
174 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 174 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 v8::Local<v8::Object> V8TestIntegerIndexedGlobal::findInstanceInPrototypeChain(v 8::Local<v8::Value> v8Value, v8::Isolate* isolate) { 220 v8::Local<v8::Object> V8TestIntegerIndexedGlobal::findInstanceInPrototypeChain(v 8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
221 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 221 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
222 } 222 }
223 223
224 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) { 224 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) {
225 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 225 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
226 } 226 }
227 227
228 } // namespace blink 228 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698