Closed Bug 454654 Opened 16 years ago Closed 16 years ago

Fix text attributes tests so they work on all platforms

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: MarcoZ, Assigned: MarcoZ)

References

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

On Windows, the pixel size and font family strings are different.
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → marco.zehe
Status: NEW → ASSIGNED
Attachment #337936 - Flags: review?(surkov.alexander)
Attachment #337936 - Flags: review?(surkov.alexander) → review+
Comment on attachment 337936 [details] [diff] [review]
Patch

r=me but please consider another approach, it is getting font size and family from document element  for example
Attachment #337936 - Attachment is obsolete: true
Attachment #338050 - Flags: review?(surkov.alexander)
Comment on attachment 338050 [details] [diff] [review]
Use getComputedStyle instead.

r=me but please consider to use computedStyles for all styes and all defAttrs entries.

I think we can use computedStyles because we don't want to test styles computing here but we want to test here logic of text attributes, right?

Following this we should consider to use computed styles for defAttrs and attrs entries both.

You can keep this in mind or file following up bug or fix this here. It's up to you.
Attachment #338050 - Flags: review?(surkov.alexander) → review+
Pushed in changeset:
http://hg.mozilla.org/mozilla-central/rev/90fcd51e53c8
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: