Closed
Bug 735139
Opened 13 years ago
Closed 13 years ago
Improve browser_pageInfo.js a little
Categories
(Firefox :: Page Info Window, defect, P4)
Firefox
Page Info Window
Tracking
()
VERIFIED
FIXED
Firefox 13
People
(Reporter: sgautherie, Assigned: sgautherie)
References
()
Details
Attachments
(1 file)
(deleted),
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #605294 -
Flags: review?(dao)
Comment 2•13 years ago
|
||
Comment on attachment 605294 [details] [diff] [review]
(Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+5]
>- ok(feedRowsNum == 3, "Number of feeds listed: " +
>- feedRowsNum + ", should be 3");
>-
>+ is(feedRowsNum, 3, "3 feeds listed");
is(feedRowsNum, 3, "Number of feeds listed");
> for (var i = 0; i < feedRowsNum; i++) {
> let feedItem = feedListbox.getItemAtIndex(i);
>- ok(feedItem.getAttribute("name") == (i+1),
>- "Name given: " + feedItem.getAttribute("name") + ", should be " + (i+1));
>+ is(feedItem.getAttribute("name"), i + 1,
>+ "Feed name " + (i + 1) + "/" + feedRowsNum);
is(feedItem.getAttribute("name"), i + 1, "Feed name");
r+ with these changes
Attachment #605294 -
Flags: review?(dao) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 605294 [details] [diff] [review]
(Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+5]
Av1, with comment 2 suggestion(s).
(In reply to Dão Gottwald [:dao] from comment #2)
Ftr,
> >+ is(feedRowsNum, 3, "3 feeds listed");
>
> is(feedRowsNum, 3, "Number of feeds listed");
My text change was per bug 521263 comment 26, but I'm fine retaining the initial text.
> >- ok(feedItem.getAttribute("name") == (i+1),
> >- "Name given: " + feedItem.getAttribute("name") + ", should be " + (i+1));
> >+ is(feedItem.getAttribute("name"), i + 1,
> >+ "Feed name " + (i + 1) + "/" + feedRowsNum);
>
> is(feedItem.getAttribute("name"), i + 1, "Feed name");
I'm not totally fine with having no reference to which name is checked (especially without hint at how many they should be) and getting 3 times the same text, but as you wish.
Attachment #605294 -
Attachment description: (Av1) Improve browser_pageInfo.js a little → (Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3]
Comment 4•13 years ago
|
||
is() will spit out the expected value in case of a failure, which seems sufficient here.
Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 605294 [details] [diff] [review]
(Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+5]
https://hg.mozilla.org/mozilla-central/rev/cf4978c2e32c
Attachment #605294 -
Attachment description: (Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3] → (Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+4]
Assignee | ||
Updated•13 years ago
|
Attachment #605294 -
Attachment description: (Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+4] → (Av1) Improve browser_pageInfo.js a little
[Checked in: See comment 3+5]
Assignee | ||
Updated•13 years ago
|
Blocks: 724441
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: Firefox 14 → Firefox 13
Assignee | ||
Comment 6•13 years ago
|
||
https://tbpl.mozilla.org/php/getParsedLog.php?id=10037139&tree=Firefox&full=1
Rev3 Fedora 12x64 mozilla-central debug test mochitest-other on 2012-03-13 10:17:57 PDT for push cf4978c2e32c
{
TEST-PASS | [...] | Feed tab
TEST-PASS | [...] | Feed list
TEST-PASS | [...] | Number of feeds listed
TEST-PASS | [...] | Feed name
TEST-PASS | [...] | Feed name
TEST-PASS | [...] | Feed name
}
V.Fixed
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•