Add a test involving a text view

This commit is contained in:
Matthias Clasen 2011-06-19 19:16:26 -04:00
parent 901395db67
commit 04d6c99a71
3 changed files with 39 additions and 1 deletions

View File

@ -26,4 +26,6 @@ EXTRA_DIST += \
mnemonic.ui mnemonic.txt \
accessible-name.ui accessible-name.txt \
notebook.ui notebook.txt \
range.ui range.txt
range.ui range.txt \
link.ui link.txt \
text.ui text.txt

17
tests/a11y/text.txt Normal file
View File

@ -0,0 +1,17 @@
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gail
text1
"text"
parent: window1
index: 0
state: editable enabled focusable multi-line sensitive showing visible
toolkit: gail
text: Twas brillig, and the slithy toves
Did gyre and gimple in the wabe
character count: 66
caret offset: 66
default attributes: right-margin:0 left-margin:0 indent:0 pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 rise:0 language:<omitted> scale:1 fg-color:0,0,0 bg-color:65535,65535,65535 invalid:none invalid:false invalid:false invalid:false left-margin:true invalid:none left-margin:ltr invalid:left size:<omitted> weight:<omitted> family-name:<omitted> invisible:normal invalid:normal invalid:normal
mime types: application/x-gtk-text-buffer-rich-text text/plain

19
tests/a11y/text.ui Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkTextBuffer" id="buffer1">
<property name="text">Twas brillig, and the slithy toves
Did gyre and gimple in the wabe</property>
</object>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkTextView" id="text1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="buffer">buffer1</property>
</object>
</child>
</object>
</interface>