Closed
Bug 1918707
Opened 1 year ago
Closed 1 year ago
browser_quicksuggest_fakespot fails when using NUMBER() in Fluent strings
Categories
(Firefox :: Address Bar, defect)
Firefox
Address Bar
Tracking
()
RESOLVED
INVALID
People
(Reporter: flod, Unassigned)
References
Details
In bug 1918411 I tried to use NUMBER() in the Fluent variant selector. That shouldn't have consequences to tests, but ended up creating failures
# Show the exact number of reviews.
firefox-suggest-fakespot-rating-and-total-reviews =
{ NUMBER($totalReviews) ->
[one] { $rating } · ({ $totalReviews } review)
*[other] { $rating } · ({ $totalReviews } reviews)
}
# Show an approximate number of reviews (e.g. 100,000+ reviews).
firefox-suggest-fakespot-rating-and-total-reviews-overflow =
{ NUMBER($totalReviews) ->
[one] { $rating } · ({ $totalReviews }+ review)
*[other] { $rating } · ({ $totalReviews }+ reviews)
}
Test failure
Unexpected Results
------------------
browser/components/urlbar/tests/quicksuggest/browser/browser_quicksuggest_fakespot.js
FAIL "5 · (1 reviews)" == "5 · (1 review)" -
I assume the variable is not actually passed as a number, so we always use the default variant.
| Reporter | ||
Comment 1•1 year ago
|
||
So far I haven't been able to spot an obvious issue, the number seems to be passed as a number (at least in the payload).
| Reporter | ||
Comment 2•1 year ago
|
||
Apparently our fluent-rs implementation doesn't support NUMBER(), luckily you had a test for 1.
Closing this as INVALID, since it's not a bug in the test.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•