Fix utc_blink_cb_magnifier_hide.cpp unittest
authorAntonio Gomes <a1.gomes@samsung.com>
Tue, 24 Nov 2015 17:34:41 +0000 (13:34 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
The test in case (see title) flips selection mode on and off
by calling EWebView::HandleTextSelection{Down,Up}, which bubbles
down to SelectionControllerEfl::TextSelection{Down,Up} respectively.

When SelectionControlleEfl::TextSelectionDown is executed it
needs to "emulate" a long press event, so that the selection
machinary works. Also, when ::TextSelectionUp is called, it relies
on ::long_mouse_press_ being true.

Bug http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13056

Reviewed by: a.renevier, djmix.kim

Change-Id: I76353ba95047ae654826c97936b0369d8f809e7d
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
tizen_src/chromium_impl/content/browser/selection/selection_controller_efl.cc

index ce90194..c12e7c0 100644 (file)
@@ -825,6 +825,7 @@ bool SelectionControllerEfl::TextSelectionDown(int x, int y) {
    * Source/WebKit2/UIProcess/API/efl/ewk_view.cpp line 614
    */
   if (!long_mouse_press_) {
+    long_mouse_press_ = true;
     HandleLongPressEventPrivate(gfx::Point(x, y));
     return true;
   }