Closed Bug 614944 Opened 15 years ago Closed 15 years ago

Use the value instead of label for controller.select() in the DOMWalker

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adriank, Assigned: adriank)

References

()

Details

(Whiteboard: [mozmill-l10n][MozmillTestday])

Attachments

(1 file, 1 obsolete file)

By using node.value instead of node.label with the controller.select(), we can get rid of having to read the labels by utils.getEntity(). The tests will have to be updated accordingly.
That would be a big win!
Whiteboard: [mozmill-l10n] → [mozmill-l10n][MozmillTestday]
Attached patch patch v1 (obsolete) — Splinter Review
Assignee: nobody → akalla
Status: NEW → ASSIGNED
Attachment #500689 - Flags: review?(hskupin)
Comment on attachment 500689 [details] [diff] [review] patch v1 >diff --git a/firefox/l10nTests/testAccessKeys/test1.js b/firefox/l10nTests/testAccessKeys/test1.js >- title : utils.getEntity(dtds, "historyHeader.remember.label")}, >+ title : "remember"}, Beside those changes, can we also remove some of the dtd files from the dtd array? > if (activeNode.localName == "menulist") { >- if (nodeToProcess.label != idSet.title) { >+ if (nodeToProcess.value != idSet.title) { The naming of the property is kinda misleading. Can we change 'title' to 'value'? How would that affect other elements? Can we limit that change for select elements only? Otherwise I'm still really up for that change.
Attachment #500689 - Flags: review?(hskupin) → review-
Attached patch patch v2Splinter Review
(In reply to comment #3) > Comment on attachment 500689 [details] [diff] [review] > patch v1 > > >diff --git a/firefox/l10nTests/testAccessKeys/test1.js b/firefox/l10nTests/testAccessKeys/test1.js > >- title : utils.getEntity(dtds, "historyHeader.remember.label")}, > >+ title : "remember"}, > > Beside those changes, can we also remove some of the dtd files from the dtd > array? right, we can remove 1 dtd > if (activeNode.localName == "menulist") { > >- if (nodeToProcess.label != idSet.title) { > >+ if (nodeToProcess.value != idSet.title) { > > The naming of the property is kinda misleading. Can we change 'title' to > 'value'? How would that affect other elements? Can we limit that change for > select elements only? such a change is possible and shouldn't have any side-effects I have made those two changes in the v2 patch.
Attachment #500689 - Attachment is obsolete: true
Attachment #502900 - Flags: review?(hskupin)
Attachment #502900 - Flags: review?(hskupin) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: