[EFL][DRT] Implement LayoutTestController::layerTreeAsText
authorkenneth@webkit.org <kenneth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 14:15:14 +0000 (14:15 +0000)
committerkenneth@webkit.org <kenneth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 14:15:14 +0000 (14:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82294

Reviewed by Gyuyoung Kim.

Source/WebKit/efl:

Add a support method for getting layerTreeAsText.

* WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
(DumpRenderTreeSupportEfl::layerTreeAsText):
* WebCoreSupport/DumpRenderTreeSupportEfl.h:

Tools:

Implement layerTreeAsText using the DumpRenderTreeSupportEfl method.

* DumpRenderTree/efl/TestRunnerEfl.cpp:
(TestRunner::layerTreeAsText):

LayoutTests:

The tests are no longer failing because of missing layerTreeAsText
but due to accelerated compositing not being enabled.

* platform/efl/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128454 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/efl/TestExpectations
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h
Tools/ChangeLog
Tools/DumpRenderTree/efl/TestRunnerEfl.cpp

index bd4cd21..0f4d0d0 100644 (file)
@@ -1,3 +1,15 @@
+2012-09-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        [EFL][DRT] Implement LayoutTestController::layerTreeAsText
+        https://bugs.webkit.org/show_bug.cgi?id=82294
+
+        Reviewed by Gyuyoung Kim.
+
+        The tests are no longer failing because of missing layerTreeAsText
+        but due to accelerated compositing not being enabled.
+
+        * platform/efl/TestExpectations:
+
 2012-09-13  Zan Dobersek  <zandobersek@gmail.com>
 
         Unreviewed GTK gardening.
index 91e8a3f..7c73318 100644 (file)
@@ -402,116 +402,116 @@ BUGWK87974 : http/tests/download = TEXT IMAGE IMAGE+TEXT
 BUGWK87972 : fast/loader/policy-delegate-action-hit-test-zoomed.html = TEXT
 BUGWK87972 : fast/encoding/mailto-always-utf-8.html = TEXT
 
-// EFL's LayoutTestController does not implement layerTreeAsText
-BUGWK82294 : compositing/animation/animation-compositing.html = TEXT
-BUGWK82294 : compositing/geometry/ancestor-overflow-change.html = TEXT
-BUGWK82294 : compositing/geometry/clip.html = TEXT
-BUGWK82294 : compositing/geometry/composited-in-columns.html = TEXT
-BUGWK82294 : compositing/geometry/flipped-writing-mode.html = TEXT
-BUGWK82294 : compositing/geometry/foreground-layer.html = TEXT
-BUGWK82294 : compositing/geometry/layer-due-to-layer-children-deep-switch.html = TEXT
-BUGWK82294 : compositing/geometry/layer-due-to-layer-children-switch.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-clipping-ancestor.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-fixed-positioned.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-opacity-transition.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-overflow-root.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-positioned-transition.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-positioned.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-transformed-overflow.html = TEXT
-BUGWK82294 : compositing/geometry/limit-layer-bounds-transformed.html = TEXT
-BUGWK82294 : compositing/geometry/preserve-3d-switching.html = TEXT
-BUGWK82294 : compositing/iframes/become-composited-nested-iframes.html = TEXT
-BUGWK82294 : compositing/iframes/become-overlapped-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/composited-parent-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/connect-compositing-iframe-delayed.html = TEXT
-BUGWK82294 : compositing/iframes/connect-compositing-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/connect-compositing-iframe2.html = TEXT
-BUGWK82294 : compositing/iframes/connect-compositing-iframe3.html = TEXT
-BUGWK82294 : compositing/iframes/enter-compositing-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/iframe-resize.html = TEXT
-BUGWK82294 : compositing/iframes/iframe-size-from-zero.html = TEXT
-BUGWK82294 : compositing/iframes/iframe-size-to-zero.html = TEXT
-BUGWK82294 : compositing/iframes/iframe-src-change.html = TEXT
-BUGWK82294 : compositing/iframes/invisible-nested-iframe-hide.html = TEXT
-BUGWK82294 : compositing/iframes/invisible-nested-iframe-show.html = TEXT
-BUGWK82294 : compositing/iframes/overlapped-iframe-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/overlapped-iframe.html = TEXT
-BUGWK82294 : compositing/iframes/overlapped-nested-iframes.html = TEXT
-BUGWK82294 : compositing/iframes/page-cache-layer-tree.html = TEXT
-BUGWK82294 : compositing/iframes/resizer.html = MISSING
-BUGWK82294 : compositing/iframes/scrolling-iframe.html = TEXT
-BUGWK82294 : compositing/images/clip-on-directly-composited-image.html = TEXT
-BUGWK82294 : compositing/layer-creation/animation-overlap-with-children.html = TEXT
-BUGWK82294 : compositing/layer-creation/fixed-position-and-transform.html = TEXT
-BUGWK82294 : compositing/layer-creation/fixed-position-under-transform.html = TEXT
-BUGWK82294 : compositing/layer-creation/overflow-scroll-overlap.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-child-layer.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-clipping.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-transformed-layer.html = TEXT
-BUGWK82294 : compositing/layer-creation/rotate3d-overlap.html = TEXT
-BUGWK82294 : compositing/layer-creation/scroll-partial-update.html = TEXT
-BUGWK82294 : compositing/layer-creation/spanOverlapsCanvas.html = TEXT
-BUGWK82294 : compositing/layer-creation/translatez-overlap.html = TEXT
-BUGWK82294 : compositing/overflow/clip-descendents.html = TEXT
-BUGWK82294 SKIP : compositing/overflow/clipping-ancestor-with-accelerated-scrolling-ancestor.html = MISSING
-BUGWK82294 : compositing/overflow/content-gains-scrollbars.html = TEXT
-BUGWK82294 : compositing/overflow/content-loses-scrollbars.html = TEXT
-BUGWK82294 SKIP : compositing/overflow/nested-scrolling.html = MISSING
-BUGWK82294 : compositing/overflow/overflow-auto-with-touch.html = TEXT
-BUGWK82294 : compositing/overflow/overflow-auto-with-touch-toggle.html = TEXT
-BUGWK82294 SKIP : compositing/overflow/overflow-clip-with-accelerated-scrolling-ancestor.html = MISSING
-BUGWK82294 : compositing/overflow/overflow-overlay-with-touch.html = TEXT
-BUGWK82294 : compositing/overflow/overflow-scrollbar-layers.html = TEXT
-BUGWK82294 SKIP : compositing/overflow/remove-overflow-crash2.html = MISSING
-BUGWK82294 : compositing/overflow/resize-painting.html = TEXT
-BUGWK82294 : compositing/overflow/scrolling-content-clip-to-viewport.html = TEXT
-BUGWK82294 : compositing/overflow/textarea-scroll-touch.html = TEXT
-BUGWK82294 : compositing/plugins/no-backing-store.html = TEXT
-BUGWK82294 : compositing/plugins/small-to-large-composited-plugin.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-absolute-overflow-scrolled.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-absolute-overflow.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-absolute.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-fixed-overflow-scrolled.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-fixed-overflow.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-fixed.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-absolute-overflow-scrolled.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-absolute-overflow.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-absolute.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-fixed-overflow-scrolled.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-fixed-overflow.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-fixed.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-iframe-relative.html = TEXT
-BUGWK82294 : compositing/rtl/rtl-relative.html = TEXT
-BUGWK82294 : compositing/tiling/crash-reparent-tiled-layer.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer-add-remove-child.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer-img.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer-resize.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer-with-layer-children-resize.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer-with-layer-children.html = TEXT
-BUGWK82294 : compositing/tiling/huge-layer.html = TEXT
-BUGWK82294 : compositing/video/video-poster.html = TEXT
-BUGWK82294 : compositing/backing/no-backing-for-clip-overlap.html = TEXT
-BUGWK82294 : compositing/backing/no-backing-for-clip.html = TEXT
-BUGWK82294 : compositing/backing/no-backing-for-perspective.html = TEXT
-BUGWK82294 : compositing/clip-child-by-non-stacking-ancestor.html = TEXT
-BUGWK82294 : compositing/geometry/bounds-clipped-composited-child.html = TEXT
-BUGWK82294 : compositing/geometry/fixed-position-composited-switch.html = TEXT
-BUGWK82294 : compositing/layer-creation/fixed-position-out-of-view.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-animation.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-transformed-and-clipped.html = TEXT
-BUGWK82294 : compositing/layer-creation/overlap-transforms.html = TEXT
-BUGWK82294 : compositing/layer-creation/stacking-context-overlap-nested.html = TEXT
-BUGWK82294 : compositing/layer-creation/stacking-context-overlap.html = TEXT
-BUGWK82294 : compositing/overflow-trumps-transform-style.html = TEXT
-BUGWK82294 : compositing/tiled-layers-hidpi.html = TEXT
-BUGWK82294 : compositing/visibility/layer-visible-content.html = TEXT
-BUGWK82294 : compositing/visibility/visibility-image-layers-dynamic.html = TEXT
-BUGWK82294 : compositing/layer-creation/no-compositing-for-preserve-3d.html = TEXT
-BUGWK82294 : compositing/columns/composited-in-paginated.html = TEXT
-BUGWK82294 : compositing/geometry/bounds-ignores-hidden-composited-descendant.html = TEXT
-BUGWK82294 : compositing/geometry/bounds-ignores-hidden-dynamic-negzindex.html = TEXT
-BUGWK82294 : compositing/geometry/bounds-ignores-hidden-dynamic.html = TEXT
-BUGWK82294 : compositing/geometry/bounds-ignores-hidden.html = TEXT
+// EFL has accelerated compositing disabled
+BUGWK79766 : compositing/animation/animation-compositing.html = TEXT
+BUGWK79766 : compositing/geometry/ancestor-overflow-change.html = TEXT
+BUGWK79766 : compositing/geometry/clip.html = TEXT
+BUGWK79766 : compositing/geometry/composited-in-columns.html = TEXT
+BUGWK79766 : compositing/geometry/flipped-writing-mode.html = TEXT
+BUGWK79766 : compositing/geometry/foreground-layer.html = TEXT
+BUGWK79766 : compositing/geometry/layer-due-to-layer-children-deep-switch.html = TEXT
+BUGWK79766 : compositing/geometry/layer-due-to-layer-children-switch.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-clipping-ancestor.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-fixed-positioned.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-opacity-transition.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-overflow-root.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-positioned-transition.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-positioned.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-transformed-overflow.html = TEXT
+BUGWK79766 : compositing/geometry/limit-layer-bounds-transformed.html = TEXT
+BUGWK79766 : compositing/geometry/preserve-3d-switching.html = TEXT
+BUGWK79766 : compositing/iframes/become-composited-nested-iframes.html = TEXT
+BUGWK79766 : compositing/iframes/become-overlapped-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/composited-parent-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/connect-compositing-iframe-delayed.html = TEXT
+BUGWK79766 : compositing/iframes/connect-compositing-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/connect-compositing-iframe2.html = TEXT
+BUGWK79766 : compositing/iframes/connect-compositing-iframe3.html = TEXT
+BUGWK79766 : compositing/iframes/enter-compositing-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/iframe-resize.html = TEXT
+BUGWK79766 : compositing/iframes/iframe-size-from-zero.html = TEXT
+BUGWK79766 : compositing/iframes/iframe-size-to-zero.html = TEXT
+BUGWK79766 : compositing/iframes/iframe-src-change.html = TEXT
+BUGWK79766 : compositing/iframes/invisible-nested-iframe-hide.html = TEXT
+BUGWK79766 : compositing/iframes/invisible-nested-iframe-show.html = TEXT
+BUGWK79766 : compositing/iframes/overlapped-iframe-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/overlapped-iframe.html = TEXT
+BUGWK79766 : compositing/iframes/overlapped-nested-iframes.html = TEXT
+BUGWK79766 : compositing/iframes/page-cache-layer-tree.html = TEXT
+BUGWK79766 : compositing/iframes/resizer.html = MISSING
+BUGWK79766 : compositing/iframes/scrolling-iframe.html = TEXT
+BUGWK79766 : compositing/images/clip-on-directly-composited-image.html = TEXT
+BUGWK79766 : compositing/layer-creation/animation-overlap-with-children.html = TEXT
+BUGWK79766 : compositing/layer-creation/fixed-position-and-transform.html = TEXT
+BUGWK79766 : compositing/layer-creation/fixed-position-under-transform.html = TEXT
+BUGWK79766 : compositing/layer-creation/overflow-scroll-overlap.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-child-layer.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-clipping.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-transformed-layer.html = TEXT
+BUGWK79766 : compositing/layer-creation/rotate3d-overlap.html = TEXT
+BUGWK79766 : compositing/layer-creation/scroll-partial-update.html = TEXT
+BUGWK79766 : compositing/layer-creation/spanOverlapsCanvas.html = TEXT
+BUGWK79766 : compositing/layer-creation/translatez-overlap.html = TEXT
+BUGWK79766 : compositing/overflow/clip-descendents.html = TEXT
+BUGWK79766 SKIP : compositing/overflow/clipping-ancestor-with-accelerated-scrolling-ancestor.html = MISSING
+BUGWK79766 : compositing/overflow/content-gains-scrollbars.html = TEXT
+BUGWK79766 : compositing/overflow/content-loses-scrollbars.html = TEXT
+BUGWK79766 SKIP : compositing/overflow/nested-scrolling.html = MISSING
+BUGWK79766 : compositing/overflow/overflow-auto-with-touch.html = TEXT
+BUGWK79766 : compositing/overflow/overflow-auto-with-touch-toggle.html = TEXT
+BUGWK79766 SKIP : compositing/overflow/overflow-clip-with-accelerated-scrolling-ancestor.html = MISSING
+BUGWK79766 : compositing/overflow/overflow-overlay-with-touch.html = TEXT
+BUGWK79766 : compositing/overflow/overflow-scrollbar-layers.html = TEXT
+BUGWK79766 SKIP : compositing/overflow/remove-overflow-crash2.html = MISSING
+BUGWK79766 : compositing/overflow/resize-painting.html = TEXT
+BUGWK79766 : compositing/overflow/scrolling-content-clip-to-viewport.html = TEXT
+BUGWK79766 : compositing/overflow/textarea-scroll-touch.html = TEXT
+BUGWK79766 : compositing/plugins/no-backing-store.html = TEXT
+BUGWK79766 : compositing/plugins/small-to-large-composited-plugin.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-absolute-overflow-scrolled.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-absolute-overflow.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-absolute.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-fixed-overflow-scrolled.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-fixed-overflow.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-fixed.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-absolute-overflow-scrolled.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-absolute-overflow.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-absolute.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-fixed-overflow-scrolled.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-fixed-overflow.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-fixed.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-iframe-relative.html = TEXT
+BUGWK79766 : compositing/rtl/rtl-relative.html = TEXT
+BUGWK79766 : compositing/tiling/crash-reparent-tiled-layer.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer-add-remove-child.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer-img.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer-resize.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer-with-layer-children-resize.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer-with-layer-children.html = TEXT
+BUGWK79766 : compositing/tiling/huge-layer.html = TEXT
+BUGWK79766 : compositing/video/video-poster.html = TEXT
+BUGWK79766 : compositing/backing/no-backing-for-clip-overlap.html = TEXT
+BUGWK79766 : compositing/backing/no-backing-for-clip.html = TEXT
+BUGWK79766 : compositing/backing/no-backing-for-perspective.html = TEXT
+BUGWK79766 : compositing/clip-child-by-non-stacking-ancestor.html = TEXT
+BUGWK79766 : compositing/geometry/bounds-clipped-composited-child.html = TEXT
+BUGWK79766 : compositing/geometry/fixed-position-composited-switch.html = TEXT
+BUGWK79766 : compositing/layer-creation/fixed-position-out-of-view.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-animation.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-transformed-and-clipped.html = TEXT
+BUGWK79766 : compositing/layer-creation/overlap-transforms.html = TEXT
+BUGWK79766 : compositing/layer-creation/stacking-context-overlap-nested.html = TEXT
+BUGWK79766 : compositing/layer-creation/stacking-context-overlap.html = TEXT
+BUGWK79766 : compositing/overflow-trumps-transform-style.html = TEXT
+BUGWK79766 : compositing/tiled-layers-hidpi.html = TEXT
+BUGWK79766 : compositing/visibility/layer-visible-content.html = TEXT
+BUGWK79766 : compositing/visibility/visibility-image-layers-dynamic.html = TEXT
+BUGWK79766 : compositing/layer-creation/no-compositing-for-preserve-3d.html = TEXT
+BUGWK79766 : compositing/columns/composited-in-paginated.html = TEXT
+BUGWK79766 : compositing/geometry/bounds-ignores-hidden-composited-descendant.html = TEXT
+BUGWK79766 : compositing/geometry/bounds-ignores-hidden-dynamic-negzindex.html = TEXT
+BUGWK79766 : compositing/geometry/bounds-ignores-hidden-dynamic.html = TEXT
+BUGWK79766 : compositing/geometry/bounds-ignores-hidden.html = TEXT
 
 // EFL's LayoutTestController does not implement displayInvalidatedRegion
 BUGWK86727 : compositing/plugins/invalidate_rect.html = TEXT
index 42ebf47..a0427bb 100644 (file)
@@ -1,3 +1,16 @@
+2012-09-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        [EFL][DRT] Implement LayoutTestController::layerTreeAsText
+        https://bugs.webkit.org/show_bug.cgi?id=82294
+
+        Reviewed by Gyuyoung Kim.
+
+        Add a support method for getting layerTreeAsText.
+
+        * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
+        (DumpRenderTreeSupportEfl::layerTreeAsText):
+        * WebCoreSupport/DumpRenderTreeSupportEfl.h:
+
 2012-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r127876.
index 0205023..33bb088 100644 (file)
@@ -104,6 +104,13 @@ void DumpRenderTreeSupportEfl::clearOpener(Evas_Object* ewkFrame)
     frame->loader()->setOpener(0);
 }
 
+String DumpRenderTreeSupportEfl::layerTreeAsText(const Evas_Object* ewkFrame)
+{
+    DRT_SUPPORT_FRAME_GET_OR_RETURN(ewkFrame, frame, String());
+
+    return frame->layerTreeAsText();
+}
+
 bool DumpRenderTreeSupportEfl::elementDoesAutoCompleteForElementWithId(const Evas_Object* ewkFrame, const String& elementId)
 {
     DRT_SUPPORT_FRAME_GET_OR_RETURN(ewkFrame, frame, false);
index 6be5fb4..e3f2084 100644 (file)
@@ -64,6 +64,7 @@ public:
     static String responseMimeType(const Evas_Object* ewkFrame);
     static WebCore::IntRect selectionRectangle(const Evas_Object* ewkFrame);
     static String suitableDRTFrameName(const Evas_Object* ewkFrame);
+    static String layerTreeAsText(const Evas_Object* ewkFrame);
     static void setValueForUser(JSContextRef, JSValueRef nodeObject, const String& value);
     static void setAutofilled(JSContextRef, JSValueRef nodeObject, bool autofilled);
     static void setDefersLoading(Evas_Object* ewkView, bool defers);
index 5408529..122dc60 100644 (file)
@@ -1,3 +1,15 @@
+2012-09-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        [EFL][DRT] Implement LayoutTestController::layerTreeAsText
+        https://bugs.webkit.org/show_bug.cgi?id=82294
+
+        Reviewed by Gyuyoung Kim.
+
+        Implement layerTreeAsText using the DumpRenderTreeSupportEfl method.
+
+        * DumpRenderTree/efl/TestRunnerEfl.cpp:
+        (TestRunner::layerTreeAsText):
+
 2012-09-13  Zan Dobersek  <zandobersek@gmail.com>
 
         [GTK] Clear application cache between tests in DumpRenderTree
index 737f434..e43e7e0 100644 (file)
@@ -119,8 +119,9 @@ JSValueRef TestRunner::computedStyleIncludingVisitedInfo(JSContextRef context, J
 
 JSRetainPtr<JSStringRef> TestRunner::layerTreeAsText() const
 {
-    notImplemented();
-    return JSRetainPtr<JSStringRef>(Adopt, JSStringCreateWithUTF8CString(""));
+    String result = DumpRenderTreeSupportEfl::layerTreeAsText(browser->mainFrame());
+
+    return JSRetainPtr<JSStringRef>(Adopt, JSStringCreateWithUTF8CString(result.utf8().data()));
 }
 
 size_t TestRunner::webHistoryItemCount()