W3C home > Mailing lists > Public > public-respimg@w3.org > October 2013

Re: What do we do with picture?

From: Anselm Hannemann <info@anselm-hannemann.com>
Date: Thu, 17 Oct 2013 20:17:06 +0200
Cc: Yoav Weiss <yoav@yoav.ws>, Marcos Caceres <w3c@marcosc.com>, <public-respimg@w3.org>
Message-Id: <C41F698B-3706-421D-BD3F-C0E4A643C0A6@anselm-hannemann.com>
To: Kornel Lesiński <kornel@geekhood.net>
On 17.10.2013, at 18:45, Kornel Lesiński <kornel@geekhood.net> wrote:
> Why is testing of an element require more tests than testing a set of attributes? Is that just due to a policy? 
> 
> In my experience amount of tests is correlated to number of features and their edge cases and AFAIK srcN and picture have similar feature set. In both cases you'll need to test different combination of sources, media queries, mutations, browser states, etc. 
> 
> On one hand you'll have bunch of DOM traversal tests, on the other bunch of parser edge cases. Overall seems to be the same league to me. 
> 
I wonder about this, too. Can't imagine that this only applies to the picture element and that the tests would be much easier for the attribute way.
I've written some tests for different elements (including img) and can't really think of a huge difference between the two solutions, as Kornel says.
If I'm completely wrong, please let me know. This would be an interesting point I'd really like to know about the whys.
Thanks!
Received on Thursday, 17 October 2013 18:17:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:12:40 UTC