AX: Long narrow tables should not be made in data tables unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=221061
<rdar://problem/73681149>

Reviewed by Zalan Bujtas.

Source/WebCore:

Some web authors use long columns/rows of cells for layout purposes. We shouldn't
automatically turn these into data tables based on row count only.
Instead let's ensure there are at least two rows/cols of content before automatically
turning into a data table.

Test: accessibility/narrow-tables-ignored.html

* accessibility/AccessibilityTable.cpp:
(WebCore::AccessibilityTable::isDataTable const):

LayoutTests:

* accessibility/narrow-tables-ignored-expected.txt: Added.
* accessibility/narrow-tables-ignored.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@272024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/accessibility/narrow-tables-ignored-expected.txt b/LayoutTests/accessibility/narrow-tables-ignored-expected.txt
new file mode 100644
index 0000000..0c7bddf
--- /dev/null
+++ b/LayoutTests/accessibility/narrow-tables-ignored-expected.txt
@@ -0,0 +1,13 @@
+This tests that very narrow or very wide tables are ignored.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+table1: AXRole: AXGroup
+table2: AXRole: AXGroup
+table3: AXRole: AXTable
+table4: AXRole: AXTable
+PASS successfullyParsed is true
+
+TEST COMPLETE
+