Bug 84718 - [EFL][DRT] LayoutTestController addUserScript implementation
Summary: [EFL][DRT] LayoutTestController addUserScript implementation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mikhail Pozdnyakov
URL:
Keywords:
Depends on:
Blocks: 84792
  Show dependency treegraph
 
Reported: 2012-04-24 06:48 PDT by Mikhail Pozdnyakov
Modified: 2012-05-22 11:12 PDT (History)
4 users (show)

See Also:


Attachments
LayoutTestController addUserScript implementation (7.30 KB, patch)
2012-04-24 15:37 PDT, Mikhail Pozdnyakov
no flags Details | Formatted Diff | Diff
LayoutTestController addUserScript implementation (8.52 KB, patch)
2012-04-25 02:22 PDT, Mikhail Pozdnyakov
no flags Details | Formatted Diff | Diff
LayoutTestController addUserScript implementation (8.50 KB, patch)
2012-04-25 13:08 PDT, Mikhail Pozdnyakov
tonikitoo: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
to be landed. (8.89 KB, patch)
2012-05-09 00:51 PDT, Mikhail Pozdnyakov
gyuyoung.kim: commit-queue-
Details | Formatted Diff | Diff
to be landed. (8.98 KB, patch)
2012-05-09 01:22 PDT, Mikhail Pozdnyakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Pozdnyakov 2012-04-24 06:48:53 PDT
EFL's LayoutTestController needs addUserScript implementation in order to unskip 'userscripts' tests section.
Comment 1 Mikhail Pozdnyakov 2012-04-24 15:37:11 PDT
Created attachment 138670 [details]
LayoutTestController addUserScript implementation
Comment 2 Raphael Kubo da Costa (:rakuco) 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.
Comment 3 Raphael Kubo da Costa (:rakuco) 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.
Comment 4 Mikhail Pozdnyakov 2012-04-25 02:22:55 PDT
Created attachment 138764 [details]
LayoutTestController addUserScript implementation
Comment 5 Mikhail Pozdnyakov 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.
Comment 6 Mikhail Pozdnyakov 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.
Comment 7 Raphael Kubo da Costa (:rakuco) 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())
Comment 8 Mikhail Pozdnyakov 2012-04-25 13:08:26 PDT
Created attachment 138863 [details]
LayoutTestController addUserScript implementation
Comment 9 Mikhail Pozdnyakov 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?
Comment 10 Raphael Kubo da Costa (:rakuco) 2012-04-25 13:31:44 PDT
Comment on attachment 138863 [details]
LayoutTestController addUserScript implementation

Looks fine.
Comment 11 Raphael Kubo da Costa (:rakuco) 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.
Comment 12 WebKit Review Bot 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
Comment 13 Gyuyoung Kim 2012-05-08 23:20:58 PDT
Comment on attachment 138863 [details]
LayoutTestController addUserScript implementation

Need to rebase.
Comment 14 Mikhail Pozdnyakov 2012-05-09 00:51:47 PDT
Created attachment 140877 [details]
to be landed.
Comment 15 Gyuyoung Kim 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
Comment 16 Mikhail Pozdnyakov 2012-05-09 01:22:58 PDT
Created attachment 140884 [details]
to be landed.
Comment 17 WebKit Review Bot 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>
Comment 18 WebKit Review Bot 2012-05-09 02:03:25 PDT
All reviewed patches have been landed.  Closing bug.