RESOLVED FIXED 92735
[DRT] LTC:: Move printing related APIs from LayoutTestController to Internals
https://bugs.webkit.org/show_bug.cgi?id=92735
Summary [DRT] LTC:: Move printing related APIs from LayoutTestController to Internals
Kaustubh Atrawalkar
Reported 2012-07-31 02:53:25 PDT
Implement numberOfPages, pageProperty & pageSizeAndMarginsInPixels in Internals and remove duplicated code from DumprenderTree & WebkitTestRunner.
Attachments
WIP (64.46 KB, patch)
2012-07-31 02:55 PDT, Kaustubh Atrawalkar
no flags
Archive of layout-test-results from gce-cr-linux-07 (619.75 KB, application/zip)
2012-07-31 04:37 PDT, WebKit Review Bot
no flags
Patch (95.39 KB, patch)
2012-07-31 04:56 PDT, Kaustubh Atrawalkar
no flags
Patch (95.33 KB, patch)
2012-08-01 00:34 PDT, Kaustubh Atrawalkar
no flags
Patch (97.05 KB, patch)
2012-08-01 02:26 PDT, Kaustubh Atrawalkar
no flags
Patch (97.93 KB, patch)
2012-08-01 04:10 PDT, Kaustubh Atrawalkar
no flags
Patch (98.10 KB, patch)
2012-08-01 05:13 PDT, Kaustubh Atrawalkar
no flags
Patch (97.94 KB, patch)
2012-08-01 05:27 PDT, Kaustubh Atrawalkar
no flags
Patch (98.21 KB, patch)
2012-08-01 06:05 PDT, Kaustubh Atrawalkar
no flags
Archive of layout-test-results from gce-cr-linux-03 (362.88 KB, application/zip)
2012-08-01 13:51 PDT, WebKit Review Bot
no flags
Patch (98.01 KB, patch)
2012-08-09 05:45 PDT, Kaustubh Atrawalkar
no flags
Archive of layout-test-results from gce-cr-linux-02 (417.22 KB, application/zip)
2012-08-10 09:55 PDT, WebKit Review Bot
no flags
Patch (93.40 KB, patch)
2012-09-04 06:34 PDT, Kaustubh Atrawalkar
no flags
Patch (94.47 KB, patch)
2012-09-05 00:49 PDT, Kaustubh Atrawalkar
no flags
Patch (93.77 KB, patch)
2012-09-05 02:26 PDT, Kaustubh Atrawalkar
morrita: review+
Kaustubh Atrawalkar
Comment 1 2012-07-31 02:55:03 PDT
Created attachment 155479 [details] WIP WIP for getting Mac Win symbols for implemented APIs
Build Bot
Comment 2 2012-07-31 03:06:11 PDT
Build Bot
Comment 3 2012-07-31 03:08:58 PDT
Early Warning System Bot
Comment 4 2012-07-31 03:11:47 PDT
Early Warning System Bot
Comment 5 2012-07-31 03:17:04 PDT
WebKit Review Bot
Comment 6 2012-07-31 04:37:39 PDT
Comment on attachment 155479 [details] WIP Attachment 155479 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13387736 New failing tests: printing/css2.1/page-break-before-001.html printing/page-count-relayout-shrink.html printing/page-format-data.html printing/css2.1/page-break-after-000.html printing/css2.1/page-break-after-004.html printing/page-rule-selection.html printing/page-count-layout-overflow.html printing/stretch-to-view-height.html printing/css2.1/page-break-before-000.html printing/page-count-percentage-height.html printing/numberOfPages.html printing/css2.1/page-break-after-003.html printing/css2.1/page-break-after-001.html printing/css2.1/page-break-before-002.html
WebKit Review Bot
Comment 7 2012-07-31 04:37:45 PDT
Created attachment 155492 [details] Archive of layout-test-results from gce-cr-linux-07 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-07 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Kaustubh Atrawalkar
Comment 8 2012-07-31 04:56:46 PDT
Build Bot
Comment 9 2012-07-31 05:19:07 PDT
Kaustubh Atrawalkar
Comment 10 2012-08-01 00:34:22 PDT
Kaustubh Atrawalkar
Comment 11 2012-08-01 00:35:26 PDT
Here is the corresponding chromium CR for removing redundant code from webkit_glue - https://chromiumcodereview.appspot.com/10829099/
Hajime Morrita
Comment 12 2012-08-01 00:51:13 PDT
Comment on attachment 155736 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=155736&action=review Basically looks good. Added a few comment. > Source/WebCore/testing/Internals.cpp:1137 > + return -1; Could you throw an exception rather than returning this? I think it could break compatibility (or can be compatible with tiny change.) > Source/WebCore/testing/Internals.cpp:1145 > + return String(); Ditto. > Source/WebCore/testing/Internals.cpp:1153 > + return String(); Ditto.
Kaustubh Atrawalkar
Comment 13 2012-08-01 02:26:05 PDT
Kaustubh Atrawalkar
Comment 14 2012-08-01 02:29:49 PDT
Thanks Morrita for review. I have updated the Internals APIs with throwing exception codes. As well as added exception codes for previously migrated ones. Please review.
Build Bot
Comment 15 2012-08-01 02:42:24 PDT
Kaustubh Atrawalkar
Comment 16 2012-08-01 04:10:19 PDT
Build Bot
Comment 17 2012-08-01 04:24:28 PDT
Kaustubh Atrawalkar
Comment 18 2012-08-01 05:13:05 PDT
Kaustubh Atrawalkar
Comment 19 2012-08-01 05:27:11 PDT
Build Bot
Comment 20 2012-08-01 05:52:28 PDT
Kaustubh Atrawalkar
Comment 21 2012-08-01 06:05:38 PDT
Build Bot
Comment 22 2012-08-01 06:19:09 PDT
WebKit Review Bot
Comment 23 2012-08-01 13:51:49 PDT
Comment on attachment 155791 [details] Patch Attachment 155791 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13403719 New failing tests: printing/page-break-avoid.html fast/forms/range/slider-delete-while-dragging-thumb.html printing/page-count-relayout-shrink.html printing/page-count-percentage-height.html printing/css2.1/page-break-after-000.html fast/loader/loadInProgress.html printing/numberOfPages.html printing/page-break-orphans-and-widows.html printing/page-break-always.html printing/no-content-empty-pages.html printing/page-break-after-avoid.html http/tests/security/script-crossorigin-loads-correctly.html printing/page-break-display-none.html printing/page-break-widows.html printing/pageNumerForElementById.html http/tests/xmlhttprequest/zero-length-response.html printing/page-count-layout-overflow.html fast/forms/range/slider-mouse-events.html printing/stretch-to-view-height.html fast/forms/range/slider-onchange-event.html printing/page-break-margin-collapsed.html fast/loader/unload-form-post-about-blank.html printing/page-break-inside-avoid.html printing/allowed-page-breaks.html printing/page-break-orphans.html printing/page-break-before-avoid.html
WebKit Review Bot
Comment 24 2012-08-01 13:51:54 PDT
Created attachment 155878 [details] Archive of layout-test-results from gce-cr-linux-03 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-03 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Kaustubh Atrawalkar
Comment 25 2012-08-09 05:45:19 PDT
WebKit Review Bot
Comment 26 2012-08-10 09:55:04 PDT
Comment on attachment 157455 [details] Patch Attachment 157455 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13471602 New failing tests: printing/page-break-avoid.html fast/forms/range/slider-delete-while-dragging-thumb.html printing/page-count-relayout-shrink.html printing/page-count-percentage-height.html fast/loader/loadInProgress.html printing/numberOfPages.html printing/page-break-orphans-and-widows.html printing/pageNumerForElementById.html printing/no-content-empty-pages.html printing/page-break-after-avoid.html fast/frames/cached-frame-counter.html printing/page-break-display-none.html printing/page-break-widows.html printing/page-break-always.html http/tests/xmlhttprequest/zero-length-response.html printing/page-count-layout-overflow.html platform/chromium/virtual/gpu/fast/canvas/webgl/shader-precision-format.html fast/forms/range/slider-mouse-events.html fast/canvas/webgl/shader-precision-format.html printing/stretch-to-view-height.html fast/forms/range/slider-onchange-event.html printing/page-break-margin-collapsed.html fast/loader/unload-form-post-about-blank.html printing/page-break-inside-avoid.html printing/allowed-page-breaks.html printing/page-break-orphans.html printing/page-break-before-avoid.html
WebKit Review Bot
Comment 27 2012-08-10 09:55:13 PDT
Created attachment 157750 [details] Archive of layout-test-results from gce-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-02 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Kaustubh Atrawalkar
Comment 28 2012-09-04 06:34:17 PDT
Build Bot
Comment 29 2012-09-04 07:28:50 PDT
Kaustubh Atrawalkar
Comment 30 2012-09-04 07:33:04 PDT
(In reply to comment #29) > (From update of attachment 162030 [details]) > Attachment 162030 [details] did not pass win-ews (win): > Output: http://queues.webkit.org/results/13739558 Weird error :( Don't know how came these unresolved symbols came in??
Kaustubh Atrawalkar
Comment 31 2012-09-05 00:49:45 PDT
Build Bot
Comment 32 2012-09-05 01:15:27 PDT
Kaustubh Atrawalkar
Comment 33 2012-09-05 02:26:18 PDT
Hajime Morrita
Comment 34 2012-09-05 03:51:41 PDT
Comment on attachment 162194 [details] Patch It's built! Let's land it!
Kaustubh Atrawalkar
Comment 35 2012-09-05 04:36:44 PDT
Note You need to log in before you can comment on or make changes to this bug.