DescriptionEnsure DOMWrapperWorld always exists in all webkit_unit_tests
Currently DOMWrapperWorld can be 0 in some tests. This is problematic since I want to make DOMWrapperWorld::current() callable from anywhere. Thus this CL adds DOMWrapperWorld to all webkit_unit_tests.
- It's verbose to initialize v8::HandleScope, v8::Context, v8::Context::Scope, V8PerContextData and DOMWrapperWorld in each test. So this CL adds a helper class (V8BindingTestScope) that does all the initialization work.
- This CL also fixes indentation of V8Binding.h.
BUG=341032
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168355
R=dcarney@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168376
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Messages
Total messages: 23 (0 generated)
|