- From: Datta321 <DS0036943@techmahindra.com>
- Date: Mon, 4 Oct 2010 09:33:42 -0700 (PDT)
- To: www-smil@w3.org
I have a problem understanding the behavior of this smil file located at http://www.w3.org/2007/SMIL30/testsuite/New-SMIL30/files/State/test-11-statechanged.txt <?xml version="1.1"?> <!-- Copyright: Copyright 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/2008/04-testsuite-license. Author: Jack Jansen (CWI) Version: January 22, 2008 Chapter: SMIL 3.0 State Module: UserState Feature: expr attribute File Name: test-11-statechanged.smil Description: Tests stateChanged event. Seeing something longer than expected means some expected event did not fire, seeing something shorter means some event fires too often. Requires UserState. Expected Behavior: You should see two 5-second self-explanatory texts. --> <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> <head> <layout> <root-layout width="400" height="100" backgroundColor="white"/> </layout> <state xml:id="mystate" language="http://www.w3.org/TR/1999/REC-xpath-19991116"> <data xmlns=""> <foo>0</foo> <bar>0</bar> </data> </state> </head> <body> <par> <seq> <setvalue begin="5s" ref="foo" value="42"/> <setvalue begin="5s" ref="bar" value="43"/> <setvalue begin="5s" ref="foo" value="44"/> <setvalue begin="5s" ref="bar" value="45"/> </seq> <seq> <text src="data:,you%20should%20see%20this%20from%20begin%20to%205%20seconds" end="mystate.stateChange(foo)" /> <text src="data:,you%20should%20see%20this%20from%205%20to%2010%20seconds" end="mystate.stateChange(//*)" /> <text src="data:,you%20should%20see%20this%20from%2010%20to%2020%20seconds" end="mystate.stateChange(bar)" /> </seq> </par> </body> </smil> I 1st ran it with Ambulant Player 2.02 and then by 2.2 on Win XP. My observations were the following a)Ambulant player 2.02 - It displays only the 1st string "You should see this from 1 to 5 seconds." b)Ambulant player 2.2 - It displays both the string namely "You should see this from 1 to 5 seconds." Followed by "You should see this from 10 to 20 seconds." Q1)Why do we have different outputs for 2 different versions of Ambulant player ? Q2)Suppose I do the following changes while running it from 2.2 player <setvalue begin="5s" ref="foo" value="42"/> --- Retain this line <setvalue begin="5s" ref="bar" value="43"/> --- delete this line <setvalue begin="5s" ref="foo" value="44"/> --- delete this line <setvalue begin="5s" ref="bar" value="45"/> --- delete this line The expected behavior would have been that only the 1st string, should have been displayed as variable "foo" would have been set and this would have resulted in mystate.stateChange(foo) being set to true. However, both the strings, namely "You should see this from 1 to 5 seconds." Followed by "You should see this from 10 to 20 seconds." are displayed. If variable "bar" is not set at all, then how is it that mystate.stateChange(bar) variable is set to true for the 2nd string to be displayed ? -- View this message in context: http://old.nabble.com/stateChange%28%29-behaviour-of-TestSuite-for-State-3.0-at-W3C-site.-tp29879815p29879815.html Sent from the w3.org - www-smil mailing list archive at Nabble.com.
Received on Monday, 4 October 2010 16:50:15 UTC