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)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adriank, Assigned: adriank)
References
()
Details
(Whiteboard: [mozmill-l10n][MozmillTestday])
Attachments
(1 file, 1 obsolete file)
4.09 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•15 years ago
|
||
That would be a big win!
Whiteboard: [mozmill-l10n] → [mozmill-l10n][MozmillTestday]
Assignee | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
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-
Assignee | ||
Comment 4•15 years ago
|
||
(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)
Updated•15 years ago
|
Attachment #502900 -
Flags: review?(hskupin) → review+
Comment 5•15 years ago
|
||
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/7f1d9558f493 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/83cb4bb4d51e (1.9.2)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•