Author: scottbw
Date: Wed Nov 14 21:16:47 2012
New Revision: 1409407

URL: http://svn.apache.org/viewvc?rev=1409407&view=rev
Log:
Added question set for test walkthrough widget (thanks to Steve Lee for the 
patch)

Added:
    
incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/
    
incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/questions.xml

Added: 
incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/questions.xml
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/questions.xml?rev=1409407&view=auto
==============================================================================
--- 
incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/questions.xml
 (added)
+++ 
incubator/wookie/trunk/widgets/templates/testWidgets/walkthroughTestWidget/xml/questions.xml
 Wed Nov 14 21:16:47 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE question_set SYSTEM "question_set.dtd">
+<question_set>
+<title>Walkthrough Test question set</title>
+<question id='a'>
+    <title>First Question</title>
+    <body>
+    Here is a set of tests to perform using this question set (A = action, R = 
result)
+    &lt;ol&gt;
+        &lt;li&gt;A: Launch widget. R: Starts in correct state - Title, first 
question, links, empty actions&lt;/li&gt;
+        &lt;li&gt;A: Navigate to a next question. R: next question 
displayed.&lt;/li&gt;
+        &lt;li&gt;A: Back to this question. R: Previous question 
displayed.&lt;/li&gt;
+        &lt;li&gt;A: Activate "TODO: Action 1" item. R: Item added to Actions 
as plain text + X.&lt;/li&gt;
+        &lt;li&gt;A: Activate "TOREAD: Website" item. R: Item added to Actions 
as link + X.&lt;/li&gt;
+        &lt;li&gt;A: Activate a "TOREAD: Note 1" item. R: Item added to 
Actions as link + X.&lt;/li&gt;
+        &lt;li&gt;A: Navigate to next question. R: Actions are 
unchanged.&lt;/li&gt;
+        &lt;li&gt;A: Navigate to this question. R: Previous item and Actions 
displayed.&lt;/li&gt;
+        &lt;li&gt;A: Activate "Save actions". R: New tab opened with text 
ready for copy or printing.&lt;/li&gt;
+        &lt;li&gt;A: Activate "Print these actions". R: Browser print action 
invoked.&lt;/li&gt;
+        &lt;li&gt;A: Delete first action. R: Only 2nd &amp; 3rd actions 
remain.&lt;/li&gt;
+        &lt;li&gt;A: Activate "TOREAD: Website". R: new tab opened with the 
target webpage.&lt;/li&gt;
+        &lt;li&gt;A: Activate "TOREAD: Note". R: note view displayed in new 
tab with correct content.&lt;/li&gt;    
+     &lt;/ol&gt;
+     &lt;ul&gt;
+        &lt;li&gt;<todo_item type="TODO" >Action 1</todo_item>.&lt;/li&gt;
+        &lt;li&gt;<todo_item type="TOREAD" 
href="http://incubator.apache.org/wookie/";>Website</todo_item>.&lt;/li&gt;
+               &lt;li&gt;<todo_item type="TOREAD" 
href="Note1">Note</todo_item>.&lt;/li&gt;
+     &lt;/ul&gt;
+       </body>
+    <navigation>
+        <text>Navigation</text>
+           <answer next='b'>Go to next question</answer>
+    </navigation>
+</question>
+
+<question id='b'>
+    <title>Second Question</title>
+    <body>Nothing to see or do here</body>
+    <navigation>
+           <answer next='a'>Go to previous question</answer>
+    </navigation>
+</question>
+
+<note id='Note1'>
+    == A note title
+    Notes formated in creole markup which 
[[http://incubator.apache.org/wookie/|can include links]]
+    </note>
+</question_set>
\ No newline at end of file


Reply via email to