Re: caret-color tests

>> == 6
>> Maybe it would be nice to add a small piece of JS that automatical focuses
>> the textarea on load. It is not essential to running the test, and would
>> not change the results, but would make running the test a bit more convenient.
> 
> It would, perhaps in a separate test - can you suggest something
> suitable?

I wasn't so much thinking of testing whether caret-color works well when
the focus has been set by js, but rather about making the existing
tests marginally easier to run.

So for example adding this at the bottom of your TCs:
<script>var e = getElementById("target"); if (e) e.focus();</script>

However, I just learned of an HTML5 feature that is an even better way
of doing the same thing: the autofocus attribute.

Just change your <textarea id="target"> to <textarea id="target" autofocus>
and we're good.

>> PS: Should I use shepherd's comment and reviewing system instead of mails?
> 
> That would be my preference, yes. Its easier to se the log of comments
> and changes for each test.

Will do from the next round of feedback.

 - Florian

Received on Wednesday, 22 April 2015 21:39:41 UTC