Matthias Clasen
87195bc3cd
Convert GailScrollbar to GtkScrollbarAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
eebf34dd5f
Update test results for recent changes
2011-07-05 16:08:53 -04:00
Matthias Clasen
103b97301d
Adapt to expected output to recent changes
2011-07-05 16:08:10 -04:00
Benjamin Otte
3e6fc7417d
tests: Update range tests for slider value in description
2011-07-05 16:08:10 -04:00
Benjamin Otte
64d4b76384
a11y: Make it compile again
...
Overriding CFLAGS is a bad idea. Use INCLUDES instead.
2011-07-05 16:08:10 -04:00
Benjamin Otte
787170c4cd
a11y: Update tests after removing AtkText from GailExpander
2011-07-05 16:08:10 -04:00
Benjamin Otte
fea49ed621
a11y: Update tests after removing AtkText from GailRange
2011-07-05 16:08:10 -04:00
Benjamin Otte
e81657cba8
tests: Add an a11y test for scales
2011-07-05 16:08:09 -04:00
Benjamin Otte
a5b08ea931
gail: Remove AtkText implementation from GailScale
...
AtkText should only be implemented by text editing widgets. For just
giving out a small text string, AtkObject::name should be used.
2011-07-05 16:08:09 -04:00
Matthias Clasen
abe6c28bc2
Add some texts for text selection signals
...
Test that we do emit ::text_caret_moved and ::text_selection_changed
as expected.
2011-07-05 16:08:09 -04:00
Matthias Clasen
5d38185448
Skip line-related tests for GtkEntry
...
GtkEntry sets single-paragraph mode on its pango layout,
so the results for line-related navigation don't match.
2011-07-05 16:08:09 -04:00
Matthias Clasen
7872c2c19e
GtkEntryAccessible: port from GailTextUtil to GtkPango
...
Also clean up and rearrange the code.
As a side-effect, the no-longer-existing stipple attributes
are dropped. Update test results to match.
2011-07-05 16:08:08 -04:00
Matthias Clasen
ca5db10bda
Add some tests for selection handling
2011-07-05 16:08:08 -04:00
Matthias Clasen
81c809e27a
Add some more basic tests
2011-07-05 16:08:08 -04:00
Matthias Clasen
3744742804
Remove debug spew
2011-07-05 16:08:07 -04:00
Matthias Clasen
f0715f434e
Expand the insert/delete text
...
GtkLabel passes this now.
2011-07-05 16:08:07 -04:00
Matthias Clasen
0437677b12
Update test results
...
The label accessible port dropped the no-longer-existing
stipple attributes; so update the expected test results to match.
2011-07-05 16:08:07 -04:00
Matthias Clasen
53535f03cf
Replace the boundary test
...
The new test is much smaller, and the results have been carefully
looked at; GtkLabel gets it right, the others don't.
Also, temporarily include some code that dumps out useful information.
2011-07-05 16:08:07 -04:00
Matthias Clasen
db2da1de42
Sort text attributes alphabetically in dumps
2011-07-05 16:08:07 -04:00
Matthias Clasen
1b8c38f6e1
GtkHSV: set a suitable role for the accessible
...
The consensus of the accessibility team was that 'color chooser'
fits best for this. Update tests to match.
2011-07-05 16:08:07 -04:00
Matthias Clasen
3edebfb81c
GtkSpinner: set a suitable role for the accessible
...
The consensus of the accessibility team was that this is
an animation. Update tests to match.
2011-07-05 16:08:07 -04:00
Matthias Clasen
91960a2132
Add a testcase for a very old bug
...
This tests a problem that was first noticed in 2003, in
bug 126797: The text of a label accessible is not properly
updated when the label switches from !use-markup to use-markup.
2011-07-05 16:08:06 -04:00
Matthias Clasen
437aaccc19
Test lots of boring string functions
...
Needless to say, these tests still fail.
2011-07-05 16:08:06 -04:00
Matthias Clasen
ec7c50ef00
Add some AtkText tests
...
These unfortunately all fail really miserably, currently.
2011-07-05 16:08:06 -04:00
Matthias Clasen
743cb1fc96
spinbutton testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
2610a43e1c
iconview testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
55d8a684c7
Paned testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
9d4ce36199
Statusbar testcases
2011-07-05 16:08:05 -04:00
Matthias Clasen
fb91fd7e3c
tree-performance: test with tree stores too
...
This duplicates the current test with a GtkTreeStore instead
of a GtkListStore.
2011-07-05 16:08:05 -04:00
Matthias Clasen
23bc606c79
a11y: add a treeview performance test
...
This test creates a treeview with a few columns and a liststore,
and then populates it with a 1000 rows.
2011-07-05 16:08:05 -04:00
Matthias Clasen
430957b036
Add a calendar testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
8aced27009
Add an infobar testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
f2d6439bc7
Add a GtkProgressBar testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
5d84495b77
Add a GtkSpinner testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
96d5ea96fd
Add a lockbutton testcase
2011-07-05 16:08:05 -04:00
Matthias Clasen
3cc413e84f
Add a testcase for all the pickers
2011-07-05 16:08:05 -04:00
Benjamin Otte
a8f663ce5e
Revert "Add a testcase with a print dialog"
...
THe testcase depends on the installed printers, so is nondeterministic.
This reverts commit 5bf14cc7485fe015ad15747454e877f2fb3dabc5.
2011-07-05 16:08:04 -04:00
Benjamin Otte
a3ca0bf898
Revert "Add a filechooser testcase"
...
File choosers depend on the files in the current directory and the
settings the user has set for the file chooser, so the output cannot be
deterministic.
This reverts commit f05c9e02c49f857c33e02c3d89483fcccb5df254.
2011-07-05 16:08:04 -04:00
Benjamin Otte
aaa40bdc0a
Revert "Add a testcase involving a font selection dialog"
...
The font chooser depends on the fonts installed on the system, so the
output is nondeterministic.
This reverts commit 08fdc399762c2af07d94e42a1801e691e5d4d6ab.
2011-07-05 16:08:04 -04:00
Benjamin Otte
d346be96c2
tests: Don't emit a message for every unnamed object
2011-07-05 16:08:04 -04:00
Benjamin Otte
4c0814a176
tests: Reset the unnamed counter before a test run
...
This guarantees that objects are named the same all the time.
2011-07-05 16:08:04 -04:00
Benjamin Otte
26a2cfe62a
tests: Fix crash due to freeing random pointers
2011-07-05 16:08:04 -04:00
Matthias Clasen
b9c0d226c0
Add an assistant testcase
2011-07-05 16:08:04 -04:00
Matthias Clasen
1783b5c85e
Add a testcase involving an expander
2011-07-05 16:08:03 -04:00
Matthias Clasen
5a257fe95f
Add a testcase with a print dialog
2011-07-05 16:08:03 -04:00
Matthias Clasen
b2e624c50c
Add a messagedialog testcase
2011-07-05 16:08:03 -04:00
Matthias Clasen
c950bd540b
Add a testcase involving a font selection dialog
2011-07-05 16:08:03 -04:00
Matthias Clasen
4149124b2b
Add a testcase with an appchooser dialog
2011-07-05 16:08:03 -04:00
Matthias Clasen
0f2c739473
Add a README for accessibility-dump
2011-07-05 16:08:03 -04:00
Matthias Clasen
4dfc4fbdaf
Add an about dialog testcase
2011-07-05 16:08:03 -04:00
Matthias Clasen
f59b9e52d4
Add a color chooser testcase
2011-07-05 16:08:02 -04:00
Matthias Clasen
ac8e00010a
Add a scrollbar to the range testcase
2011-07-05 16:08:02 -04:00
Matthias Clasen
dfb8fa9b5a
Add a filechooser testcase
2011-07-05 16:08:02 -04:00
Matthias Clasen
56100a017a
Remove debug spew
...
This had crept into the expected output for the buttons
testcase.
2011-07-05 16:08:02 -04:00
Matthias Clasen
5ebbf00f0a
Try harder to generate names for accessibles
...
We are still hitting the 'no name' case in GtkFileChooser for
a GailBox, otherwise.
2011-07-05 16:08:02 -04:00
Matthias Clasen
dbf204b5b9
Handle AtkValue implementations that return integer values
...
We do this by transforming the returned GValue to a string.
As a side-effect, the formatting for doubles changes, so
adjust expected output to match.
2011-07-05 16:08:01 -04:00
Benjamin Otte
98a11cedf0
tests: omit fg-color and bg-color values from attributes
...
They depend on the environment, too.
2011-07-05 16:08:01 -04:00
Benjamin Otte
b6bd3ef4f4
tests: Add line breaks when dumping text attributes
...
This improves diff readability a lot when attributes differ.
2011-07-05 16:08:01 -04:00
Matthias Clasen
17e219fbce
Remove debug spew
2011-07-05 16:08:01 -04:00
Matthias Clasen
4dfb500732
Add a test involving a tree view
2011-07-05 16:08:00 -04:00
Matthias Clasen
eb60a7ed54
Dump AtkTable properties
...
Also, make get_name() deal better with GtkAccessibles whose
widgets don't have buildable names.
2011-07-05 16:08:00 -04:00
Matthias Clasen
52aa225713
Dump AtkComponent properties
...
Note that the spatial aspects of AtkComponent are all dependent
on fonts and other environmental factors, thus we only dump the
little bits outside of that.
2011-07-05 16:08:00 -04:00
Matthias Clasen
570c185935
Make the dumped output a bit more readable
...
By adding sections for each interface.
2011-07-05 16:08:00 -04:00
Matthias Clasen
04d6c99a71
Add a test involving a text view
2011-07-05 16:08:00 -04:00
Matthias Clasen
901395db67
Dump AtkStreamableContent properties
...
Also, simplify the format for links slightly.
2011-07-05 16:08:00 -04:00
Matthias Clasen
bdab7cc8ff
Fix the expected output for range.ui
...
GtkScale puts a LRM character at the start of the string.
2011-07-05 16:08:00 -04:00
Matthias Clasen
57fc8f183a
Add a test involving links
2011-07-05 16:08:00 -04:00
Matthias Clasen
97ddbb5ff2
Dump AtkHyperLinkImpl properties
2011-07-05 16:07:59 -04:00
Matthias Clasen
0740876d0e
Add a test involving ranges
2011-07-05 16:07:59 -04:00
Matthias Clasen
2672a3afef
Dump AtkValue properties
2011-07-05 16:07:59 -04:00
Matthias Clasen
6641ae85ff
Add a test involving a selection
2011-07-05 16:07:59 -04:00
Matthias Clasen
913c5241ae
Dump AtkSelection properties
...
Also make get_name() deal with object that are not GtkAccessible,
but implement AtkText. An example of this is GailNotebookPage.
2011-07-05 16:07:59 -04:00
Matthias Clasen
a6d741b6a4
Dump AtkAction properties
...
Adjust expected output to match.
2011-07-05 16:07:59 -04:00
Matthias Clasen
22fc55f716
Dump AtkImage properties too
...
Update expected output to match.
2011-07-05 16:07:59 -04:00
Matthias Clasen
58b4b410fa
More text properties
2011-07-05 16:07:59 -04:00
Matthias Clasen
76f71b8f9c
Dump AtkText properties too
...
...would be nice if these actually _were_ properties.
Update the expected output to match.
2011-07-05 16:07:58 -04:00
Matthias Clasen
bd6b799d26
Fix make check
...
Not really the best fix; for now just ignore accessible parents
that are not GtkAccessibles - it seems that something causes
GailToplevels to show up as parents of GailWindows, randomly.
2011-07-05 16:07:58 -04:00
Matthias Clasen
784e4a81eb
Remove an extra line from expected output
2011-07-05 16:07:58 -04:00
Matthias Clasen
5952c6abbb
Don't forget to free an empty attribute set
2011-07-05 16:07:58 -04:00
Matthias Clasen
f3ae93af95
Add a more convenient way to dump
...
For initial creation of the results, allow to run
accessibility-dump --generate file.ui,
which will dump just the expected output to stdout,
without any extra decorations.
2011-07-05 16:07:58 -04:00
Matthias Clasen
d36d6172d2
Dump more accessibility data
...
This commit adds dumping of parents, attributes and states.
The expected dump output has been adjusted to match.
2011-07-05 16:07:58 -04:00
Matthias Clasen
667504d791
Add new tests to EXTRA_DIST
2011-07-05 16:07:58 -04:00
Matthias Clasen
3f01b42652
Add a test that sets ::accessible-name
2011-07-05 16:07:57 -04:00
Matthias Clasen
5c1b0b005e
Add a test that has a labeled-by relation in it
2011-07-05 16:07:57 -04:00
Benjamin Otte
f76c439897
tests: Add first shot at an accessibility dump tool
...
The tool works like this:
./accessibility-dump [FILE ...]
If no files are given, all files with the extension ".ui" in the current
directory are taken. For every file "test.ui", the following steps are
performed:
1) test.ui is loaded using GtkBuilder
2) The accessible for the window is loaded
3) The information of accessible is converted into a string using a
syntax defined in this test file
4) The generated string is diffed with the file "test.txt"
5) If the diff is empty, the test is a success, if not, the test fails.
6) The diff is output when the test runner is run with --verbose
So to add a test named "test", create a file called "test.ui", put it
into this directory. Then create the expected output file "test.txt",
put it into this directory too. You can create the initial version of
this file by invoking "./accessibility-dump --verbose test.ui". The
output will contain the expected text and can be copy/pasted into the
text file.
2011-07-05 16:07:57 -04:00
Benjamin Otte
769c795d57
reftests: Use an offscreen window to avoid artifacts
...
When tests are larger than the screen size and no compositing is
enabled, the window will be clipped to the screen size and all areas
outside of the screen have undefined contents.
To avoid this, we can use an offscreen window.
2011-07-05 15:28:18 +02:00
Benjamin Otte
ace4faa4e2
reftests: Fix label-sizing reference for Pango
...
See https://bugzilla.gnome.org/show_bug.cgi?id=649783 for a discussion
of the problem. Should this bug be fixed, this patch can just be
reverted.
2011-07-05 15:18:14 +02:00
Benjamin Otte
84e6f353ac
reftests: load/save file once in Glade
...
This way the output is canonicalized for further editing. No changes
have been done.
2011-07-05 15:17:23 +02:00
Cosimo Cecchi
ba76f54549
reftests: Add test for box brokenness
...
This is a tests for the last commit.
2011-07-02 01:57:27 +02:00
Matthias Clasen
e2a2da224d
Test box and toolbar regions in parallel
...
This makes it easy to see discrepancies.
Plus, it is fun
2011-07-01 12:31:22 -04:00
Matthias Clasen
301c120b74
toolbar: nth-child support for GtkToolbar
...
This doesn't quite work right yet.
2011-07-01 12:31:22 -04:00
Matthias Clasen
ebebbe4da4
Remove nonexisting properties
...
glade insists on adding GtkGrid:n-rows and :n-columns, for
no good reason...
2011-06-17 20:35:41 -04:00
Cosimo Cecchi
71eb9d123d
tests: import the widget-factory test for theming
...
Courtesy of Andrea Cimitan <andrea.cimitan@canonical.com>.
2011-06-17 11:51:14 -04:00
Benjamin Otte
4edb3f08e4
reftests: fix background-area reftest after the last commit
2011-06-15 11:25:26 -04:00
Benjamin Otte
d3535ff6ce
tests: Add tests for font-family
...
This readds the tests now that font-family works again. They were
previously removed when font-family support was backed out due to bugs.
2011-06-15 12:57:21 +02:00
Matthias Clasen
37167ec458
Make this code more meaningful
2011-06-14 21:18:08 -04:00
William Jon McCann
be7f734aff
tests: Add simple test for image clipboard
2011-06-14 16:06:33 -04:00
Benjamin Otte
f4a6ef0d50
tests: Add a CSS test for color parsing errors
...
In [particular check for the fix in the last commit.
2011-06-13 15:01:52 +02:00
Benjamin Otte
016e0c1a3e
reftests: Check that the default border color is the foreground color
2011-06-13 15:01:52 +02:00
Matthias Clasen
d9fa5b342b
Forgotten file
2011-06-13 07:33:47 -04:00