W3C home > Mailing lists > Public > public-html-testsuite@w3.org > October 2012

Re: InvalidStateError and TextTrackCue.snapToLines

From: Simon Pieters <simonp@opera.com>
Date: Sat, 27 Oct 2012 12:56:02 +0200
To: "Philippe Le Hegaret" <plh@w3.org>
Cc: "public-html-testsuite@w3.org" <public-html-testsuite@w3.org>, "public-texttracks@w3.org" <public-texttracks@w3.org>
Message-ID: <op.wmt3bpr7idj3kv@dhcp26-236.enst.fr>
On Sun, 21 Oct 2012 16:25:33 +0200, Philippe Le Hegaret <plh@w3.org> wrote:

> 2. Looking at the spec,
> [[
> The snapToLines attribute, on getting, must return true if the text
> track cue snap-to-lines flag of the text track cue that the TextTrackCue
> object represents is set; or false otherwise. On setting, the text track
> cue snap-to-lines flag must be set if the new value is true, and must be
> unset otherwise.
> ]]
>
> It's not clear to me that the following is correct:
> [[
>  assert_throws('INVALID_STATE_ERR', function(){ c1.snapToLines =
> false; });
> ]]
> https://dvcs.w3.org/hg/html/file/1ad5f579acf8/tests/submission/Opera/media/interfaces/TextTrackCue/snapToLines.html
>
> ie, unless I'm misreading the spec, I don't think that snapToLines is
> supposed to return an exception.

Indeed. This changed in:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16917
http://html5.org/r/7328

I've fixed the test. Thanks!

http://dvcs.w3.org/hg/html/rev/c24e5d66880b

-- 
Simon Pieters
Opera Software
Received on Saturday, 27 October 2012 10:56:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 27 October 2012 10:56:28 GMT