Title: [284592] trunk/Tools
- Revision
- 284592
- Author
- [email protected]
- Date
- 2021-10-21 00:21:43 -0700 (Thu, 21 Oct 2021)
Log Message
Unreviewed. Fix GTK build with old version of ATSPI after r284367.
There's not API to check ATSPI version, so check if ATSPI_SCROLLTYPE_COUNT is defined to know if component
scroll API is available.
* TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:
(beforeAll):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (284591 => 284592)
--- trunk/Tools/ChangeLog 2021-10-21 06:51:48 UTC (rev 284591)
+++ trunk/Tools/ChangeLog 2021-10-21 07:21:43 UTC (rev 284592)
@@ -1,3 +1,13 @@
+2021-10-21 Carlos Garcia Campos <[email protected]>
+
+ Unreviewed. Fix GTK build with old version of ATSPI after r284367.
+
+ There's not API to check ATSPI version, so check if ATSPI_SCROLLTYPE_COUNT is defined to know if component
+ scroll API is available.
+
+ * TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp:
+ (beforeAll):
+
2021-10-20 Brady Eidson <[email protected]>
WebKit Managed Notifications: Skeleton NotificationProvider
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp (284591 => 284592)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp 2021-10-21 06:51:48 UTC (rev 284591)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitGtk/TestWebKitAccessibility.cpp 2021-10-21 07:21:43 UTC (rev 284592)
@@ -757,6 +757,7 @@
g_assert_true(accessible.get() == documentWeb.get());
}
+#ifdef ATSPI_SCROLLTYPE_COUNT
static void testComponentScrollTo(AccessibilityTest* test, gconstpointer)
{
test->showInWindow(640, 480);
@@ -802,6 +803,7 @@
g_assert_cmpint(topPositionBeforeScrolling->x, ==, topPositionAfterScrolling->x);
g_assert_cmpint(topPositionBeforeScrolling->y, ==, topPositionAfterScrolling->y);
}
+#endif
void beforeAll()
{
@@ -812,7 +814,9 @@
AccessibilityTest::add("WebKitAccessibility", "accessible/state", testAccessibleState);
AccessibilityTest::add("WebKitAccessibility", "accessible/state-changed", testAccessibleStateChanged);
AccessibilityTest::add("WebKitAccessibility", "component/hit-test", testComponentHitTest);
+#ifdef ATSPI_SCROLLTYPE_COUNT
AccessibilityTest::add("WebKitAccessibility", "component/scroll-to", testComponentScrollTo);
+#endif
}
void afterAll()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes