Closed Bug 565074 Opened 14 years ago Closed 14 years ago

Write reftests for the placeholder without readonly input element

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file, 1 obsolete file)

Some reftests for the placeholder attribute use a readonly input element for no valid reason. It was fixing a random failure but it sounds like making the input element readonly wasn't a valid fix but only a workaround [1]. Having some reftests with a non-readonly input element will help us see this failure and fix it if still present.

[1] I don't remember why I thought it was removing the caret but the caret is still present even if readnoly and the caret shouldn't blink in reftests but it was making my tests working...
Note to Mounir: the patch in this bug should probably fix the incorrect comments about readonly hiding the caret as well.
Blocks: 457800
Attached patch Tests v1 (obsolete) — Splinter Review
New tests are passing on my box. I'm waiting for the try server results.
Attachment #444787 - Flags: review?(ehsan)
Could you please generate your patch with hg cp?  It would make it easier to review...
(In reply to comment #3)
> Could you please generate your patch with hg cp?  It would make it easier to
> review...

Using hg cp produce the exact same hg di output.
Add this to your ~/.hgrc :

[diff]
git = 1
Attached patch Tests v1.1Splinter Review
Indeed it works better with -g ;)
Attachment #444787 - Attachment is obsolete: true
Attachment #444798 - Flags: review?(ehsan)
Attachment #444787 - Flags: review?(ehsan)
Keywords: checkin-needed
Comment on attachment 444798 [details] [diff] [review]
Tests v1.1

r=me, thanks!

(btw, next time please wait for a review before you set checkin-needed, because someone might not pay attention and accidentally commit an unreviewed patch.)  :-)
Attachment #444798 - Flags: review?(ehsan) → review+
Also, I assume that you've tested this on the try server, right?
Oups, sorry. I marked it checkin-needed because I thought you did the review yesterday. I was surprised to see a review from you today. Anyway, sorry and thanks :)
(In reply to comment #8)
> Also, I assume that you've tested this on the try server, right?

Yes. It went fine.
http://hg.mozilla.org/mozilla-central/rev/e7617ac8114d
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: