Title: [110700] trunk
Revision
110700
Author
[email protected]
Date
2012-03-14 08:15:34 -0700 (Wed, 14 Mar 2012)

Log Message

[EFL] Implement LayoutTestController::clearBackForwardList
https://bugs.webkit.org/show_bug.cgi?id=80142

Tools:

Adding missing implementation clearBackForwardList to EFL's
LayoutTestController. This implementation allows us to unskip
tests connected with history.

Patch by Sudarsana Nagineni <[email protected]> on 2012-03-14
Reviewed by Antonio Gomes.

* DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
(LayoutTestController::clearBackForwardList): Implemented.

LayoutTests:

Unskip tests connected with clearBackForwardList.

Patch by Sudarsana Nagineni <[email protected]> on 2012-03-14
Reviewed by Antonio Gomes.

* platform/efl/Skipped:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (110699 => 110700)


--- trunk/LayoutTests/ChangeLog	2012-03-14 15:02:14 UTC (rev 110699)
+++ trunk/LayoutTests/ChangeLog	2012-03-14 15:15:34 UTC (rev 110700)
@@ -1,3 +1,14 @@
+2012-03-14  Sudarsana Nagineni  <[email protected]>
+
+        [EFL] Implement LayoutTestController::clearBackForwardList
+        https://bugs.webkit.org/show_bug.cgi?id=80142
+
+        Unskip tests connected with clearBackForwardList.
+
+        Reviewed by Antonio Gomes.
+
+        * platform/efl/Skipped: 
+
 2012-03-14  Kentaro Hara  <[email protected]>
 
         Return null when shouldAllowAccessToNode() fails

Modified: trunk/LayoutTests/platform/efl/Skipped (110699 => 110700)


--- trunk/LayoutTests/platform/efl/Skipped	2012-03-14 15:02:14 UTC (rev 110699)
+++ trunk/LayoutTests/platform/efl/Skipped	2012-03-14 15:15:34 UTC (rev 110700)
@@ -300,33 +300,6 @@
 fast/dom/nodesFromRect-inner-documents.html
 fast/dom/nodesFromRect-links-and-text.html
 
-# EFL's LayoutTestController does not implement clearBackForwardList
-fast/dom/location-hash.html
-fast/events/backspace-navigates-back.html
-fast/history/form-submit-in-frame-via-onclick.html
-fast/history/form-submit-in-frame.html
-fast/history/gesture-before-onload-form-submit.html
-fast/history/gesture-before-onload-location-href.html
-fast/history/history-length.html
-fast/history/redirect-via-iframe.html
-fast/history/same-document-iframes-changing-fragment.html
-fast/history/same-document-iframes-changing-pushstate.html
-fast/loader/frame-location-change-not-added-to-history.html
-fast/loader/frame-src-change-not-added-to-history.html
-fast/loader/location-port.html
-fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html
-fast/loader/stateobjects/document-destroyed-navigate-back.html
-fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
-fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
-fast/loader/stateobjects/popstate-after-load-complete-body-inline-attribute.html
-fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html
-fast/loader/stateobjects/pushstate-object-types.html
-fast/loader/stateobjects/pushstate-then-replacestate.html
-fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
-fast/loader/stateobjects/pushstate-within-popstate-handler-assert.html
-fast/loader/stateobjects/pushstate-without-history.html
-fast/loader/stateobjects/replacestate-then-pushstate.html
-
 # EFL's LayoutTestController does not implement copy{Encoded,Decoded}HostName
 fast/encoding/idn-security.html
 

Modified: trunk/Tools/ChangeLog (110699 => 110700)


--- trunk/Tools/ChangeLog	2012-03-14 15:02:14 UTC (rev 110699)
+++ trunk/Tools/ChangeLog	2012-03-14 15:15:34 UTC (rev 110700)
@@ -1,3 +1,17 @@
+2012-03-14  Sudarsana Nagineni  <[email protected]>
+
+        [EFL] Implement LayoutTestController::clearBackForwardList
+        https://bugs.webkit.org/show_bug.cgi?id=80142
+
+        Adding missing implementation clearBackForwardList to EFL's
+        LayoutTestController. This implementation allows us to unskip 
+        tests connected with history.
+
+        Reviewed by Antonio Gomes.
+
+        * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
+        (LayoutTestController::clearBackForwardList): Implemented.
+
 2012-03-13  Thiago Marcos P. Santos  <[email protected]>
 
         [EFL][DRT] Expose window.internals object

Modified: trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp (110699 => 110700)


--- trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp	2012-03-14 15:02:14 UTC (rev 110699)
+++ trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp	2012-03-14 15:15:34 UTC (rev 110700)
@@ -65,7 +65,15 @@
 
 void LayoutTestController::clearBackForwardList()
 {
-    notImplemented();
+    Ewk_History* history = ewk_view_history_get(browser->mainView());
+    if (!history)
+        return;
+
+    Ewk_History_Item* item = ewk_history_history_item_current_get(history);
+    ewk_history_clear(history);
+    ewk_history_history_item_add(history, item);
+    ewk_history_history_item_set(history, item);
+    ewk_history_item_free(item);
 }
 
 JSStringRef LayoutTestController::copyDecodedHostName(JSStringRef)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to