[gtk+] Add an about dialog testcase



commit 4dfc4fbdaf9f131c47cdcd4d578ba59df0985402
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 21 19:20:59 2011 -0400

    Add an about dialog testcase

 tests/a11y/Makefile.am |    4 +-
 tests/a11y/about.txt   |  482 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/a11y/about.ui    |   12 ++
 3 files changed, 497 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index b52479a..7518d6e 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -31,4 +31,6 @@ EXTRA_DIST += \
 	text.ui text.txt \
 	tree.ui tree.txt \
 	buttons.ui buttions.txt \
-	filechooser.ui filechooser.txt
+	filechooser.ui filechooser.txt \
+	colorchooser.ui colorchooser.txt \
+	about.ui about.txt
diff --git a/tests/a11y/about.txt b/tests/a11y/about.txt
new file mode 100644
index 0000000..a2b6509
--- /dev/null
+++ b/tests/a11y/about.txt
@@ -0,0 +1,482 @@
+window1
+  "dialog"
+  index: 0
+  name: About FancyPants
+  state: enabled sensitive showing visible
+  toolkit: gail
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  unnamed-GailBox-0
+    "filler"
+    parent: window1
+    index: 0
+    state: enabled sensitive showing vertical visible
+    toolkit: gail
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    unnamed-GailBox-1
+      "filler"
+      parent: unnamed-GailBox-0
+      index: 0
+      state: enabled sensitive showing vertical visible
+      toolkit: gail
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      unnamed-GailImage-2
+        "icon"
+        parent: unnamed-GailBox-1
+        index: 0
+        state: enabled sensitive showing visible
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkImage>
+        image size: -1 x -1
+        image description: (null)
+      FancyPants
+        "label"
+        parent: unnamed-GailBox-1
+        index: 1
+        name: FancyPants
+        state: enabled focusable multi-line sensitive showing visible
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: FancyPants
+        character count: 10
+        caret offset: 0
+        default attributes: left-margin: 0
+                            right-margin: 0
+                            indent: 0
+                            invisible: false
+                            editable: false
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            bg-full-height: 0
+                            scale: 1
+                            rise: 0
+                            underline: none
+                            strikethrough: false
+                            bg-stipple: false
+                            fg-stipple: false
+                            fg-color: <omitted>
+                            bg-color: <omitted>
+                            wrap-mode: word
+                            justification: center
+                            size: <omitted>
+                            weight: <omitted>
+                            family-name: <omitted>
+                            stretch: <omitted>
+                            variant: <omitted>
+                            style: <omitted>
+                            language: <omitted>
+                            direction: <omitted>
+      unnamed-GailNotebook-3
+        "page tab list"
+        parent: unnamed-GailBox-1
+        index: 2
+        state: enabled sensitive showing visible
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkSelection>
+        selection count: 1
+        selected children: 0
+        unnamed-GailNotebookPage-4
+          "page tab"
+          parent: unnamed-GailNotebook-3
+          index: 0
+          state: enabled selectable selected showing visible
+          <AtkComponent>
+          layer: widget
+          alpha: 1
+          <AtkText>
+          text: (null)
+          character count: 0
+          caret offset: 0
+          unnamed-GailBox-5
+            "filler"
+            index: 0
+            state: enabled sensitive showing vertical visible
+            toolkit: gail
+            <AtkComponent>
+            layer: widget
+            alpha: 1
+            0.99
+              "label"
+              parent: unnamed-GailBox-5
+              index: 0
+              name: 0.99
+              state: enabled focusable multi-line sensitive showing visible
+              toolkit: gail
+              <AtkComponent>
+              layer: widget
+              alpha: 1
+              <AtkText>
+              text: 0.99
+              character count: 4
+              caret offset: 0
+              default attributes: left-margin: 0
+                                  right-margin: 0
+                                  indent: 0
+                                  invisible: false
+                                  editable: false
+                                  pixels-above-lines: 0
+                                  pixels-below-lines: 0
+                                  pixels-inside-wrap: 0
+                                  bg-full-height: 0
+                                  scale: 1
+                                  rise: 0
+                                  underline: none
+                                  strikethrough: false
+                                  bg-stipple: false
+                                  fg-stipple: false
+                                  fg-color: <omitted>
+                                  bg-color: <omitted>
+                                  wrap-mode: word
+                                  justification: center
+                                  size: <omitted>
+                                  weight: <omitted>
+                                  family-name: <omitted>
+                                  stretch: <omitted>
+                                  variant: <omitted>
+                                  style: <omitted>
+                                  language: <omitted>
+                                  direction: <omitted>
+            comments
+              "label"
+              parent: unnamed-GailBox-5
+              index: 1
+              name: comments
+              state: enabled focusable multi-line sensitive showing visible
+              toolkit: gail
+              <AtkComponent>
+              layer: widget
+              alpha: 1
+              <AtkText>
+              text: comments
+              character count: 8
+              caret offset: 0
+              default attributes: left-margin: 0
+                                  right-margin: 0
+                                  indent: 0
+                                  invisible: false
+                                  editable: false
+                                  pixels-above-lines: 0
+                                  pixels-below-lines: 0
+                                  pixels-inside-wrap: 0
+                                  bg-full-height: 0
+                                  scale: 1
+                                  rise: 0
+                                  underline: none
+                                  strikethrough: false
+                                  bg-stipple: false
+                                  fg-stipple: false
+                                  fg-color: <omitted>
+                                  bg-color: <omitted>
+                                  wrap-mode: word
+                                  justification: center
+                                  size: <omitted>
+                                  weight: <omitted>
+                                  family-name: <omitted>
+                                  stretch: <omitted>
+                                  variant: <omitted>
+                                  style: <omitted>
+                                  language: <omitted>
+                                  direction: <omitted>
+            unnamed-GailBox-6
+              "filler"
+              parent: unnamed-GailBox-5
+              index: 2
+              state: enabled horizontal sensitive showing visible
+              toolkit: gail
+              <AtkComponent>
+              layer: widget
+              alpha: 1
+              Homepage
+                "label"
+                parent: unnamed-GailBox-6
+                index: 0
+                name: Homepage
+                state: enabled focusable multi-line sensitive showing visible
+                toolkit: gail
+                <AtkComponent>
+                layer: widget
+                alpha: 1
+                <AtkText>
+                text: Homepage
+                character count: 8
+                caret offset: 0
+                default attributes: left-margin: 0
+                                    right-margin: 0
+                                    indent: 0
+                                    invisible: false
+                                    editable: false
+                                    pixels-above-lines: 0
+                                    pixels-below-lines: 0
+                                    pixels-inside-wrap: 0
+                                    bg-full-height: 0
+                                    scale: 1
+                                    rise: 0
+                                    underline: none
+                                    strikethrough: false
+                                    bg-stipple: false
+                                    fg-stipple: false
+                                    fg-color: <omitted>
+                                    bg-color: <omitted>
+                                    wrap-mode: word
+                                    justification: left
+                                    size: <omitted>
+                                    weight: <omitted>
+                                    family-name: <omitted>
+                                    stretch: <omitted>
+                                    variant: <omitted>
+                                    style: <omitted>
+                                    language: <omitted>
+                                    direction: <omitted>
+            no comments
+              "label"
+              parent: unnamed-GailBox-5
+              index: 3
+              name: no comments
+              state: enabled focusable multi-line sensitive showing visible
+              toolkit: gail
+              <AtkComponent>
+              layer: widget
+              alpha: 1
+              <AtkText>
+              text: no comments
+              character count: 11
+              caret offset: 0
+              default attributes: left-margin: 0
+                                  right-margin: 0
+                                  indent: 0
+                                  invisible: false
+                                  editable: false
+                                  pixels-above-lines: 0
+                                  pixels-below-lines: 0
+                                  pixels-inside-wrap: 0
+                                  bg-full-height: 0
+                                  scale: 1
+                                  rise: 0
+                                  underline: none
+                                  strikethrough: false
+                                  bg-stipple: false
+                                  fg-stipple: false
+                                  fg-color: <omitted>
+                                  bg-color: <omitted>
+                                  wrap-mode: word
+                                  justification: center
+                                  size: <omitted>
+                                  weight: <omitted>
+                                  family-name: <omitted>
+                                  stretch: <omitted>
+                                  variant: <omitted>
+                                  style: <omitted>
+                                  language: <omitted>
+                                  direction: <omitted>
+            This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/gpl.html
+              "label"
+              parent: unnamed-GailBox-5
+              index: 4
+              name: This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/gpl.html
+              state: enabled focusable multi-line sensitive showing visible
+              toolkit: gail
+              <AtkComponent>
+              layer: widget
+              alpha: 1
+              <AtkText>
+              text: This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/gpl.html
+              character count: 103
+              caret offset: 0
+              default attributes: left-margin: 0
+                                  right-margin: 0
+                                  indent: 0
+                                  invisible: false
+                                  editable: false
+                                  pixels-above-lines: 0
+                                  pixels-below-lines: 0
+                                  pixels-inside-wrap: 0
+                                  bg-full-height: 0
+                                  scale: 1
+                                  rise: 0
+                                  underline: none
+                                  strikethrough: false
+                                  bg-stipple: false
+                                  fg-stipple: false
+                                  fg-color: <omitted>
+                                  bg-color: <omitted>
+                                  wrap-mode: word
+                                  justification: center
+                                  size: <omitted>
+                                  weight: <omitted>
+                                  family-name: <omitted>
+                                  stretch: <omitted>
+                                  variant: <omitted>
+                                  style: <omitted>
+                                  language: <omitted>
+                                  direction: <omitted>
+    unnamed-GailBox-7
+      "filler"
+      parent: unnamed-GailBox-0
+      index: 1
+      state: enabled horizontal sensitive showing visible
+      toolkit: gail
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      License
+        "toggle button"
+        parent: unnamed-GailBox-7
+        index: 0
+        name: License
+        state: enabled focusable sensitive
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: License
+        character count: 7
+        caret offset: 0
+        default attributes: left-margin: 0
+                            right-margin: 0
+                            indent: 0
+                            invisible: false
+                            editable: false
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            bg-full-height: 0
+                            scale: 1
+                            rise: 0
+                            underline: none
+                            strikethrough: false
+                            bg-stipple: false
+                            fg-stipple: false
+                            fg-color: <omitted>
+                            bg-color: <omitted>
+                            wrap-mode: word
+                            justification: left
+                            size: <omitted>
+                            weight: <omitted>
+                            family-name: <omitted>
+                            stretch: <omitted>
+                            variant: <omitted>
+                            style: <omitted>
+                            language: <omitted>
+                            direction: <omitted>
+        <AtkImage>
+        image size: -1 x -1
+        image description: (null)
+        <AtkAction>
+        action 0 name: click
+        action 0 keybinding: <Alt>l
+        action 1 name: press
+        action 2 name: release
+      Credits
+        "toggle button"
+        parent: unnamed-GailBox-7
+        index: 1
+        name: Credits
+        state: enabled focusable sensitive
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: Credits
+        character count: 7
+        caret offset: 0
+        default attributes: left-margin: 0
+                            right-margin: 0
+                            indent: 0
+                            invisible: false
+                            editable: false
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            bg-full-height: 0
+                            scale: 1
+                            rise: 0
+                            underline: none
+                            strikethrough: false
+                            bg-stipple: false
+                            fg-stipple: false
+                            fg-color: <omitted>
+                            bg-color: <omitted>
+                            wrap-mode: word
+                            justification: left
+                            size: <omitted>
+                            weight: <omitted>
+                            family-name: <omitted>
+                            stretch: <omitted>
+                            variant: <omitted>
+                            style: <omitted>
+                            language: <omitted>
+                            direction: <omitted>
+        <AtkImage>
+        image size: 20 x 20
+        image description: (null)
+        <AtkAction>
+        action 0 name: click
+        action 0 keybinding: <Alt>r
+        action 1 name: press
+        action 2 name: release
+      Close
+        "push button"
+        parent: unnamed-GailBox-7
+        index: 2
+        name: Close
+        state: enabled focusable sensitive showing visible default
+        toolkit: gail
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: Close
+        character count: 5
+        caret offset: 0
+        default attributes: left-margin: 0
+                            right-margin: 0
+                            indent: 0
+                            invisible: false
+                            editable: false
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            bg-full-height: 0
+                            scale: 1
+                            rise: 0
+                            underline: none
+                            strikethrough: false
+                            bg-stipple: false
+                            fg-stipple: false
+                            fg-color: <omitted>
+                            bg-color: <omitted>
+                            wrap-mode: word
+                            justification: left
+                            size: <omitted>
+                            weight: <omitted>
+                            family-name: <omitted>
+                            stretch: <omitted>
+                            variant: <omitted>
+                            style: <omitted>
+                            language: <omitted>
+                            direction: <omitted>
+        <AtkImage>
+        image size: 20 x 20
+        image description: (null)
+        <AtkAction>
+        action 0 name: click
+        action 0 keybinding: <Alt>c
+        action 1 name: press
+        action 2 name: release
diff --git a/tests/a11y/about.ui b/tests/a11y/about.ui
new file mode 100644
index 0000000..baf99f3
--- /dev/null
+++ b/tests/a11y/about.ui
@@ -0,0 +1,12 @@
+
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkAboutDialog" id="window1">
+    <property name="program-name">FancyPants</property>
+    <property name="version">0.99</property>
+    <property name="copyright">no comments</property>
+    <property name="comments">comments</property>
+    <property name="license-type">gpl-3-0</property>
+    <property name="website">http://www.gtk.org</property>
+  </object>
+</interface>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]