Bug 84718

Summary: [EFL][DRT] LayoutTestController addUserScript implementation
Product: WebKit Reporter: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Component: WebKit EFLAssignee: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Status: RESOLVED FIXED    
Severity: Normal CC: gyuyoung.kim, lucas.de.marchi, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 84792    
Attachments:
Description Flags
LayoutTestController addUserScript implementation
none
LayoutTestController addUserScript implementation
none
LayoutTestController addUserScript implementation
tonikitoo: review+, webkit.review.bot: commit-queue-
to be landed.
gyuyoung.kim: commit-queue-
to be landed. none

Mikhail Pozdnyakov
Reported 2012-04-24 06:48:53 PDT
EFL's LayoutTestController needs addUserScript implementation in order to unskip 'userscripts' tests section.
Attachments
LayoutTestController addUserScript implementation (7.30 KB, patch)
2012-04-24 15:37 PDT, Mikhail Pozdnyakov
no flags
LayoutTestController addUserScript implementation (8.52 KB, patch)
2012-04-25 02:22 PDT, Mikhail Pozdnyakov
no flags
LayoutTestController addUserScript implementation (8.50 KB, patch)
2012-04-25 13:08 PDT, Mikhail Pozdnyakov
tonikitoo: review+
webkit.review.bot: commit-queue-
to be landed. (8.89 KB, patch)
2012-05-09 00:51 PDT, Mikhail Pozdnyakov
gyuyoung.kim: commit-queue-
to be landed. (8.98 KB, patch)
2012-05-09 01:22 PDT, Mikhail Pozdnyakov
no flags
Mikhail Pozdnyakov
Comment 1 2012-04-24 15:37:11 PDT
Created attachment 138670 [details] LayoutTestController addUserScript implementation
Raphael Kubo da Costa (:rakuco)
Comment 2 2012-04-24 15:58:30 PDT
Comment on attachment 138670 [details] LayoutTestController addUserScript implementation View in context: https://bugs.webkit.org/attachment.cgi?id=138670&action=review > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:662 > + DumpRenderTreeSupportEfl::addUserScript(browser->mainView(), source->ustring().utf8().data(), runAtStart, allFrames); Please create the String object here instead of passing a char* around and thus avoid an unneeded conversion.
Raphael Kubo da Costa (:rakuco)
Comment 3 2012-04-24 15:59:19 PDT
Comment on attachment 138670 [details] LayoutTestController addUserScript implementation View in context: https://bugs.webkit.org/attachment.cgi?id=138670&action=review > LayoutTests/platform/efl/Skipped:496 > +# To be investigated I believe there already is a category for 'tests that need investigation', please don't duplicate it. > LayoutTests/platform/efl/Skipped:500 > +# Unexpected flakiness Ditto.
Mikhail Pozdnyakov
Comment 4 2012-04-25 02:22:55 PDT
Created attachment 138764 [details] LayoutTestController addUserScript implementation
Mikhail Pozdnyakov
Comment 5 2012-04-25 02:26:20 PDT
(In reply to comment #2) > (From update of attachment 138670 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138670&action=review > > > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:662 > > + DumpRenderTreeSupportEfl::addUserScript(browser->mainView(), source->ustring().utf8().data(), runAtStart, allFrames); > > Please create the String object here instead of passing a char* around and thus avoid an unneeded conversion. Thanks for review! Fixed.
Mikhail Pozdnyakov
Comment 6 2012-04-25 02:26:35 PDT
(In reply to comment #3) > (From update of attachment 138670 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138670&action=review > > > LayoutTests/platform/efl/Skipped:496 > > +# To be investigated > > I believe there already is a category for 'tests that need investigation', please don't duplicate it. > > > LayoutTests/platform/efl/Skipped:500 > > +# Unexpected flakiness > > Ditto. Fixed.
Raphael Kubo da Costa (:rakuco)
Comment 7 2012-04-25 07:40:47 PDT
Comment on attachment 138764 [details] LayoutTestController addUserScript implementation View in context: https://bugs.webkit.org/attachment.cgi?id=138764&action=review > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:662 > + DumpRenderTreeSupportEfl::addUserScript(browser->mainView(), WTF::String(source->characters(), source->length()), runAtStart, allFrames); We generally create the String object by passing the StringImpl* returned by UString directly: String(source->ustring().impl())
Mikhail Pozdnyakov
Comment 8 2012-04-25 13:08:26 PDT
Created attachment 138863 [details] LayoutTestController addUserScript implementation
Mikhail Pozdnyakov
Comment 9 2012-04-25 13:15:20 PDT
(In reply to comment #7) > (From update of attachment 138764 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138764&action=review > > > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:662 > > + DumpRenderTreeSupportEfl::addUserScript(browser->mainView(), WTF::String(source->characters(), source->length()), runAtStart, allFrames); > > We generally create the String object by passing the StringImpl* returned by UString directly: > String(source->ustring().impl()) Fixed. Actually I see that WTF::String(source->characters(), source->length()) construction is used in LayoutTestControllerEFL:queueLoad(), do you think it also should be corrected same way?
Raphael Kubo da Costa (:rakuco)
Comment 10 2012-04-25 13:31:44 PDT
Comment on attachment 138863 [details] LayoutTestController addUserScript implementation Looks fine.
Raphael Kubo da Costa (:rakuco)
Comment 11 2012-04-25 13:33:25 PDT
(In reply to comment #9) > Actually I see that WTF::String(source->characters(), source->length()) construction is used in LayoutTestControllerEFL:queueLoad(), do you think it also should be corrected same way? I'll tackle that in my bug 84634, thanks for the pointer.
WebKit Review Bot
Comment 12 2012-05-08 06:54:56 PDT
Comment on attachment 138863 [details] LayoutTestController addUserScript implementation Rejecting attachment 138863 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: eeded at 71 with fuzz 2. patching file Tools/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp Hunk #1 succeeded at 251 with fuzz 1 (offset 38 lines). patching file Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp Hunk #1 succeeded at 694 with fuzz 1 (offset 37 lines). Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Antonio Go..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue/ Full output: http://queues.webkit.org/results/12648291
Gyuyoung Kim
Comment 13 2012-05-08 23:20:58 PDT
Comment on attachment 138863 [details] LayoutTestController addUserScript implementation Need to rebase.
Mikhail Pozdnyakov
Comment 14 2012-05-09 00:51:47 PDT
Created attachment 140877 [details] to be landed.
Gyuyoung Kim
Comment 15 2012-05-09 01:17:08 PDT
Comment on attachment 140877 [details] to be landed. Attachment 140877 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/12644657
Mikhail Pozdnyakov
Comment 16 2012-05-09 01:22:58 PDT
Created attachment 140884 [details] to be landed.
WebKit Review Bot
Comment 17 2012-05-09 02:03:19 PDT
Comment on attachment 140884 [details] to be landed. Clearing flags on attachment: 140884 Committed r116506: <http://trac.webkit.org/changeset/116506>
WebKit Review Bot
Comment 18 2012-05-09 02:03:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.