Changeset 100596 in webkit


Ignore:
Timestamp:
Nov 17, 2011 3:47:31 AM (12 years ago)
Author:
mario@webkit.org
Message:

[GTK] ATK API tests failing because of patch for bug 72390
https://bugs.webkit.org/show_bug.cgi?id=72592

Reviewed by Philippe Normand.

  • tests/testatk.c:

(testWebkitAtkParentForRootObject): Remove the offending line in
the unit test, which is not actually required to test the new
functionality and causes problems in some scenarios, due to the
lazy creation mechanism of AtkObjects.

  • tests/testatkroles.c:

(finish_loading): Reflect that the document frame object is no
longer the root accessibility object (a scroll pane from now on),
but the only child of that one. Thus, skip that root object.

Location:
trunk/Source/WebKit/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r100424 r100596  
     12011-11-17  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        [GTK] ATK API tests failing because of patch for bug 72390
     4        https://bugs.webkit.org/show_bug.cgi?id=72592
     5
     6        Reviewed by Philippe Normand.
     7
     8        * tests/testatk.c:
     9        (testWebkitAtkParentForRootObject): Remove the offending line in
     10        the unit test, which is not actually required to test the new
     11        functionality and causes problems in some scenarios, due to the
     12        lazy creation mechanism of AtkObjects.
     13
     14        * tests/testatkroles.c:
     15        (finish_loading): Reflect that the document frame object is no
     16        longer the root accessibility object (a scroll pane from now on),
     17        but the only child of that one. Thus, skip that root object.
     18
    1192011-11-16  Mario Sanchez Prada  <msanchez@igalia.com>
    220
  • trunk/Source/WebKit/gtk/tests/testatk.c

    r100424 r100596  
    16261626    g_assert(ATK_IS_OBJECT(axBox));
    16271627
    1628     g_assert_cmpint(atk_object_get_n_accessible_children(axBox), ==, 1);
    16291628    AtkObject* axBoxChild = atk_object_ref_accessible_child(axBox, 0);
    16301629    g_assert(axBoxChild);
  • trunk/Source/WebKit/gtk/tests/testatkroles.c

    r98239 r100596  
    6060        g_main_loop_quit(fixture->loop);
    6161
    62     fixture->documentFrame = gtk_widget_get_accessible(fixture->webView);
     62    // With the change to support WK2 accessibility, the root object
     63    // has changed and it's no longer the document frame, but a scroll
     64    // pane containing the document frame as its only child. See the
     65    // bug 72390 for more details on this change.
     66    // https://bugs.webkit.org/show_bug.cgi?id=72390
     67    AtkObject* rootObject = gtk_widget_get_accessible(fixture->webView);
     68    fixture->documentFrame = atk_object_ref_accessible_child(rootObject, 0);
    6369    g_assert(fixture->documentFrame);
    6470
     71    // Remove the reference added by ref_accessible_child() and
     72    // return, since we don't need to keep that extra ref at all.
     73    g_object_unref(fixture->documentFrame);
    6574    return FALSE;
    6675}
Note: See TracChangeset for help on using the changeset viewer.