Bug 1317174 - Fix browser_bug719271.js to run multiple times in a single session: fix eslint failures. r=eslint-fix
authormalayaleecoder <malayaleecoder@gmail.com>
Tue, 15 Nov 2016 00:28:27 +0530
changeset 322506 f35b3bbdd3c57a5b4b6d4384b22ac774ac423886
parent 322505 c6e0621b81552eb3c20275b3ae5c25e2f15db1eb
child 322507 d28924cb72375faf48956d70824a6594250c2210
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewerseslint-fix
bugs1317174, 719271
milestone52.0a1
Bug 1317174 - Fix browser_bug719271.js to run multiple times in a single session: fix eslint failures. r=eslint-fix
browser/base/content/test/general/browser_bug719271.js
--- a/browser/base/content/test/general/browser_bug719271.js
+++ b/browser/base/content/test/general/browser_bug719271.js
@@ -20,19 +20,19 @@ function test() {
     yield FullZoomHelper.load(gTab2, TEST_VIDEO);
   }).then(zoomTab1, FullZoomHelper.failAndContinue(finish));
 }
 
 function zoomTab1() {
   Task.spawn(function* () {
     is(gBrowser.selectedTab, gTab1, "Tab 1 is selected");
 
-    //Reset zoom level if we run this test > 1 time in same browser session.
+    // Reset zoom level if we run this test > 1 time in same browser session.
     var level1 = ZoomManager.getZoomForBrowser(gBrowser.getBrowserForTab(gTab1));
-    if(level1 > 1)
+    if (level1 > 1)
       FullZoom.reduce();
 
     FullZoomHelper.zoomTest(gTab1, 1, "Initial zoom of tab 1 should be 1");
     FullZoomHelper.zoomTest(gTab2, 1, "Initial zoom of tab 2 should be 1");
 
     FullZoom.enlarge();
     gLevel1 = ZoomManager.getZoomForBrowser(gBrowser.getBrowserForTab(gTab1));