RESOLVED FIXED 216428
Send TestRendered event after running a test but before dumping
https://bugs.webkit.org/show_bug.cgi?id=216428
Summary Send TestRendered event after running a test but before dumping
Attachments
Patch (43.36 KB, patch)
2020-09-11 20:34 PDT, Darin Adler
sam: review+
ews-feeder: commit-queue-
Patch to disable the precompiled header for WinCairo DRT and WTR (1.63 KB, patch)
2020-09-12 18:53 PDT, Fujii Hironori
no flags
Patch (47.12 KB, patch)
2020-09-12 22:06 PDT, Darin Adler
ews-feeder: commit-queue-
Patch (47.91 KB, patch)
2020-09-12 22:10 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2020-09-11 20:34:50 PDT
Darin Adler
Comment 2 2020-09-11 20:35:52 PDT
This sends the event. Might need to refine this later to make sure we force rendering twice the way the WPT documentation suggests; doing that unconditionally would probably slow down test running.
Alexey Proskuryakov
Comment 3 2020-09-11 20:40:09 PDT
I was about to say that there were iOS expectations to remove too, but there aren't. Not sure what happened.
Sam Weinig
Comment 4 2020-09-12 10:05:54 PDT
Comment on attachment 408584 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=408584&action=review > Tools/TestRunnerShared/Bindings/JSBasics.h:38 > +JSValueRef JSValueMakeBooleanOrNull(JSContextRef, Optional<bool>); > +Optional<bool> JSValueToNullableBoolean(JSContextRef, JSValueRef); > + > +JSValueRef JSValueMakeStringOrNull(JSContextRef, JSStringRef); Since you are just moving this, we shouldn't change this for this change, but I don't think we should mimic the JavaScriptCore c-API naming style here. Should instead be something like: JSValueMakeBooleanOrNull(JSContextRef, Optional<bool>) -> makeValue(JSContextRef, Optional<bool>) JSValueToNullableBoolean(JSContextRef, JSValueRef) -> toOptionalBool(JSContextRef, JSValueRef) JSValueMakeStringOrNull(JSContextRef, JSStringRef) -> makeValueAllowingNull(JSContextRef, JSStringRef)
Darin Adler
Comment 5 2020-09-12 12:12:03 PDT
(In reply to Sam Weinig from comment #4) > Since you are just moving this, we shouldn't change this for this change, > but I don't think we should mimic the JavaScriptCore c-API naming style > here. Should instead be something like: > > JSValueMakeBooleanOrNull(JSContextRef, Optional<bool>) -> > makeValue(JSContextRef, Optional<bool>) > JSValueToNullableBoolean(JSContextRef, JSValueRef) -> > toOptionalBool(JSContextRef, JSValueRef) > JSValueMakeStringOrNull(JSContextRef, JSStringRef) -> > makeValueAllowingNull(JSContextRef, JSStringRef) Yes, I absolutely agree. You will see I chose names like that for the newer functions I created recently and even renamed one of the old ones, but not all of them yet.
Darin Adler
Comment 6 2020-09-12 12:12:42 PDT
Is there anyone with Windows and CMake build expertise that can help me figure out why the WinCairo build is failing? Something about the same precompiled header being used with different /D options?
Darin Adler
Comment 7 2020-09-12 15:09:17 PDT
(In reply to Sam Weinig from comment #4) > JSValueMakeBooleanOrNull(JSContextRef, Optional<bool>) -> > makeValue(JSContextRef, Optional<bool>) Yes. > JSValueToNullableBoolean(JSContextRef, JSValueRef) -> > toOptionalBool(JSContextRef, JSValueRef) Maybe optionalBoolean or optionalBooleanValue instead? Never sure whether to name after the C++ type keyword or after the full name of the type. Also not sure we need the "to" in a case like this. > JSValueMakeStringOrNull(JSContextRef, JSStringRef) -> > makeValueAllowingNull(JSContextRef, JSStringRef) I think just makeValue. If we decide we need one that turns nullptr into an assertion, a crash, or an empty string we can give it the more unusual name.
Darin Adler
Comment 8 2020-09-12 15:10:55 PDT
Can’t land this until: 1) the fix for bug 216440 gets landed first, since I’ll have to merge with it 2) I figure out what to do on WinCairo. I do not understand why the build there is failing, since I put JSBasics.cpp in all the same places where JSWrapper.cpp was already mentioned. This could delay me indefinitely!
Fujii Hironori
Comment 9 2020-09-12 18:53:58 PDT
Created attachment 408630 [details] Patch to disable the precompiled header for WinCairo DRT and WTR Please disable the precompiled header for WinCairo DRT and WTR at the moment. I'll look into it next Monday.
Darin Adler
Comment 10 2020-09-12 22:06:36 PDT
Darin Adler
Comment 11 2020-09-12 22:10:58 PDT
Darin Adler
Comment 12 2020-09-12 23:21:45 PDT
Radar WebKit Bug Importer
Comment 13 2020-09-12 23:22:15 PDT
Note You need to log in before you can comment on or make changes to this bug.