Closed Bug 1317174 Opened 8 years ago Closed 8 years ago

browser/base/content/test/general/browser_bug719271.js fails to run more than once in same browser session

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 53
Tracking Status
firefox52 --- fixed
firefox53 --- fixed

People

(Reporter: malayaleecoder, Assigned: malayaleecoder)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 3 obsolete files)

./mach mochitest browser/base/content/test/general/browser_bug719271.js --repeat 1 fails.
Attached patch Bug1317174_v1.diff (obsolete) — Splinter Review
This patch fixes this issue, but makes the subsequent check of "Initial zoom of tab 1" less strict. Please suggest if there is a way around it.
Assignee: nobody → malayaleecoder
Status: NEW → ASSIGNED
Attachment #8810222 - Flags: review?(jmaher)
Blocks: 1316113
Comment on attachment 8810222 [details] [diff] [review]
Bug1317174_v1.diff

Review of attachment 8810222 [details] [diff] [review]:
-----------------------------------------------------------------

close!

::: browser/base/content/test/general/browser_bug719271.js
@@ +25,5 @@
>    Task.spawn(function* () {
>      is(gBrowser.selectedTab, gTab1, "Tab 1 is selected");
> +    level1 = ZoomManager.getZoomForBrowser(gBrowser.getBrowserForTab(gTab1));
> +    if(level1 > 1)
> +      FullZoom.reduce();

can you make level1 a variable?

I would add a comment "reset zoom level if we run this test >1 time"
Attachment #8810222 - Flags: review?(jmaher) → review-
Attached patch Bug1317174_v2.diff (obsolete) — Splinter Review
Sorry, that was a typo.
Attachment #8810222 - Attachment is obsolete: true
Attachment #8810462 - Flags: review?(jmaher)
Comment on attachment 8810462 [details] [diff] [review]
Bug1317174_v2.diff

Review of attachment 8810462 [details] [diff] [review]:
-----------------------------------------------------------------

In your commit message, please add a "r=jmaher" at the end.

::: browser/base/content/test/general/browser_bug719271.js
@@ +28,5 @@
> +    //Reset zoom level if we run this test > 1 time in same browser session.
> +    var level1 = ZoomManager.getZoomForBrowser(gBrowser.getBrowserForTab(gTab1));
> +    if(level1 > 1)
> +      FullZoom.reduce();
> +    

last small thing here, there is whitespace on line 32 although it is a blank line.  if you can upload another patch with this line actually 'blank', we can go ahead and land it.
Attachment #8810462 - Flags: review?(jmaher) → review+
Attached patch Bug1317174_v3.diff (obsolete) — Splinter Review
:P
Attachment #8810462 - Attachment is obsolete: true
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/91db8a985f7f
Fix browser_bug719271.js to run multiple times in a single session r=jmaher
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f35b3bbdd3c5
Fix browser_bug719271.js to run multiple times in a single session: fix eslint failures. r=eslint-fix
https://hg.mozilla.org/mozilla-central/rev/91db8a985f7f
https://hg.mozilla.org/mozilla-central/rev/f35b3bbdd3c5
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: