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)
+ <ol>
+ <li>A: Launch widget. R: Starts in correct state - Title, first
question, links, empty actions</li>
+ <li>A: Navigate to a next question. R: next question
displayed.</li>
+ <li>A: Back to this question. R: Previous question
displayed.</li>
+ <li>A: Activate "TODO: Action 1" item. R: Item added to Actions
as plain text + X.</li>
+ <li>A: Activate "TOREAD: Website" item. R: Item added to Actions
as link + X.</li>
+ <li>A: Activate a "TOREAD: Note 1" item. R: Item added to
Actions as link + X.</li>
+ <li>A: Navigate to next question. R: Actions are
unchanged.</li>
+ <li>A: Navigate to this question. R: Previous item and Actions
displayed.</li>
+ <li>A: Activate "Save actions". R: New tab opened with text
ready for copy or printing.</li>
+ <li>A: Activate "Print these actions". R: Browser print action
invoked.</li>
+ <li>A: Delete first action. R: Only 2nd & 3rd actions
remain.</li>
+ <li>A: Activate "TOREAD: Website". R: new tab opened with the
target webpage.</li>
+ <li>A: Activate "TOREAD: Note". R: note view displayed in new
tab with correct content.</li>
+ </ol>
+ <ul>
+ <li><todo_item type="TODO" >Action 1</todo_item>.</li>
+ <li><todo_item type="TOREAD"
href="http://incubator.apache.org/wookie/">Website</todo_item>.</li>
+ <li><todo_item type="TOREAD"
href="Note1">Note</todo_item>.</li>
+ </ul>
+ </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