diff --git a/browser/base/content/test/general/browser_bug1003461-switchtab-override.js b/browser/base/content/test/general/browser_bug1003461-switchtab-override.js index 4f77a28f40c..0552afe8b61 100644 --- a/browser/base/content/test/general/browser_bug1003461-switchtab-override.js +++ b/browser/base/content/test/general/browser_bug1003461-switchtab-override.js @@ -42,7 +42,7 @@ add_task(function* test_switchtab_override() { ok(/moz-action:switchtab/.test(gURLBar.value), "switch to tab entry found"); info("Override switch-to-tab"); - let deferred = Promise.defer(); + deferred = Promise.defer(); // In case of failure this would switch tab. let onTabSelect = event => { deferred.reject(new Error("Should have overridden switch to tab")); diff --git a/browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js b/browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js index 94bb8df5b6e..2309d4676c0 100644 --- a/browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js +++ b/browser/base/content/test/general/browser_urlbarSearchSingleWordNotification.js @@ -102,7 +102,7 @@ function get_test_function_for_localhost_with_hostname(hostName, isPrivate) { browser.removeTab(tab); // Now try again with the pref set. - let tab = browser.selectedTab = browser.addTab(); + tab = browser.selectedTab = browser.addTab(); // In a private window, the notification should appear again. yield* runURLBarSearchTest(hostName, isPrivate, isPrivate, win); browser.removeTab(tab); diff --git a/browser/base/content/test/newtab/browser_newtab_enhanced.js b/browser/base/content/test/newtab/browser_newtab_enhanced.js index 6380f570b38..6e48a5772b5 100644 --- a/browser/base/content/test/newtab/browser_newtab_enhanced.js +++ b/browser/base/content/test/newtab/browser_newtab_enhanced.js @@ -49,7 +49,7 @@ function runTests() { // Test with enhanced = true NewTabUtils.allPages.enhanced = true; yield addNewTabPageTab(); - let {type, enhanced, title} = getData(0); + ({type, enhanced, title} = getData(0)); is(type, "organic", "directory link is still organic"); isnot(enhanced, "", "directory link still has enhanced image"); is(title, "title"); @@ -59,7 +59,7 @@ function runTests() { // Test with a pinned link setPinnedLinks("-1"); yield addNewTabPageTab(); - let {type, enhanced, title} = getData(0); + ({type, enhanced, title} = getData(0)); is(type, "enhanced", "pinned history link is enhanced"); isnot(enhanced, "", "pinned history link has enhanced image"); is(title, "title"); @@ -69,7 +69,7 @@ function runTests() { // Test pinned link with enhanced = false NewTabUtils.allPages.enhanced = false; yield addNewTabPageTab(); - let {type, enhanced, title} = getData(0); + ({type, enhanced, title} = getData(0)); isnot(type, "enhanced", "history link is not enhanced"); is(enhanced, "", "history link has no enhanced image"); is(title, "site#-1"); diff --git a/browser/base/content/test/plugins/browser_pageInfo_plugins.js b/browser/base/content/test/plugins/browser_pageInfo_plugins.js index 77a43bb04ee..80ed7c1635c 100644 --- a/browser/base/content/test/plugins/browser_pageInfo_plugins.js +++ b/browser/base/content/test/plugins/browser_pageInfo_plugins.js @@ -70,7 +70,7 @@ function testPart1a() { let objLoadingContent = test.QueryInterface(Ci.nsIObjectLoadingContent); ok(!objLoadingContent.activated, "part 1a: Test plugin should not be activated"); let secondtest = gTestBrowser.contentDocument.getElementById("secondtestA"); - let objLoadingContent = secondtest.QueryInterface(Ci.nsIObjectLoadingContent); + objLoadingContent = secondtest.QueryInterface(Ci.nsIObjectLoadingContent); ok(objLoadingContent.activated, "part 1a: Second Test plugin should be activated"); doOnOpenPageInfo(testPart1b); diff --git a/browser/components/customizableui/test/browser_884402_customize_from_overflow.js b/browser/components/customizableui/test/browser_884402_customize_from_overflow.js index e77daa2d2cf..371e1eb85f5 100644 --- a/browser/components/customizableui/test/browser_884402_customize_from_overflow.js +++ b/browser/components/customizableui/test/browser_884402_customize_from_overflow.js @@ -74,7 +74,7 @@ add_task(function() { yield waitForCondition(() => navbar.hasAttribute("overflowing")); ok(navbar.hasAttribute("overflowing"), "Should have an overflowing toolbar."); - let homeButtonPlacement = CustomizableUI.getPlacementOfWidget("home-button"); + homeButtonPlacement = CustomizableUI.getPlacementOfWidget("home-button"); ok(homeButtonPlacement, "Home button should still have a placement"); is(homeButtonPlacement && homeButtonPlacement.area, "nav-bar", "Home button should be back in the navbar now"); diff --git a/browser/components/customizableui/test/browser_886323_buildArea_removable_nodes.js b/browser/components/customizableui/test/browser_886323_buildArea_removable_nodes.js index 40dcfd879a3..b75e04d1ac4 100644 --- a/browser/components/customizableui/test/browser_886323_buildArea_removable_nodes.js +++ b/browser/components/customizableui/test/browser_886323_buildArea_removable_nodes.js @@ -34,7 +34,7 @@ add_task(function() { assertAreaPlacements(kLazyAreaId, [], "Placements should no longer include widget."); is(btn.parentNode.id, gNavBar.customizationTarget.id, "Button shouldn't actually have moved as it's not removable"); - let btn = document.getElementById(kButtonId); + btn = document.getElementById(kButtonId); if (btn) btn.remove(); CustomizableUI.removeWidgetFromArea(kButtonId); CustomizableUI.unregisterArea(kLazyAreaId); diff --git a/browser/components/customizableui/test/browser_888817_currentset_updating.js b/browser/components/customizableui/test/browser_888817_currentset_updating.js index fec615145d8..ef43761023a 100644 --- a/browser/components/customizableui/test/browser_888817_currentset_updating.js +++ b/browser/components/customizableui/test/browser_888817_currentset_updating.js @@ -12,7 +12,7 @@ add_task(function() { ok(!CustomizableUI.inDefaultState, "Making the bookmarks toolbar visible takes it out of the default state"); let navbar = document.getElementById(CustomizableUI.AREA_NAVBAR); - let personalbar = document.getElementById(CustomizableUI.AREA_BOOKMARKS); + personalbar = document.getElementById(CustomizableUI.AREA_BOOKMARKS); let navbarCurrentset = navbar.getAttribute("currentset") || navbar.currentSet; let personalbarCurrentset = personalbar.getAttribute("currentset") || personalbar.currentSet; diff --git a/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js b/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js index c73c52617d4..faf56348ad8 100644 --- a/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js +++ b/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js @@ -89,7 +89,7 @@ add_task(function() { let hiddenPanelPromise = promiseOverflowHidden(window); EventUtils.synthesizeKey("VK_ESCAPE", {}); yield hiddenPanelPromise; - let navbar = document.getElementById(CustomizableUI.AREA_NAVBAR); + navbar = document.getElementById(CustomizableUI.AREA_NAVBAR); window.resizeTo(this.originalWindowWidth, window.outerHeight); yield waitForCondition(() => !navbar.hasAttribute("overflowing")); ok(!navbar.hasAttribute("overflowing"), "Should not have an overflowing toolbar."); diff --git a/browser/components/customizableui/test/browser_952963_areaType_getter_no_area.js b/browser/components/customizableui/test/browser_952963_areaType_getter_no_area.js index f8c62ca642a..bf6788b2f9b 100644 --- a/browser/components/customizableui/test/browser_952963_areaType_getter_no_area.js +++ b/browser/components/customizableui/test/browser_952963_areaType_getter_no_area.js @@ -35,7 +35,7 @@ add_task(function() { let spec = {id: kUnregisterAreaTestWidget, type: 'button', removable: true, label: "areaType test", tooltiptext: "areaType test"}; CustomizableUI.createWidget(spec); - let toolbarNode = createToolbarWithPlacements(kToolbarName, [kUnregisterAreaTestWidget]); + toolbarNode = createToolbarWithPlacements(kToolbarName, [kUnregisterAreaTestWidget]); CustomizableUI.unregisterArea(kToolbarName); toolbarNode.remove(); w = CustomizableUI.getWidget(spec.id); diff --git a/browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js b/browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js index 4be004b9827..65787b39e94 100644 --- a/browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js +++ b/browser/components/customizableui/test/browser_962884_opt_in_disable_hyphens.js @@ -31,7 +31,7 @@ add_task(function() { isnot(characterEncoding.getAttribute("auto-hyphens"), "off", "Hyphens should not be disabled if the character is not present in the label"); multilineText = document.getAnonymousElementByAttribute(characterEncoding, "class", "toolbarbutton-multiline-text"); - let multilineTextCS = getComputedStyle(multilineText); + multilineTextCS = getComputedStyle(multilineText); is(multilineTextCS.MozHyphens, "auto", "-moz-hyphens should be set to auto by default.") hiddenPanelPromise = promisePanelHidden(window); @@ -48,8 +48,8 @@ add_task(function() { gCustomizeMode.addToPanel(characterEncoding); is(characterEncoding.getAttribute("auto-hyphens"), "off", "Hyphens should be disabled if the character is present in the label in customization mode"); - let multilineText = document.getAnonymousElementByAttribute(characterEncoding, "class", "toolbarbutton-multiline-text"); - let multilineTextCS = getComputedStyle(multilineText); + multilineText = document.getAnonymousElementByAttribute(characterEncoding, "class", "toolbarbutton-multiline-text"); + multilineTextCS = getComputedStyle(multilineText); is(multilineTextCS.MozHyphens, "manual", "-moz-hyphens should be set to manual when the character is present in customization mode.") yield endCustomizing(); diff --git a/browser/components/customizableui/test/browser_987492_window_api.js b/browser/components/customizableui/test/browser_987492_window_api.js index 3f6581416ac..1718303e146 100644 --- a/browser/components/customizableui/test/browser_987492_window_api.js +++ b/browser/components/customizableui/test/browser_987492_window_api.js @@ -45,7 +45,7 @@ add_task(function* testOpenCloseWindow() { is(newWindow, closedWindow, "Closed window should match previously opened window"); CustomizableUI.removeListener(closeListener); - let windows = []; + windows = []; for (let win of CustomizableUI.windows) windows.push(win); is(windows.length, 1, "Should have one customizable window"); diff --git a/browser/components/customizableui/test/browser_987640_charEncoding.js b/browser/components/customizableui/test/browser_987640_charEncoding.js index 9db0e08c21b..5c78abfeb1f 100644 --- a/browser/components/customizableui/test/browser_987640_charEncoding.js +++ b/browser/components/customizableui/test/browser_987640_charEncoding.js @@ -48,7 +48,7 @@ add_task(function() { yield tabLoadPromise; yield PanelUI.show(); charEncodingButton.click(); - let checkedButtons = characterEncodingView.querySelectorAll("toolbarbutton[checked='true']"); + checkedButtons = characterEncodingView.querySelectorAll("toolbarbutton[checked='true']"); is(checkedButtons[0].getAttribute("label"), "Unicode", "The encoding was reset to Unicode"); }); diff --git a/browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js b/browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js index b565ac6194e..af4316b1343 100644 --- a/browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js +++ b/browser/components/customizableui/test/browser_bootstrapped_custom_toolbar.js @@ -50,13 +50,13 @@ function checkRestoredPresence(aWidgetID, aLegacy) { CustomizableUI.unregisterArea(testBar.id); testBar.remove(); - let placement = CustomizableUI.getPlacementOfWidget(aWidgetID); + placement = CustomizableUI.getPlacementOfWidget(aWidgetID); is(placement, null, "Expected " + aWidgetID + " to be in the palette"); testBar = createTestBar(aLegacy); yield startCustomizing(); - let placement = CustomizableUI.getPlacementOfWidget(aWidgetID); + placement = CustomizableUI.getPlacementOfWidget(aWidgetID); is(placement.area, kTestBarID, "Expected " + aWidgetID + " to be in the test toolbar"); yield endCustomizing(); diff --git a/browser/components/loop/test/mochitest/browser_CardDavImporter.js b/browser/components/loop/test/mochitest/browser_CardDavImporter.js index 4913ecb2799..ac6b2cd7789 100644 --- a/browser/components/loop/test/mochitest/browser_CardDavImporter.js +++ b/browser/components/loop/test/mochitest/browser_CardDavImporter.js @@ -327,7 +327,7 @@ add_task(function* test_CardDavImport() { }); Assert.equal(error.message, "401 Auth Failure", "Auth error should propagate"); - let error = yield new Promise ((resolve, reject) => { + error = yield new Promise ((resolve, reject) => { info("Initiating import"); importer.startImport({ "host": "example.invalid", @@ -342,7 +342,7 @@ add_task(function* test_CardDavImport() { mockDb.getByServiceId = function(serviceId, callback) { callback(new Error("getByServiceId failed")); }; - let error = yield new Promise ((resolve, reject) => { + error = yield new Promise ((resolve, reject) => { info("Initiating import"); importer.startImport({ "host": "example.com", @@ -354,7 +354,7 @@ add_task(function* test_CardDavImport() { Assert.equal(error.message, "getByServiceId failed", "Database error should propagate"); mockDb.getByServiceId = tmp; - let error = yield new Promise ((resolve, reject) => { + error = yield new Promise ((resolve, reject) => { info("Initiating import"); importer.startImport({ "host": "example.com", diff --git a/browser/components/loop/test/mochitest/browser_LoopContacts.js b/browser/components/loop/test/mochitest/browser_LoopContacts.js index 07901a68ad1..7e52b80aeba 100644 --- a/browser/components/loop/test/mochitest/browser_LoopContacts.js +++ b/browser/components/loop/test/mochitest/browser_LoopContacts.js @@ -193,7 +193,7 @@ add_task(function* () { yield deferred.promise; info("Get a single contact by id."); - let deferred = Promise.defer(); + deferred = Promise.defer(); LoopContacts.getByServiceId(2, (err, contact) => { Assert.ok(!err, "There shouldn't be an error"); compareContacts(contact, kContacts[1]); @@ -202,7 +202,7 @@ add_task(function* () { yield deferred.promise; info("Get a couple of contacts."); - let deferred = Promise.defer(); + deferred = Promise.defer(); let toRetrieve = [contacts[0], contacts[2], contacts[3]]; LoopContacts.getMany(toRetrieve.map(contact => contact._guid), (err, result) => { Assert.ok(!err, "There shouldn't be an error"); diff --git a/browser/components/places/tests/unit/test_421483.js b/browser/components/places/tests/unit/test_421483.js index ac0c733679c..2f3a4e7b7a9 100644 --- a/browser/components/places/tests/unit/test_421483.js +++ b/browser/components/places/tests/unit/test_421483.js @@ -46,7 +46,7 @@ add_task(function remove_smart_bookmark_and_restore() { PlacesUtils.bookmarks.removeItem(smartBookmarkItemIds[0]); Services.prefs.setIntPref("browser.places.smartBookmarksVersion", 0); gluesvc.ensurePlacesDefaultQueriesInitialized(); - let smartBookmarkItemIds = + smartBookmarkItemIds = PlacesUtils.annotations.getItemsWithAnnotation(SMART_BOOKMARKS_ANNO); do_check_eq(smartBookmarkItemIds.length, smartBookmarksCount); do_log_info("check that pref has been bumped up"); diff --git a/browser/components/preferences/tests/browser_chunk_permissions.js b/browser/components/preferences/tests/browser_chunk_permissions.js index 4bd387229c5..cdc9deff557 100644 --- a/browser/components/preferences/tests/browser_chunk_permissions.js +++ b/browser/components/preferences/tests/browser_chunk_permissions.js @@ -121,11 +121,11 @@ var tests = [ }, run: function() { let testSite1 = getSiteItem(TEST_URI_1.host); - ok(!testSite2, "test site 1 was not removed from sites list"); + ok(testSite1, "test site 1 was not removed from sites list"); let testSite2 = getSiteItem(TEST_URI_2.host); ok(!testSite2, "test site 2 was pre-removed from sites list"); let testSite3 = getSiteItem(TEST_URI_3.host); - ok(!testSite2, "test site 3 was not removed from sites list"); + ok(testSite3, "test site 3 was not removed from sites list"); runNextTest(); } diff --git a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js index 68be197a1b3..d1695e046e9 100644 --- a/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js +++ b/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_DownloadLastDirWithCPS.js @@ -238,8 +238,8 @@ function runTest() { // And give it time to close executeSoon(moveAlong); yield; - let pbWin = yield createWindow({private: true}); - let pbDownloadLastDir = new DownloadLastDir(pbWin); + pbWin = yield createWindow({private: true}); + pbDownloadLastDir = new DownloadLastDir(pbWin); is((yield checkDownloadLastDir(pbDownloadLastDir, dir1)).path, dir1.path, "uri1 should return the expected last directory"); diff --git a/browser/components/search/test/browser_426329.js b/browser/components/search/test/browser_426329.js index d73ac2c152b..01e6470b647 100644 --- a/browser/components/search/test/browser_426329.js +++ b/browser/components/search/test/browser_426329.js @@ -251,7 +251,7 @@ add_task(function testDropInternalText() { // were merged so that if testDropInternalText failed it wouldn't cause testDropLink // to fail unexplainably. yield prepareTest(); - let promisePreventPopup = promiseEvent(searchBar, "popupshowing", true); + promisePreventPopup = promiseEvent(searchBar, "popupshowing", true); ChromeUtils.synthesizeDrop(searchBar.searchButton, searchBar.searchButton, [[ {type: "text/uri-list", data: "http://www.mozilla.org" } ]], "copy", window); yield promisePreventPopup; is(searchBar.value, "More Text", "drop text/uri-list on searchbar shouldn't change anything"); diff --git a/browser/components/sessionstore/test/browser_463205.js b/browser/components/sessionstore/test/browser_463205.js index a2d6f791db1..6ff193721e5 100644 --- a/browser/components/sessionstore/test/browser_463205.js +++ b/browser/components/sessionstore/test/browser_463205.js @@ -27,7 +27,7 @@ add_task(function test_check_urls_before_restoring() { ss.setTabState(tab, getState("http://example.com/")); yield promiseTabRestored(tab); - let value = yield getInputValue(browser, {id: "text"}); + value = yield getInputValue(browser, {id: "text"}); is(value, "", "value was not restored"); // Cleanup. diff --git a/browser/components/sessionstore/test/browser_662743.js b/browser/components/sessionstore/test/browser_662743.js index 849a931b7be..9e34d6c2da3 100644 --- a/browser/components/sessionstore/test/browser_662743.js +++ b/browser/components/sessionstore/test/browser_662743.js @@ -89,7 +89,7 @@ function testTabRestoreData(aFormData, aExpectedValue, aCallback) { let restoredFormData = restoredTabState.formdata; let selectIdFormData = restoredFormData.id.select_id; - let value = restoredFormData.id.select_id.value; + value = restoredFormData.id.select_id.value; // test format ok("id" in restoredFormData || "xpath" in restoredFormData, diff --git a/browser/components/sessionstore/test/browser_attributes.js b/browser/components/sessionstore/test/browser_attributes.js index 2e8e9d01a86..a87c869b4ad 100644 --- a/browser/components/sessionstore/test/browser_attributes.js +++ b/browser/components/sessionstore/test/browser_attributes.js @@ -34,7 +34,7 @@ function runTests() { tab.setAttribute("custom", "foobar"); ss.persistTabAttribute("custom"); - let {attributes} = JSON.parse(ss.getTabState(tab)); + ({attributes} = JSON.parse(ss.getTabState(tab))); is(attributes.custom, "foobar", "'custom' attribute is correct"); // Make sure we're backwards compatible and restore old 'image' attributes. @@ -55,7 +55,7 @@ function runTests() { yield whenTabRestored(tab); // Ensure no 'image' or 'pending' attributes are stored. - let {attributes} = JSON.parse(ss.getTabState(tab)); + ({attributes} = JSON.parse(ss.getTabState(tab))); ok(!("image" in attributes), "'image' attribute not saved"); ok(!("pending" in attributes), "'pending' attribute not saved"); is(attributes.custom, "foobaz", "'custom' attribute is correct"); diff --git a/browser/components/sessionstore/test/browser_broadcast.js b/browser/components/sessionstore/test/browser_broadcast.js index f7a9e697522..752982ecb8a 100644 --- a/browser/components/sessionstore/test/browser_broadcast.js +++ b/browser/components/sessionstore/test/browser_broadcast.js @@ -59,8 +59,8 @@ add_task(function flush_on_duplicate() { "sessionStorage data has been flushed when duplicating tabs"); yield promiseTabRestored(tab2); - gBrowser.removeTab(tab2) - let [{state: {storage}}] = JSON.parse(ss.getClosedTabData(window)); + gBrowser.removeTab(tab2); + [{state: {storage}}] = JSON.parse(ss.getClosedTabData(window)); is(storage["http://example.com"].test, "on-duplicate", "sessionStorage data has been flushed when duplicating tabs"); diff --git a/browser/components/sessionstore/test/browser_dynamic_frames.js b/browser/components/sessionstore/test/browser_dynamic_frames.js index 4029be3dd86..8bc42ecd07e 100644 --- a/browser/components/sessionstore/test/browser_dynamic_frames.js +++ b/browser/components/sessionstore/test/browser_dynamic_frames.js @@ -77,7 +77,7 @@ add_task(function () { yield promiseBrowserLoaded(browser, false /* don't ignore subframes */); SyncHandlers.get(browser).flush(); - let {entries} = JSON.parse(ss.getTabState(tab)); + ({entries} = JSON.parse(ss.getTabState(tab))); // Check URLs. ok(entries[0].url.startsWith("data:text/html"), "correct 1st root url"); diff --git a/browser/components/sessionstore/test/browser_formdata.js b/browser/components/sessionstore/test/browser_formdata.js index f82324f47b9..77f95aeda99 100644 --- a/browser/components/sessionstore/test/browser_formdata.js +++ b/browser/components/sessionstore/test/browser_formdata.js @@ -43,7 +43,7 @@ add_task(function test_formdata() { Services.prefs.setIntPref("browser.sessionstore.privacy_level", 1); yield createAndRemoveTab(); - let [{state: {formdata}}] = JSON.parse(ss.getClosedTabData(window)); + [{state: {formdata}}] = JSON.parse(ss.getClosedTabData(window)); is(formdata.id.txt, OUTER_VALUE, "outer value is correct"); ok(!formdata.children, "inner value was *not* stored"); @@ -51,7 +51,7 @@ add_task(function test_formdata() { Services.prefs.setIntPref("browser.sessionstore.privacy_level", 2); yield createAndRemoveTab(); - let [{state: {formdata}}] = JSON.parse(ss.getClosedTabData(window)); + [{state: {formdata}}] = JSON.parse(ss.getClosedTabData(window)); ok(!formdata, "form data has *not* been stored"); // Restore the default privacy level. @@ -176,13 +176,13 @@ add_task(function test_nested() { "formdata for iframe stored correctly"); // Restore the closed tab. - let tab = ss.undoCloseTab(window, 0); - let browser = tab.linkedBrowser; + tab = ss.undoCloseTab(window, 0); + browser = tab.linkedBrowser; yield promiseTabRestored(tab); // Check that the input field has the right value. SyncHandlers.get(browser).flush(); - let {formdata} = JSON.parse(ss.getTabState(tab)); + ({formdata} = JSON.parse(ss.getTabState(tab))); is(JSON.stringify(formdata), JSON.stringify(FORM_DATA), "formdata for iframe restored correctly"); @@ -224,8 +224,8 @@ add_task(function test_design_mode() { yield promiseTabRestored(tab); // Check that the innerHTML value was restored. - let html = yield getInnerHTML(browser); - let expected = "
is highlighted"); info("Navigate back to
with the keyboard"); - let onUpdated = inspector.once("inspector-updated"); + onUpdated = inspector.once("inspector-updated"); EventUtils.synthesizeKey("VK_UP", {}); yield onUpdated; yield isHighlighting("#one", "
is highlighted again");
diff --git a/browser/devtools/markupview/test/browser_markupview_tag_edit_03.js b/browser/devtools/markupview/test/browser_markupview_tag_edit_03.js
index 3ea8637be84..e1a71da8e9f 100644
--- a/browser/devtools/markupview/test/browser_markupview_tag_edit_03.js
+++ b/browser/devtools/markupview/test/browser_markupview_tag_edit_03.js
@@ -30,8 +30,8 @@ let test = asyncTest(function*() {
yield mutated;
info("Checking that the tagname change was done");
- let node = content.document.querySelector("#retag-me");
- let container = yield getContainerForSelector("#retag-me", inspector);
+ node = content.document.querySelector("#retag-me");
+ container = yield getContainerForSelector("#retag-me", inspector);
is(node.tagName, "P", "We've got #retag-me, it should now be a P");
ok(container.expanded, "It is still expanded");
ok(container.selected, "It is still selected");
diff --git a/browser/devtools/netmonitor/test/browser_net_post-data-03.js b/browser/devtools/netmonitor/test/browser_net_post-data-03.js
index 94ada0e5c52..620111abed3 100644
--- a/browser/devtools/netmonitor/test/browser_net_post-data-03.js
+++ b/browser/devtools/netmonitor/test/browser_net_post-data-03.js
@@ -54,8 +54,8 @@ function test() {
yield waitFor(aMonitor.panelWin, TAB_UPDATED);
- let tab = document.querySelectorAll("#details-pane tab")[2];
- let tabpanel = document.querySelectorAll("#details-pane tabpanel")[2];
+ tab = document.querySelectorAll("#details-pane tab")[2];
+ tabpanel = document.querySelectorAll("#details-pane tabpanel")[2];
let formDataScope = tabpanel.querySelectorAll(".variables-view-scope")[0];
is(tab.getAttribute("selected"), "true",
diff --git a/browser/devtools/profiler/test/browser_profiler_data-massaging-01.js b/browser/devtools/profiler/test/browser_profiler_data-massaging-01.js
index dac9da56ef0..571f9b8c3f9 100644
--- a/browser/devtools/profiler/test/browser_profiler_data-massaging-01.js
+++ b/browser/devtools/profiler/test/browser_profiler_data-massaging-01.js
@@ -33,7 +33,7 @@ let test = Task.async(function*() {
// Perform the second recording...
yield front.startRecording();
- let profilingStartTime = front._profilingStartTime;
+ profilingStartTime = front._profilingStartTime;
info("Started profiling at: " + profilingStartTime);
busyWait(WAIT_TIME); // allow the profiler module to sample more cpu activity
diff --git a/browser/devtools/profiler/test/browser_profiler_jump-to-debugger-02.js b/browser/devtools/profiler/test/browser_profiler_jump-to-debugger-02.js
index b156bf43387..7330a680b2b 100644
--- a/browser/devtools/profiler/test/browser_profiler_jump-to-debugger-02.js
+++ b/browser/devtools/profiler/test/browser_profiler_jump-to-debugger-02.js
@@ -30,7 +30,7 @@ let test = Task.async(function*() {
profilerWin.viewSourceInDebugger(SIMPLE_URL, 14);
yield whenSourceShown;
- let debuggerPanel = toolbox.getPanel("jsdebugger");
+ debuggerPanel = toolbox.getPanel("jsdebugger");
ok(debuggerPanel, "The debugger panel was reselected.");
is(DebuggerView.Sources.selectedValue, SIMPLE_URL,
diff --git a/browser/devtools/profiler/test/browser_profiler_shared-connection-03.js b/browser/devtools/profiler/test/browser_profiler_shared-connection-03.js
index 335db36f9d2..36aaa5fa50d 100644
--- a/browser/devtools/profiler/test/browser_profiler_shared-connection-03.js
+++ b/browser/devtools/profiler/test/browser_profiler_shared-connection-03.js
@@ -18,7 +18,7 @@ let test = Task.async(function*() {
ok(nsIProfilerModule.IsActive(),
"The built-in profiler module should now be active.");
- let result = yield front._request("profiler", "stopProfiler");
+ result = yield front._request("profiler", "stopProfiler");
is(result.started, false,
"The request finished successfully and the profiler should've been stopped.");
ok(!nsIProfilerModule.IsActive(),
diff --git a/browser/devtools/profiler/test/browser_profiler_tree-abstract-01.js b/browser/devtools/profiler/test/browser_profiler_tree-abstract-01.js
index 59168414899..9ca1523aff2 100644
--- a/browser/devtools/profiler/test/browser_profiler_tree-abstract-01.js
+++ b/browser/devtools/profiler/test/browser_profiler_tree-abstract-01.js
@@ -90,7 +90,7 @@ let test = Task.async(function*() {
let receivedFocusEvent = treeRoot.once("focus");
EventUtils.sendMouseEvent({ type: "mousedown" }, fooItem.target);
- let eventItem = yield receivedFocusEvent;
+ eventItem = yield receivedFocusEvent;
is(eventItem, fooItem,
"The 'focus' event target is correct.");
is(document.commandDispatcher.focusedElement, fooItem.target,
@@ -99,7 +99,7 @@ let test = Task.async(function*() {
let receivedDblClickEvent = treeRoot.once("focus");
EventUtils.sendMouseEvent({ type: "dblclick" }, barItem.target);
- let eventItem = yield receivedDblClickEvent;
+ eventItem = yield receivedDblClickEvent;
is(eventItem, barItem,
"The 'dblclick' event target is correct.");
is(document.commandDispatcher.focusedElement, barItem.target,
diff --git a/browser/devtools/profiler/test/browser_profiler_tree-view-06.js b/browser/devtools/profiler/test/browser_profiler_tree-view-06.js
index 6b4b0010dce..1b3648dabe8 100644
--- a/browser/devtools/profiler/test/browser_profiler_tree-view-06.js
+++ b/browser/devtools/profiler/test/browser_profiler_tree-view-06.js
@@ -29,7 +29,7 @@ let test = Task.async(function*() {
let receivedZoomEvent = treeRoot.once("zoom");
EventUtils.sendMouseEvent({ type: "mousedown" }, C.target.querySelector(".call-tree-zoom"));
- let eventItem = yield receivedZoomEvent;
+ eventItem = yield receivedZoomEvent;
is(eventItem, C, "The 'zoom' event target is correct.");
finish();
diff --git a/browser/devtools/projecteditor/test/browser_projecteditor_contextmenu_01.js b/browser/devtools/projecteditor/test/browser_projecteditor_contextmenu_01.js
index e95f0af2261..45ba13359a0 100644
--- a/browser/devtools/projecteditor/test/browser_projecteditor_contextmenu_01.js
+++ b/browser/devtools/projecteditor/test/browser_projecteditor_contextmenu_01.js
@@ -18,10 +18,10 @@ let test = asyncTest(function*() {
ok (textEditorContextMenuPopup, "The menu has loaded in the projecteditor document");
let projecteditor2 = yield addProjectEditorTabForTempDirectory();
- let contextMenuPopup = projecteditor2.document.getElementById("context-menu-popup");
- let textEditorContextMenuPopup = projecteditor2.document.getElementById("texteditor-context-popup");
+ contextMenuPopup = projecteditor2.document.getElementById("context-menu-popup");
+ textEditorContextMenuPopup = projecteditor2.document.getElementById("texteditor-context-popup");
ok (!contextMenuPopup, "The menu has NOT loaded in the projecteditor document");
ok (!textEditorContextMenuPopup, "The menu has NOT loaded in the projecteditor document");
ok (content.document.querySelector("#context-menu-popup"), "The menu has loaded in the specified element");
ok (content.document.querySelector("#texteditor-context-popup"), "The menu has loaded in the specified element");
-});
\ No newline at end of file
+});
diff --git a/browser/devtools/projecteditor/test/browser_projecteditor_editors_image.js b/browser/devtools/projecteditor/test/browser_projecteditor_editors_image.js
index d9fa43ad38c..b122932cd15 100644
--- a/browser/devtools/projecteditor/test/browser_projecteditor_editors_image.js
+++ b/browser/devtools/projecteditor/test/browser_projecteditor_editors_image.js
@@ -58,8 +58,8 @@ function testEditor(projecteditor, filePath) {
projecteditor.projectTree.selectResource(resource);
yield onceEditorActivated(projecteditor);
- let editor = projecteditor.currentEditor;
- let images = editor.elt.querySelectorAll("image");
+ editor = projecteditor.currentEditor;
+ images = editor.elt.querySelectorAll("image");
ok (images.length, 1, "There is one image inside the editor");
is (images[0], editor.image, "The image property is set correctly with the DOM");
is (editor.image.getAttribute("src"), resource.uri, "The image has the resource URL");
diff --git a/browser/devtools/projecteditor/test/browser_projecteditor_external_change.js b/browser/devtools/projecteditor/test/browser_projecteditor_external_change.js
index 38014c1dd9d..033965cab74 100644
--- a/browser/devtools/projecteditor/test/browser_projecteditor_external_change.js
+++ b/browser/devtools/projecteditor/test/browser_projecteditor_external_change.js
@@ -50,7 +50,7 @@ function testChangeUnsavedFileExternally(projecteditor, filePath, newData) {
projecteditor.projectTree.selectResource(resource);
yield onceEditorActivated(projecteditor);
- let editor = projecteditor.currentEditor;
+ editor = projecteditor.currentEditor;
info ("Checking to make sure the editor is now populated correctly");
is (editor.editor.getText(), "foobar", "Editor has not been updated with new file contents");
@@ -76,7 +76,7 @@ function testChangeFileExternally(projecteditor, filePath, newData) {
projecteditor.projectTree.selectResource(resource);
yield onceEditorActivated(projecteditor);
- let editor = projecteditor.currentEditor;
+ editor = projecteditor.currentEditor;
info ("Checking to make sure the editor is now populated correctly");
is (editor.editor.getText(), newData, "Editor has been updated with correct file contents");
diff --git a/browser/devtools/projecteditor/test/browser_projecteditor_menubar_01.js b/browser/devtools/projecteditor/test/browser_projecteditor_menubar_01.js
index 1a0181a0158..c3fd452c841 100644
--- a/browser/devtools/projecteditor/test/browser_projecteditor_menubar_01.js
+++ b/browser/devtools/projecteditor/test/browser_projecteditor_menubar_01.js
@@ -19,10 +19,10 @@ let test = asyncTest(function*() {
let projecteditor2 = yield addProjectEditorTabForTempDirectory();
let menubar = projecteditor2.menubar;
- let fileMenu = projecteditor2.document.getElementById("file-menu");
- let editMenu = projecteditor2.document.getElementById("edit-menu");
+ fileMenu = projecteditor2.document.getElementById("file-menu");
+ editMenu = projecteditor2.document.getElementById("edit-menu");
ok (!fileMenu, "The menu has NOT loaded in the projecteditor document");
ok (!editMenu, "The menu has NOT loaded in the projecteditor document");
ok (content.document.querySelector("#file-menu"), "The menu has loaded in the specified element");
ok (content.document.querySelector("#edit-menu"), "The menu has loaded in the specified element");
-});
\ No newline at end of file
+});
diff --git a/browser/devtools/responsivedesign/test/browser_responsiveui.js b/browser/devtools/responsivedesign/test/browser_responsiveui.js
index 5450df63ec8..c82117102dd 100644
--- a/browser/devtools/responsivedesign/test/browser_responsiveui.js
+++ b/browser/devtools/responsivedesign/test/browser_responsiveui.js
@@ -190,10 +190,10 @@ function test() {
is(content.innerWidth, expectedWidth, "Size correctly updated (width).");
is(content.innerHeight, expectedHeight, "Size correctly updated (height).");
is(instance.menulist.selectedIndex, -1, "Custom menuitem cannot be selected");
- let label = instance.menulist.firstChild.firstChild.getAttribute("label");
- let value = instance.menulist.value;
- isnot(label, value, "Label from the menulist item is different than the value of the menulist")
- let [width, height] = extractSizeFromString(label);
+ label = instance.menulist.firstChild.firstChild.getAttribute("label");
+ value = instance.menulist.value;
+ isnot(label, value, "Label from the menulist item is different than the value of the menulist");
+ [width, height] = extractSizeFromString(label);
is(width, expectedWidth, "Label updated (width).");
is(height, expectedHeight, "Label updated (height).");
[width, height] = extractSizeFromString(value);
diff --git a/browser/devtools/shadereditor/test/browser_se_shaders-edit-02.js b/browser/devtools/shadereditor/test/browser_se_shaders-edit-02.js
index ca6bb3a8014..aee5d6041de 100644
--- a/browser/devtools/shadereditor/test/browser_se_shaders-edit-02.js
+++ b/browser/devtools/shadereditor/test/browser_se_shaders-edit-02.js
@@ -36,7 +36,7 @@ function ifWebGLSupported() {
"An assignment error is contained in the linkage status.");
fsEditor.replaceText("vec4", { line: 2, ch: 14 }, { line: 2, ch: 18 });
- let [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
+ [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
ok(error,
"The new fragment shader source was compiled with errors.");
@@ -53,11 +53,11 @@ function ifWebGLSupported() {
yield ensurePixelIs(gFront, { x: 511, y: 511 }, { r: 0, g: 255, b: 0, a: 255 }, true);
vsEditor.replaceText("vec4", { line: 7, ch: 22 }, { line: 7, ch: 26 });
- let [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
+ [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
ok(!error, "The new vertex shader source was compiled successfully.");
fsEditor.replaceText("vec3", { line: 2, ch: 14 }, { line: 2, ch: 18 });
- let [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
+ [, error] = yield onceSpread(panel.panelWin, EVENTS.SHADER_COMPILED);
ok(!error, "The new fragment shader source was compiled successfully.");
yield ensurePixelIs(gFront, { x: 0, y: 0 }, { r: 255, g: 0, b: 0, a: 255 }, true);
diff --git a/browser/devtools/shadereditor/test/browser_webgl-actor-test-07.js b/browser/devtools/shadereditor/test/browser_webgl-actor-test-07.js
index ebc68f1e58b..62f564b002b 100644
--- a/browser/devtools/shadereditor/test/browser_webgl-actor-test-07.js
+++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-07.js
@@ -33,15 +33,15 @@ function ifWebGLSupported() {
yield ensurePixelIs(front, { x: 128, y: 128 }, { r: 255, g: 0, b: 0, a: 255 }, true);
yield ensurePixelIs(front, { x: 511, y: 511 }, { r: 0, g: 0, b: 0, a: 255 }, true);
- let vertSource = yield vertexShader.getText();
- let fragSource = yield fragmentShader.getText();
+ vertSource = yield vertexShader.getText();
+ fragSource = yield fragmentShader.getText();
ok(vertSource.contains("2.0"),
"The vertex shader source is correct after changing it.");
ok(!fragSource.contains("0.5"),
"The fragment shader source is correct after changing the vertex shader.");
let newFragSource = fragSource.replace("1.0", "0.5");
- let status = yield fragmentShader.compile(newFragSource);
+ status = yield fragmentShader.compile(newFragSource);
ok(!status,
"The new fragment shader source was compiled without errors.");
@@ -49,8 +49,8 @@ function ifWebGLSupported() {
yield ensurePixelIs(front, { x: 128, y: 128 }, { r: 255, g: 0, b: 0, a: 127 }, true);
yield ensurePixelIs(front, { x: 511, y: 511 }, { r: 0, g: 0, b: 0, a: 255 }, true);
- let vertSource = yield vertexShader.getText();
- let fragSource = yield fragmentShader.getText();
+ vertSource = yield vertexShader.getText();
+ fragSource = yield fragmentShader.getText();
ok(vertSource.contains("2.0"),
"The vertex shader source is correct after changing the fragment shader.");
ok(fragSource.contains("0.5"),
diff --git a/browser/devtools/shadereditor/test/browser_webgl-actor-test-14.js b/browser/devtools/shadereditor/test/browser_webgl-actor-test-14.js
index 95ae1e0cb43..9f40ba32859 100644
--- a/browser/devtools/shadereditor/test/browser_webgl-actor-test-14.js
+++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-14.js
@@ -28,9 +28,9 @@ function ifWebGLSupported() {
yield ensurePixelIs(front, { x: 127, y: 127 }, { r: 0, g: 255, b: 255, a: 255 }, true, "#canvas2");
ok(true, "The first fragment shader was changed.");
- let oldFragSource = yield secondFragmentShader.getText();
- let newFragSource = oldFragSource.replace("vec4(uColor", "vec4(0.75, 0.75, 0.75");
- let status = yield secondFragmentShader.compile(newFragSource);
+ oldFragSource = yield secondFragmentShader.getText();
+ newFragSource = oldFragSource.replace("vec4(uColor", "vec4(0.75, 0.75, 0.75");
+ status = yield secondFragmentShader.compile(newFragSource);
ok(!status,
"The second new fragment shader source was compiled without errors.");
diff --git a/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js b/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
index 85ebc77f123..6da8a94cfe2 100644
--- a/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
+++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-16.js
@@ -32,7 +32,7 @@ function ifWebGLSupported() {
navigate(target, MULTIPLE_CONTEXTS_URL);
let [secondProgram, thirdProgram] = yield getPrograms(front, 2);
- let programs = yield front.getPrograms();
+ programs = yield front.getPrograms();
is(programs.length, 2,
"The second and third programs should be returned by a call to getPrograms().");
is(programs[0], secondProgram,
@@ -40,7 +40,7 @@ function ifWebGLSupported() {
is(programs[1], thirdProgram,
"The third programs was correctly retrieved from the cache.");
- let allPrograms = yield front._getAllPrograms();
+ allPrograms = yield front._getAllPrograms();
is(allPrograms.length, 3,
"Should be three programs in cache.");
@@ -53,11 +53,11 @@ function ifWebGLSupported() {
reload(target);
yield promise.all([programsLinked, globalDestroyed, globalCreated]);
- let allPrograms = yield front._getAllPrograms();
+ allPrograms = yield front._getAllPrograms();
is(allPrograms.length, 3,
"Should be 3 programs total in cache.");
- let programs = yield front.getPrograms();
+ programs = yield front.getPrograms();
is(programs.length, 1,
"There should be 1 cached program actor now.");
@@ -68,18 +68,18 @@ function ifWebGLSupported() {
yield navigateInHistory(target, "forward");
- let globalDestroyed = once(front, "global-created");
- let globalCreated = once(front, "global-destroyed");
- let programsLinked = getPrograms(front, 2);
+ globalDestroyed = once(front, "global-created");
+ globalCreated = once(front, "global-destroyed");
+ programsLinked = getPrograms(front, 2);
reload(target);
yield promise.all([programsLinked, globalDestroyed, globalCreated]);
- let allPrograms = yield front._getAllPrograms();
+ allPrograms = yield front._getAllPrograms();
is(allPrograms.length, 3,
"Should be 3 programs total in cache.");
- let programs = yield front.getPrograms();
+ programs = yield front.getPrograms();
is(programs.length, 2,
"There should be 2 cached program actors now.");
diff --git a/browser/devtools/shadereditor/test/browser_webgl-actor-test-18.js b/browser/devtools/shadereditor/test/browser_webgl-actor-test-18.js
index 89b39626165..3d6ff9b1898 100644
--- a/browser/devtools/shadereditor/test/browser_webgl-actor-test-18.js
+++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-18.js
@@ -20,7 +20,7 @@ function ifWebGLSupported() {
is(pixel.b, 0, "correct `b` value for first canvas.")
is(pixel.a, 255, "correct `a` value for first canvas.")
- let pixel = yield front.getPixel({ selector: "#canvas2", position: { x: 0, y: 0 }});
+ pixel = yield front.getPixel({ selector: "#canvas2", position: { x: 0, y: 0 }});
is(pixel.r, 0, "correct `r` value for second canvas.")
is(pixel.g, 255, "correct `g` value for second canvas.")
is(pixel.b, 255, "correct `b` value for second canvas.")
diff --git a/browser/devtools/shared/test/browser_cubic-bezier-02.js b/browser/devtools/shared/test/browser_cubic-bezier-02.js
index 550ec0b6bcc..dc46f835a22 100644
--- a/browser/devtools/shared/test/browser_cubic-bezier-02.js
+++ b/browser/devtools/shared/test/browser_cubic-bezier-02.js
@@ -45,7 +45,7 @@ function* pointsCanBeDragged(widget) {
is(bezier.P1[1], 1, "The new P1 progress coordinate is correct");
info("Listening for the update event");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
info("Generating a mousedown/move/up on P2");
widget._onPointMouseDown({target: widget.p2});
@@ -54,7 +54,7 @@ function* pointsCanBeDragged(widget) {
EventUtils.synthesizeMouse(content.document.documentElement, 200, 300,
{type: "mouseup"}, content.window);
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P2[0], 1, "The new P2 time coordinate is correct");
is(bezier.P2[1], 0, "The new P2 progress coordinate is correct");
}
@@ -76,12 +76,12 @@ function* curveCanBeClicked(widget) {
is(bezier.P2[1], 0, "P2 progress coordinate remained unchanged");
info("Listening for the update event");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
info("Click close to P2");
widget._onCurveClick({pageX: 150, pageY: 250});
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P2[0], 0.75, "The new P2 time coordinate is correct");
is(bezier.P2[1], 0.25, "The new P2 progress coordinate is correct");
is(bezier.P1[0], 0.25, "P1 time coordinate remained unchanged");
@@ -99,45 +99,45 @@ function* pointsCanBeMovedWithKeyboard(widget) {
is(bezier.P1[1], 0.75, "The new P1 progress coordinate is correct");
info("Moving P1 to the left, fast");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p1, 37, true));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P1[0], 0.085, "The new P1 time coordinate is correct");
is(bezier.P1[1], 0.75, "The new P1 progress coordinate is correct");
info("Moving P1 to the right, fast");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p1, 39, true));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P1[0], 0.235, "The new P1 time coordinate is correct");
is(bezier.P1[1], 0.75, "The new P1 progress coordinate is correct");
info("Moving P1 to the bottom");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p1, 40));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P1[0], 0.235, "The new P1 time coordinate is correct");
is(bezier.P1[1], 0.735, "The new P1 progress coordinate is correct");
info("Moving P1 to the bottom, fast");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p1, 40, true));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P1[0], 0.235, "The new P1 time coordinate is correct");
is(bezier.P1[1], 0.585, "The new P1 progress coordinate is correct");
info("Moving P1 to the top, fast");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p1, 38, true));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P1[0], 0.235, "The new P1 time coordinate is correct");
is(bezier.P1[1], 0.735, "The new P1 progress coordinate is correct");
info("Checking that keyboard events also work with P2");
info("Moving P2 to the left");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget._onPointKeyDown(getKeyEvent(widget.p2, 37));
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
is(bezier.P2[0], 0.735, "The new P2 time coordinate is correct");
is(bezier.P2[1], 0.25, "The new P2 progress coordinate is correct");
}
diff --git a/browser/devtools/shared/test/browser_cubic-bezier-03.js b/browser/devtools/shared/test/browser_cubic-bezier-03.js
index 8b19f347276..93d21a0d35e 100644
--- a/browser/devtools/shared/test/browser_cubic-bezier-03.js
+++ b/browser/devtools/shared/test/browser_cubic-bezier-03.js
@@ -55,9 +55,9 @@ function* coordinatesCanBeChangedByProvidingAValue(widget) {
is(bezier.P2[1], 1, "The new P2 progress coordinate is correct");
info("Setting a custom cubic-bezier css value");
- let onUpdated = widget.once("updated");
+ onUpdated = widget.once("updated");
widget.cssCubicBezierValue = "cubic-bezier(.25,-0.5, 1, 1.45)";
- let bezier = yield onUpdated;
+ bezier = yield onUpdated;
ok(true, "The updated event was fired as a result of setting cssValue");
is(bezier.P1[0], .25, "The new P1 time coordinate is correct");
diff --git a/browser/devtools/shared/test/browser_layoutHelpers-getBoxQuads.js b/browser/devtools/shared/test/browser_layoutHelpers-getBoxQuads.js
index ed66bccd203..af5360699b5 100644
--- a/browser/devtools/shared/test/browser_layoutHelpers-getBoxQuads.js
+++ b/browser/devtools/shared/test/browser_layoutHelpers-getBoxQuads.js
@@ -171,7 +171,7 @@ function takesScrollingIntoAccount(doc, helper) {
scrolledNode.scrollTop = 0;
subScrolledNode.scrollTop = 0;
- let quad = helper.getAdjustedQuads(innerNode, "content");
+ quad = helper.getAdjustedQuads(innerNode, "content");
is(quad.p1.x, 0, "p1.x of the scrolled node is correct after scrolling up");
is(quad.p1.y, 0, "p1.y of the scrolled node is correct after scrolling up");
}
diff --git a/browser/devtools/shared/test/browser_outputparser.js b/browser/devtools/shared/test/browser_outputparser.js
index eee8f2add33..d49f8b67604 100644
--- a/browser/devtools/shared/test/browser_outputparser.js
+++ b/browser/devtools/shared/test/browser_outputparser.js
@@ -42,7 +42,7 @@ function testParseCssProperty() {
target.innerHTML = "";
- let frag = parser.parseCssProperty("background-image", "linear-gradient(to right, #F60 10%, rgba(0,0,0,1))", {
+ frag = parser.parseCssProperty("background-image", "linear-gradient(to right, #F60 10%, rgba(0,0,0,1))", {
colorSwatchClass: "test-colorswatch",
colorClass: "test-color"
});
diff --git a/browser/devtools/shared/test/browser_tableWidget_basic.js b/browser/devtools/shared/test/browser_tableWidget_basic.js
index 9d9840ec5d2..ba0ac4c8363 100644
--- a/browser/devtools/shared/test/browser_tableWidget_basic.js
+++ b/browser/devtools/shared/test/browser_tableWidget_basic.js
@@ -339,12 +339,12 @@ function testAPI() {
// Calling it again should sort by it in descending manner
table.sortBy("col2");
- let cell = table.tbody.children[2].firstChild.lastChild.previousSibling;
+ cell = table.tbody.children[2].firstChild.lastChild.previousSibling;
checkDescendingOrder(cell);
// Calling it again should sort by it in ascending manner
table.sortBy("col2");
- let cell = table.tbody.children[2].firstChild.children[2];
+ cell = table.tbody.children[2].firstChild.children[2];
checkAscendingOrder(cell);
table.clear();
@@ -352,13 +352,13 @@ function testAPI() {
// testing if sorting works should sort by ascending manner
table.sortBy("col4");
- let cell = table.tbody.children[6].firstChild.children[1];
+ cell = table.tbody.children[6].firstChild.children[1];
is(cell.textContent, "domnode", "DOMNode sorted correctly");
checkAscendingOrder(cell.nextSibling);
// Calling it again should sort it in descending order
table.sortBy("col4");
- let cell = table.tbody.children[6].firstChild.children[9];
+ cell = table.tbody.children[6].firstChild.children[9];
is(cell.textContent, "domnode", "DOMNode sorted correctly");
checkDescendingOrder(cell.previousSibling);
}
diff --git a/browser/devtools/shared/test/browser_tableWidget_keyboard_interaction.js b/browser/devtools/shared/test/browser_tableWidget_keyboard_interaction.js
index 04e7ce91a1f..0ec5355e029 100644
--- a/browser/devtools/shared/test/browser_tableWidget_keyboard_interaction.js
+++ b/browser/devtools/shared/test/browser_tableWidget_keyboard_interaction.js
@@ -147,7 +147,7 @@ let testKeyboardInteraction = Task.async(function*() {
info("Pressing down key to select next row");
event = table.once(TableWidget.EVENTS.ROW_SELECTED);
EventUtils.sendKey("DOWN", doc.defaultView);
- let id = yield event;
+ id = yield event;
is(id, "id2", "Correct row was selected after pressing down");
ok(node.classList.contains("theme-selected"), "row has selected class");
let nodes = doc.querySelectorAll(".theme-selected");
@@ -166,7 +166,7 @@ let testKeyboardInteraction = Task.async(function*() {
id = yield event;
is(id, "id3", "Correct row was selected after pressing down");
ok(node.classList.contains("theme-selected"), "row has selected class");
- let nodes = doc.querySelectorAll(".theme-selected");
+ nodes = doc.querySelectorAll(".theme-selected");
for (let i = 0; i < nodes.length; i++) {
is(nodes[i].getAttribute("data-id"), "id3",
"Correct cell selected in all columns");
@@ -183,7 +183,7 @@ let testKeyboardInteraction = Task.async(function*() {
id = yield event;
is(id, "id2", "Correct row was selected after pressing down");
ok(node.classList.contains("theme-selected"), "row has selected class");
- let nodes = doc.querySelectorAll(".theme-selected");
+ nodes = doc.querySelectorAll(".theme-selected");
for (let i = 0; i < nodes.length; i++) {
is(nodes[i].getAttribute("data-id"), "id2",
"Correct cell selected in all columns");
@@ -202,7 +202,7 @@ let testKeyboardInteraction = Task.async(function*() {
id = yield event;
is(id, "id1", "Correct row was selected after pressing down");
ok(node.classList.contains("theme-selected"), "row has selected class");
- let nodes = doc.querySelectorAll(".theme-selected");
+ nodes = doc.querySelectorAll(".theme-selected");
for (let i = 0; i < nodes.length; i++) {
is(nodes[i].getAttribute("data-id"), "id1",
"Correct cell selected in all columns");
@@ -219,7 +219,7 @@ let testKeyboardInteraction = Task.async(function*() {
id = yield event;
is(id, "id9", "Correct row was selected after pressing down");
ok(node.classList.contains("theme-selected"), "row has selected class");
- let nodes = doc.querySelectorAll(".theme-selected");
+ nodes = doc.querySelectorAll(".theme-selected");
for (let i = 0; i < nodes.length; i++) {
is(nodes[i].getAttribute("data-id"), "id9",
"Correct cell selected in all columns");
diff --git a/browser/devtools/shared/test/browser_tableWidget_mouse_interaction.js b/browser/devtools/shared/test/browser_tableWidget_mouse_interaction.js
index 39a03de4cc4..efdc8ee0721 100644
--- a/browser/devtools/shared/test/browser_tableWidget_mouse_interaction.js
+++ b/browser/devtools/shared/test/browser_tableWidget_mouse_interaction.js
@@ -147,13 +147,13 @@ let testMouseInteraction = Task.async(function*() {
is(id, "id1", "Correct row was selected");
info("clicking on third row to select it");
- let event = table.once(TableWidget.EVENTS.ROW_SELECTED);
+ event = table.once(TableWidget.EVENTS.ROW_SELECTED);
let node2 = table.tbody.firstChild.firstChild.children[3];
// node should not have selected class
ok(!node2.classList.contains("theme-selected"),
"New node should not have selected class before clicking");
click(node2);
- let id = yield event;
+ id = yield event;
ok(node2.classList.contains("theme-selected"),
"New node has selected class after clicking");
is(id, "id3", "Correct table path is emitted for new node")
@@ -162,15 +162,15 @@ let testMouseInteraction = Task.async(function*() {
"Old node should not have selected class after the click on new node");
// clicking on table header to sort by it
- let event = table.once(TableWidget.EVENTS.COLUMN_SORTED);
- let node = table.tbody.children[6].firstChild.children[0];
+ event = table.once(TableWidget.EVENTS.COLUMN_SORTED);
+ node = table.tbody.children[6].firstChild.children[0];
info("clicking on the 4th coulmn header to sort the table by it");
ok(!node.hasAttribute("sorted"),
"Node should not have sorted attribute before clicking");
ok(doc.querySelector("[sorted]"), "Although, something else should be sorted on");
isnot(doc.querySelector("[sorted]"), node, "Which is not equal to this node");
click(node);
- let id = yield event;
+ id = yield event;
is(id, "col4", "Correct column was sorted on");
ok(node.hasAttribute("sorted"),
"Node should now have sorted attribute after clicking");
@@ -181,13 +181,13 @@ let testMouseInteraction = Task.async(function*() {
// test context menu opening.
// hiding second column
// event listener for popupshown
- let event = Promise.defer();
+ event = Promise.defer();
table.menupopup.addEventListener("popupshown", function onPopupShown(e) {
table.menupopup.removeEventListener("popupshown", onPopupShown);
event.resolve();
})
info("right clicking on the first column header");
- let node = table.tbody.firstChild.firstChild.firstChild;
+ node = table.tbody.firstChild.firstChild.firstChild;
click(node, 2);
yield event.promise;
is(table.menupopup.querySelectorAll("[disabled]").length, 1,
@@ -197,52 +197,52 @@ let testMouseInteraction = Task.async(function*() {
"Which is the unique column");
// popup should be open now
// clicking on second column label
- let event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
- let node = table.menupopup.querySelector("[data-id='col2']");
+ event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
+ node = table.menupopup.querySelector("[data-id='col2']");
info("selecting to hide the second column");
ok(!table.tbody.children[2].hasAttribute("hidden"),
"Column is not hidden before hiding it");
click(node);
- let id = yield event;
+ id = yield event;
is(id, "col2", "Correct column was triggered to be hidden");
is(table.tbody.children[2].getAttribute("hidden"), "true",
"Column is hidden after hiding it");
// hiding third column
// event listener for popupshown
- let event = Promise.defer();
+ event = Promise.defer();
table.menupopup.addEventListener("popupshown", function onPopupShown(e) {
table.menupopup.removeEventListener("popupshown", onPopupShown);
event.resolve();
})
info("right clicking on the first column header");
- let node = table.tbody.firstChild.firstChild.firstChild;
+ node = table.tbody.firstChild.firstChild.firstChild;
click(node, 2);
yield event.promise;
is(table.menupopup.querySelectorAll("[disabled]").length, 1,
"Only 1 menuitem is disabled");
// popup should be open now
// clicking on second column label
- let event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
- let node = table.menupopup.querySelector("[data-id='col3']");
+ event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
+ node = table.menupopup.querySelector("[data-id='col3']");
info("selecting to hide the second column");
ok(!table.tbody.children[4].hasAttribute("hidden"),
"Column is not hidden before hiding it");
click(node);
- let id = yield event;
+ id = yield event;
is(id, "col3", "Correct column was triggered to be hidden");
is(table.tbody.children[4].getAttribute("hidden"), "true",
"Column is hidden after hiding it");
// opening again to see if 2 items are disabled now
// event listener for popupshown
- let event = Promise.defer();
+ event = Promise.defer();
table.menupopup.addEventListener("popupshown", function onPopupShown(e) {
table.menupopup.removeEventListener("popupshown", onPopupShown);
event.resolve();
})
info("right clicking on the first column header");
- let node = table.tbody.firstChild.firstChild.firstChild;
+ node = table.tbody.firstChild.firstChild.firstChild;
click(node, 2);
yield event.promise;
is(table.menupopup.querySelectorAll("[disabled]").length, 2,
@@ -257,37 +257,37 @@ let testMouseInteraction = Task.async(function*() {
// showing back 2nd column
// popup should be open now
// clicking on second column label
- let event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
- let node = table.menupopup.querySelector("[data-id='col2']");
+ event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
+ node = table.menupopup.querySelector("[data-id='col2']");
info("selecting to hide the second column");
is(table.tbody.children[2].getAttribute("hidden"), "true",
"Column is hidden before unhiding it");
click(node);
- let id = yield event;
+ id = yield event;
is(id, "col2", "Correct column was triggered to be hidden");
ok(!table.tbody.children[2].hasAttribute("hidden"),
"Column is not hidden after unhiding it");
// showing back 3rd column
// event listener for popupshown
- let event = Promise.defer();
+ event = Promise.defer();
table.menupopup.addEventListener("popupshown", function onPopupShown(e) {
table.menupopup.removeEventListener("popupshown", onPopupShown);
event.resolve();
})
info("right clicking on the first column header");
- let node = table.tbody.firstChild.firstChild.firstChild;
+ node = table.tbody.firstChild.firstChild.firstChild;
click(node, 2);
yield event.promise;
// popup should be open now
// clicking on second column label
- let event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
- let node = table.menupopup.querySelector("[data-id='col3']");
+ event = table.once(TableWidget.EVENTS.HEADER_CONTEXT_MENU);
+ node = table.menupopup.querySelector("[data-id='col3']");
info("selecting to hide the second column");
is(table.tbody.children[4].getAttribute("hidden"), "true",
"Column is hidden before unhiding it");
click(node);
- let id = yield event;
+ id = yield event;
is(id, "col3", "Correct column was triggered to be hidden");
ok(!table.tbody.children[4].hasAttribute("hidden"),
"Column is not hidden after unhiding it");
diff --git a/browser/devtools/shared/test/browser_treeWidget_keyboard_interaction.js b/browser/devtools/shared/test/browser_treeWidget_keyboard_interaction.js
index 9668020ca1d..6a7a5b492d7 100644
--- a/browser/devtools/shared/test/browser_treeWidget_keyboard_interaction.js
+++ b/browser/devtools/shared/test/browser_treeWidget_keyboard_interaction.js
@@ -124,7 +124,7 @@ let testKeyboardInteraction = Task.async(function*() {
event = Promise.defer();
tree.once("select", pass);
EventUtils.sendKey("DOWN", content);
- let [name, data, attachment] = yield event.promise;
+ [name, data, attachment] = yield event.promise;
is(data.length, 2, "Correct level item was selected after second down keypress");
is(data[0], "level1", "Correct parent level");
is(data[1], "level2", "Correct second level");
@@ -133,7 +133,7 @@ let testKeyboardInteraction = Task.async(function*() {
event = Promise.defer();
tree.once("select", pass);
EventUtils.sendKey("DOWN", content);
- let [name, data, attachment] = yield event.promise;
+ [name, data, attachment] = yield event.promise;
is(data.length, 3, "Correct level item was selected after third down keypress");
is(data[0], "level1", "Correct parent level");
is(data[1], "level2", "Correct second level");
@@ -143,7 +143,7 @@ let testKeyboardInteraction = Task.async(function*() {
event = Promise.defer();
tree.once("select", pass);
EventUtils.sendKey("DOWN", content);
- let [name, data, attachment] = yield event.promise;
+ [name, data, attachment] = yield event.promise;
is(data.length, 2, "Correct level item was selected after fourth down keypress");
is(data[0], "level1", "Correct parent level");
is(data[1], "level2-1", "Correct second level");
@@ -173,7 +173,7 @@ let testKeyboardInteraction = Task.async(function*() {
node = tree.root.children.firstChild.nextSibling.firstChild;
ok(node.hasAttribute("expanded"), "Parent is expanded");
EventUtils.sendKey("LEFT", content);
- let [name, data] = yield event.promise;
+ [name, data] = yield event.promise;
is(data.length, 3, "Correct level item was selected after second left keypress");
is(data[0], "level1", "Correct parent level");
is(data[1], "level2", "Correct second level");
@@ -186,7 +186,7 @@ let testKeyboardInteraction = Task.async(function*() {
event = Promise.defer();
tree.once("select", pass);
EventUtils.sendKey("DOWN", content);
- let [name, data, attachment] = yield event.promise;
+ [name, data, attachment] = yield event.promise;
is(data.length, 2, "Correct level item was selected after fifth down keypress");
is(data[0], "level1", "Correct parent level");
is(data[1], "level2-1", "Correct second level");
diff --git a/browser/devtools/shared/test/browser_treeWidget_mouse_interaction.js b/browser/devtools/shared/test/browser_treeWidget_mouse_interaction.js
index ef99dd6ddfe..ca18deb08a1 100644
--- a/browser/devtools/shared/test/browser_treeWidget_mouse_interaction.js
+++ b/browser/devtools/shared/test/browser_treeWidget_mouse_interaction.js
@@ -123,7 +123,7 @@ let testMouseInteraction = Task.async(function*() {
ok(!node2.hasAttribute("expanded"), "New node is not expanded before clicking");
tree.once("select", pass);
click(node2);
- let [name, data, attachment] = yield event.promise;
+ [name, data, attachment] = yield event.promise;
ok(node2.classList.contains("theme-selected"),
"New node has selected class after clicking");
is(data[0], "level1", "Correct tree path is emitted for new node")
diff --git a/browser/devtools/shared/test/unit/test_bezierCanvas.js b/browser/devtools/shared/test/unit/test_bezierCanvas.js
index fde8f4be49b..9dd945a22ae 100644
--- a/browser/devtools/shared/test/unit/test_bezierCanvas.js
+++ b/browser/devtools/shared/test/unit/test_bezierCanvas.js
@@ -35,8 +35,8 @@ function offsetsGetterReturnsData() {
do_print("offsets getter returns data according to current padding");
- let b = new BezierCanvas(getCanvasMock(), getCubicBezier(), [0, 0]);
- let offsets = b.offsets;
+ b = new BezierCanvas(getCanvasMock(), getCubicBezier(), [0, 0]);
+ offsets = b.offsets;
do_check_eq(offsets[0].top, "400px");
do_check_eq(offsets[0].left, "0px");
@@ -57,14 +57,14 @@ function convertsOffsetsToCoordinates() {
do_check_eq(coordinates[0], 0);
do_check_eq(coordinates[1], 1.5);
- let coordinates = b.offsetsToCoordinates({style: {
+ coordinates = b.offsetsToCoordinates({style: {
left: "0px",
top: "300px"
}});
do_check_eq(coordinates[0], 0);
do_check_eq(coordinates[1], 0);
- let coordinates = b.offsetsToCoordinates({style: {
+ coordinates = b.offsetsToCoordinates({style: {
left: "200px",
top: "100px"
}});
diff --git a/browser/devtools/shared/test/unit/test_cubicBezier.js b/browser/devtools/shared/test/unit/test_cubicBezier.js
index 1be674384d5..3b282353682 100644
--- a/browser/devtools/shared/test/unit/test_cubicBezier.js
+++ b/browser/devtools/shared/test/unit/test_cubicBezier.js
@@ -63,8 +63,8 @@ function coordinatesToStringOutputsAString() {
let string = c.coordinates.toString();
do_check_eq(string, "0,1,.5,-2");
- let c = new CubicBezier([1, 1, 1, 1]);
- let string = c.coordinates.toString();
+ c = new CubicBezier([1, 1, 1, 1]);
+ string = c.coordinates.toString();
do_check_eq(string, "1,1,1,1");
}
diff --git a/browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.js b/browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.js
index 56c21b09239..ffd8fdc06b4 100644
--- a/browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.js
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_cmd_edit.js
@@ -193,7 +193,7 @@ function spawnTest() {
},
]);
- let toolbox = gDevTools.getToolbox(options.target);
+ toolbox = gDevTools.getToolbox(options.target);
ok(toolbox != null, "toolbox is open");
let styleEditor = toolbox.getCurrentPanel();
diff --git a/browser/devtools/styleeditor/test/browser_styleeditor_new.js b/browser/devtools/styleeditor/test/browser_styleeditor_new.js
index 238e40acfa9..453dc58f06b 100644
--- a/browser/devtools/styleeditor/test/browser_styleeditor_new.js
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_new.js
@@ -73,7 +73,7 @@ function testInitialState(aEditor) {
ok(aEditor.sourceEditor.hasFocus(), "new editor has focus");
- let summary = aEditor.summary;
+ summary = aEditor.summary;
let ruleCount = summary.querySelector(".stylesheet-rule-count").textContent;
is(parseInt(ruleCount), 0,
"new editor initially shows 0 rules");
diff --git a/browser/devtools/styleinspector/test/browser_computedview_keybindings_02.js b/browser/devtools/styleinspector/test/browser_computedview_keybindings_02.js
index b3e23fa7a04..60a9dea4d6c 100644
--- a/browser/devtools/styleinspector/test/browser_computedview_keybindings_02.js
+++ b/browser/devtools/styleinspector/test/browser_computedview_keybindings_02.js
@@ -50,7 +50,7 @@ let test = asyncTest(function*() {
ok(secondStyleSelectors.childNodes.length > 0, "Matched selectors expanded");
info("Tab back up and test the same thing, with space");
- let onExpanded = inspector.once("computed-view-property-expanded");
+ onExpanded = inspector.once("computed-view-property-expanded");
EventUtils.synthesizeKey("VK_TAB", {shiftKey: true});
EventUtils.synthesizeKey("VK_SPACE", {});
yield onExpanded;
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_add-property-cancel_02.js b/browser/devtools/styleinspector/test/browser_ruleview_add-property-cancel_02.js
index 6e7ba61cbd1..bb7b047caa0 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_add-property-cancel_02.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_add-property-cancel_02.js
@@ -45,7 +45,7 @@ let test = asyncTest(function*() {
info("Pressing return to commit and focus the new value field");
let onValueFocus = once(elementRuleEditor.element, "focus", true);
- let onModifications = elementRuleEditor.rule._applyingModifications;
+ onModifications = elementRuleEditor.rule._applyingModifications;
EventUtils.synthesizeKey("VK_RETURN", {}, view.doc.defaultView);
yield onValueFocus;
yield onModifications;
@@ -62,7 +62,7 @@ let test = asyncTest(function*() {
editor.input.value = "red";
info("Escaping out of the field");
- let onModifications = elementRuleEditor.rule._applyingModifications;
+ onModifications = elementRuleEditor.rule._applyingModifications;
EventUtils.synthesizeKey("VK_ESCAPE", {}, view.doc.defaultView);
yield onModifications;
@@ -70,7 +70,7 @@ let test = asyncTest(function*() {
let focusedElement = inplaceEditor(elementRuleEditor.rule.textProps[0].editor.valueSpan).input;
is(focusedElement, focusedElement.ownerDocument.activeElement, "Correct element has focus");
- let onModifications = elementRuleEditor.rule._applyingModifications;
+ onModifications = elementRuleEditor.rule._applyingModifications;
EventUtils.synthesizeKey("VK_ESCAPE", {}, view.doc.defaultView);
yield onModifications;
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_add-property_01.js b/browser/devtools/styleinspector/test/browser_ruleview_add-property_01.js
index bf4f2733766..009962a37d7 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_add-property_01.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_add-property_01.js
@@ -68,7 +68,7 @@ function* testCreateNew(view) {
info("Entering a value and bluring the field to expect a rule change");
editor.input.value = "#XYZ";
let onBlur = once(editor.input, "blur");
- let onModifications = elementRuleEditor.rule._applyingModifications;
+ onModifications = elementRuleEditor.rule._applyingModifications;
editor.input.blur();
yield onBlur;
yield onModifications;
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_01.js b/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_01.js
index 05ed35995f8..f1995bceff0 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_01.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_01.js
@@ -54,7 +54,7 @@ function* testImageTooltipAfterColorChange(swatch, url, ruleView) {
// After a color change, the property is re-populated, we need to get the new
// dom node
url = getRuleViewProperty(ruleView, "body", "background").valueSpan.querySelector(".theme-link");
- let anchor = yield isHoverTooltipTarget(ruleView.tooltips.previewTooltip, url);
+ anchor = yield isHoverTooltipTarget(ruleView.tooltips.previewTooltip, url);
ok(anchor, "The image preview tooltip is shown on the url span");
is(anchor, url, "The anchor returned by the showOnHover callback is correct");
}
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_02.js b/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_02.js
index 5ada0738a14..28bd8729cad 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_02.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_colorpicker-and-image-tooltip_02.js
@@ -49,13 +49,13 @@ function* testColorChangeIsntRevertedWhenOtherTooltipIsShown(ruleView) {
info("Open the image preview tooltip");
let value = getRuleViewProperty(ruleView, "body", "background").valueSpan;
let url = value.querySelector(".theme-link");
- let onShown = ruleView.tooltips.previewTooltip.once("shown");
+ onShown = ruleView.tooltips.previewTooltip.once("shown");
let anchor = yield isHoverTooltipTarget(ruleView.tooltips.previewTooltip, url);
ruleView.tooltips.previewTooltip.show(anchor);
yield onShown;
info("Image tooltip is shown, verify that the swatch is still correct");
- let swatch = value.querySelector(".ruleview-colorswatch");
+ swatch = value.querySelector(".ruleview-colorswatch");
is(swatch.style.backgroundColor, "rgb(0, 0, 0)", "The swatch's color is correct");
is(swatch.nextSibling.textContent, "#000", "The color name is correct");
}
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_edit-property_01.js b/browser/devtools/styleinspector/test/browser_ruleview_edit-property_01.js
index b10ab5b7853..86f366d82d7 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_edit-property_01.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_edit-property_01.js
@@ -65,7 +65,7 @@ function* testEditProperty(view, name, value, browser) {
info("Entering a new value, including ; to commit and blur the value");
let onBlur = once(input, "blur");
- let onModifications = idRuleEditor.rule._applyingModifications;
+ onModifications = idRuleEditor.rule._applyingModifications;
for (let ch of value + ";") {
EventUtils.sendChar(ch, view.doc.defaultView);
}
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_edit-property_02.js b/browser/devtools/styleinspector/test/browser_ruleview_edit-property_02.js
index 3d967e612a0..90ac30a0a43 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_edit-property_02.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_edit-property_02.js
@@ -76,7 +76,7 @@ function* testEditProperty(inspector, ruleView) {
is(newValue, "red", "border-color should have been set.");
info("Entering property name \"color\" followed by a colon to focus the value");
- let onFocus = once(idRuleEditor.element, "focus", true);
+ onFocus = once(idRuleEditor.element, "focus", true);
for (let ch of "color:") {
EventUtils.sendChar(ch, ruleView.doc.defaultView);
}
@@ -86,7 +86,7 @@ function* testEditProperty(inspector, ruleView) {
editor = inplaceEditor(ruleView.doc.activeElement);
info("Entering a value following by a semi-colon to commit it");
- let onBlur = once(editor.input, "blur");
+ onBlur = once(editor.input, "blur");
for (let ch of "red;") {
EventUtils.sendChar(ch, ruleView.doc.defaultView);
}
@@ -119,7 +119,7 @@ function* testDisableProperty(inspector, ruleView) {
propEditor.enable.click();
yield idRuleEditor.rule._applyingModifications;
- let newValue = yield executeInContent("Test:GetRulePropertyValue", {
+ newValue = yield executeInContent("Test:GetRulePropertyValue", {
styleSheetIndex: 0,
ruleIndex: 0,
name: "border-color"
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_keybindings.js b/browser/devtools/styleinspector/test/browser_ruleview_keybindings.js
index 42448f1b78e..4db7a4d3b90 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_keybindings.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_keybindings.js
@@ -27,17 +27,17 @@ let test = asyncTest(function*() {
editor.input.value = "color";
info("Typing ENTER to focus the next field: property value");
- let onFocus = once(brace.parentNode, "focus", true);
+ onFocus = once(brace.parentNode, "focus", true);
EventUtils.sendKey("return");
yield onFocus;
ok(true, "The value field was focused");
info("Entering a property value");
- let editor = getCurrentInplaceEditor(view);
+ editor = getCurrentInplaceEditor(view);
editor.input.value = "green";
info("Typing ENTER again should focus a new property name");
- let onFocus = once(brace.parentNode, "focus", true);
+ onFocus = once(brace.parentNode, "focus", true);
EventUtils.sendKey("return");
yield onFocus;
ok(true, "The new property name field was focused");
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_pseudo-element.js b/browser/devtools/styleinspector/test/browser_ruleview_pseudo-element.js
index 612185bd92f..b4246209035 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_pseudo-element.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_pseudo-element.js
@@ -110,7 +110,7 @@ function* testTopLeft(inspector, view) {
is(defaultView.getComputedStyle(element).getPropertyValue("padding-top"), "32px",
"Added property should not apply to element");
- let firstProp = elementRuleView.addProperty("background-color", "rgb(0, 0, 255)", "");
+ firstProp = elementRuleView.addProperty("background-color", "rgb(0, 0, 255)", "");
yield elementRule._applyingModifications;
is(defaultView.getComputedStyle(element).getPropertyValue("background-color"), "rgb(0, 0, 255)",
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_01.js b/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_01.js
index 9c66c36dbdc..db9a71f048e 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_01.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-attribute-change_01.js
@@ -38,7 +38,7 @@ let test = asyncTest(function*() {
checkRuleViewContent(view, ["element", ".testclass"]);
info("Reverting the ID attribute change");
- let ruleViewRefreshed = inspector.once("rule-view-refreshed");
+ ruleViewRefreshed = inspector.once("rule-view-refreshed");
testElement.setAttribute("id", "testid");
yield ruleViewRefreshed;
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-style-change.js b/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-style-change.js
index 1848267f616..5f7b8938f22 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-style-change.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_refresh-on-style-change.js
@@ -34,7 +34,7 @@ let test = asyncTest(function*() {
is(textAlign, "right", "The rule view shows the new text align.");
let color = getRuleViewPropertyValue(view, "element", "color");
is(color, "lightgoldenrodyellow", "The rule view shows the new color.")
- let fontSize = getRuleViewPropertyValue(view, "element", "font-size");
+ fontSize = getRuleViewPropertyValue(view, "element", "font-size");
is(fontSize, "3em", "The rule view shows the new font size.");
let textTransform = getRuleViewPropertyValue(view, "element", "text-transform");
is(textTransform, "uppercase", "The rule view shows the new text transform.");
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_selector-highlighter_02.js b/browser/devtools/styleinspector/test/browser_ruleview_selector-highlighter_02.js
index bf19c63a959..f51698a57d5 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_selector-highlighter_02.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_selector-highlighter_02.js
@@ -63,7 +63,7 @@ let test = asyncTest(function*() {
info("Checking that the right NodeFront reference and options are passed");
yield selectNode("p", inspector);
- let selectorSpan = getRuleViewSelector(rView, "p").firstElementChild;
+ selectorSpan = getRuleViewSelector(rView, "p").firstElementChild;
rView.highlighters._onMouseMove({target: selectorSpan});
is(HighlighterFront.nodeFront.tagName, "P",
"The right NodeFront is passed to the highlighter (1)");
@@ -71,7 +71,7 @@ let test = asyncTest(function*() {
"The right selector option is passed to the highlighter (1)");
yield selectNode("body", inspector);
- let selectorSpan = getRuleViewSelector(rView, "body").firstElementChild;
+ selectorSpan = getRuleViewSelector(rView, "body").firstElementChild;
rView.highlighters._onMouseMove({target: selectorSpan});
is(HighlighterFront.nodeFront.tagName, "BODY",
"The right NodeFront is passed to the highlighter (2)");
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_urls-clickable.js b/browser/devtools/styleinspector/test/browser_ruleview_urls-clickable.js
index 3427e82800b..24b710041e6 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_urls-clickable.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_urls-clickable.js
@@ -31,7 +31,7 @@ function* selectNodes(inspector, ruleView) {
is(relativeLink.getAttribute("href"), TEST_IMAGE, "href matches");
yield selectNode(relative2, inspector);
- let relativeLink = ruleView.doc.querySelector(".ruleview-propertycontainer a");
+ relativeLink = ruleView.doc.querySelector(".ruleview-propertycontainer a");
ok(relativeLink, "Link exists for relative2 node");
is(relativeLink.getAttribute("href"), TEST_IMAGE, "href matches");
diff --git a/browser/devtools/styleinspector/test/browser_ruleview_user-agent-styles.js b/browser/devtools/styleinspector/test/browser_ruleview_user-agent-styles.js
index 9c7e526f890..e9a9cf591c2 100644
--- a/browser/devtools/styleinspector/test/browser_ruleview_user-agent-styles.js
+++ b/browser/devtools/styleinspector/test/browser_ruleview_user-agent-styles.js
@@ -66,16 +66,16 @@ function* userAgentStylesVisible(inspector, view) {
yield selectNode("pre", inspector);
yield compareAppliedStylesWithUI(inspector, view, "ua");
- let userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
- let uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
+ userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
+ uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
is (userRules.length, 1, "Correct number of user rules");
ok (uaRules.length > 0, "Has UA rules");
yield selectNode("a", inspector);
yield compareAppliedStylesWithUI(inspector, view, "ua");
- let userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
- let uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
+ userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
+ uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
is (userRules.length, 1, "Correct number of user rules");
ok (userRules.some(rule=> rule.matchedSelectors.length === 0),
@@ -103,16 +103,16 @@ function* userAgentStylesNotVisible(inspector, view) {
yield selectNode("pre", inspector);
yield compareAppliedStylesWithUI(inspector, view);
- let userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
- let uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
+ userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
+ uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
is (userRules.length, 1, "Correct number of user rules");
is (uaRules.length, 0, "No UA rules");
yield selectNode("a", inspector);
yield compareAppliedStylesWithUI(inspector, view);
- let userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
- let uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
+ userRules = view._elementStyle.rules.filter(rule=>rule.editor.isEditable);
+ uaRules = view._elementStyle.rules.filter(rule=>!rule.editor.isEditable);
is (userRules.length, 1, "Correct number of user rules");
is (uaRules.length, 0, "No UA rules");
}
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_csslogic-content-stylesheets.js b/browser/devtools/styleinspector/test/browser_styleinspector_csslogic-content-stylesheets.js
index 6284e52c04a..30a702bfea6 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_csslogic-content-stylesheets.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_csslogic-content-stylesheets.js
@@ -34,8 +34,8 @@ let test = asyncTest(function*() {
allowXUL();
yield addTab(TEST_URI_XUL);
- let {toolbox, inspector, view} = yield openRuleView();
- let target = getNode("#target");
+ ({toolbox, inspector, view} = yield openRuleView());
+ target = getNode("#target");
yield selectNode("#target", inspector);
yield checkSheets(target);
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-background-image.js b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-background-image.js
index d8e0c4962a8..a9fcd6d7d61 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-background-image.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-background-image.js
@@ -42,7 +42,7 @@ let test = asyncTest(function*() {
yield testTooltipAppearsEvenInEditMode(view);
info("Switching over to the computed-view");
- let {view} = yield openComputedView();
+ ({view} = yield openComputedView());
info("Testing that the background-image computed style has a tooltip too");
yield testComputedView(view);
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-closes-on-new-selection.js b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-closes-on-new-selection.js
index c6abd58ede7..57da400761c 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-closes-on-new-selection.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-closes-on-new-selection.js
@@ -16,7 +16,7 @@ let test = asyncTest(function*() {
yield testRuleView(view, inspector);
info("Testing computed view tooltip closes on new selection");
- let {view} = yield openComputedView();
+ ({view} = yield openComputedView());
yield testComputedView(view, inspector);
});
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-longhand-fontfamily.js b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-longhand-fontfamily.js
index fcfa74e20f4..57877824fcb 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-longhand-fontfamily.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_tooltip-longhand-fontfamily.js
@@ -32,7 +32,7 @@ let test = asyncTest(function*() {
yield testRuleView(view, inspector.selection.nodeFront);
info("Opening the computed view");
- let {toolbox, inspector, view} = yield openComputedView();
+ ({toolbox, inspector, view} = yield openComputedView());
yield testComputedView(view, inspector.selection.nodeFront);
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-01.js b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-01.js
index 5183857aced..04bda255d44 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-01.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-01.js
@@ -31,12 +31,12 @@ let test = asyncTest(function*() {
is(h, h2, "The same instance of highlighter is returned everytime in the rule-view");
let {view: cView} = yield openComputedView();
- let overlay = cView.highlighters;
+ overlay = cView.highlighters;
ok(!overlay.highlighters[TYPE], "No highlighter exists in the computed-view");
- let h = yield overlay._getHighlighter(TYPE);
+ h = yield overlay._getHighlighter(TYPE);
ok(overlay.highlighters[TYPE], "The highlighter has been created in the computed-view");
is(h, overlay.highlighters[TYPE], "The right highlighter has been created");
- let h2 = yield overlay._getHighlighter(TYPE);
+ h2 = yield overlay._getHighlighter(TYPE);
is(h, h2, "The same instance of highlighter is returned everytime in the computed-view");
});
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-02.js b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-02.js
index 826615fcc8e..24d64936aae 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-02.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-02.js
@@ -36,28 +36,28 @@ let test = asyncTest(function*() {
ok(!hs.promises[TYPE], "No highlighter is being created in the rule-view (2)");
info("Faking a mousemove on a transform property");
- let {valueSpan} = getRuleViewProperty(rView, "body", "transform");
+ ({valueSpan} = getRuleViewProperty(rView, "body", "transform"));
hs._onMouseMove({target: valueSpan});
ok(hs.promises[TYPE], "The highlighter is being initialized");
let h = yield hs.promises[TYPE];
is(h, hs.highlighters[TYPE], "The initialized highlighter is the right one");
let {view: cView} = yield openComputedView();
- let hs = cView.highlighters;
+ hs = cView.highlighters;
ok(!hs.highlighters[TYPE], "No highlighter exists in the computed-view (1)");
ok(!hs.promises[TYPE], "No highlighter is being created in the computed-view (1)");
info("Faking a mousemove on a non-transform property");
- let {valueSpan} = getComputedViewProperty(cView, "color");
+ ({valueSpan} = getComputedViewProperty(cView, "color"));
hs._onMouseMove({target: valueSpan});
ok(!hs.highlighters[TYPE], "No highlighter exists in the computed-view (2)");
ok(!hs.promises[TYPE], "No highlighter is being created in the computed-view (2)");
info("Faking a mousemove on a transform property");
- let {valueSpan} = getComputedViewProperty(cView, "transform");
+ ({valueSpan} = getComputedViewProperty(cView, "transform"));
hs._onMouseMove({target: valueSpan});
ok(hs.promises[TYPE], "The highlighter is being initialized");
- let h = yield hs.promises[TYPE];
+ h = yield hs.promises[TYPE];
is(h, hs.highlighters[TYPE], "The initialized highlighter is the right one");
});
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-03.js b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-03.js
index eb57783dd60..8c90118b741 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-03.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-03.js
@@ -73,19 +73,19 @@ let test = asyncTest(function*() {
info("Checking that the right NodeFront reference is passed");
yield selectNode("html", inspector);
- let {valueSpan} = getRuleViewProperty(rView, "html", "transform");
+ ({valueSpan} = getRuleViewProperty(rView, "html", "transform"));
rView.highlighters._onMouseMove({target: valueSpan});
is(HighlighterFront.nodeFront.tagName, "HTML",
"The right NodeFront is passed to the highlighter (1)");
yield selectNode("body", inspector);
- let {valueSpan} = getRuleViewProperty(rView, "body", "transform");
+ ({valueSpan} = getRuleViewProperty(rView, "body", "transform"));
rView.highlighters._onMouseMove({target: valueSpan});
is(HighlighterFront.nodeFront.tagName, "BODY",
"The right NodeFront is passed to the highlighter (2)");
info("Checking that the highlighter gets hidden when hovering a non-transform property");
- let {valueSpan} = getRuleViewProperty(rView, "body", "color");
+ ({valueSpan} = getRuleViewProperty(rView, "body", "color"));
rView.highlighters._onMouseMove({target: valueSpan});
ok(!HighlighterFront.isShown, "The highlighter is hidden");
});
diff --git a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-04.js b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-04.js
index 7b39122e349..9d5dbfed69a 100644
--- a/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-04.js
+++ b/browser/devtools/styleinspector/test/browser_styleinspector_transform-highlighter-04.js
@@ -48,13 +48,13 @@ let test = asyncTest(function*() {
yield classRuleEditor.rule._applyingModifications;
info("Faking a mousemove on the disabled property");
- let {valueSpan} = getRuleViewProperty(rView, ".test", "transform");
+ ({valueSpan} = getRuleViewProperty(rView, ".test", "transform"));
hs._onMouseMove({target: valueSpan});
ok(!hs.highlighters[TYPE], "No highlighter was created for the disabled property");
ok(!hs.promises[TYPE], "And no highlighter is being initialized either");
info("Faking a mousemove on the now unoverriden property");
- let {valueSpan} = getRuleViewProperty(rView, "div", "transform");
+ ({valueSpan} = getRuleViewProperty(rView, "div", "transform"));
hs._onMouseMove({target: valueSpan});
ok(hs.promises[TYPE], "The highlighter is being initialized now");
let h = yield hs.promises[TYPE];
diff --git a/browser/devtools/webaudioeditor/test/browser_audionode-actor-get-set-param.js b/browser/devtools/webaudioeditor/test/browser_audionode-actor-get-set-param.js
index 3122b8a433b..da17619edb6 100644
--- a/browser/devtools/webaudioeditor/test/browser_audionode-actor-get-set-param.js
+++ b/browser/devtools/webaudioeditor/test/browser_audionode-actor-get-set-param.js
@@ -19,17 +19,17 @@ function spawnTest () {
let type = yield oscNode.getParam("type");
ise(type, "sine", "AudioNode:getParam correctly fetches non-AudioParam");
- let type = yield oscNode.getParam("not-a-valid-param");
+ type = yield oscNode.getParam("not-a-valid-param");
ok(type.type === "undefined",
"AudioNode:getParam correctly returns a grip value for `undefined` for an invalid param.");
let resSuccess = yield oscNode.setParam("frequency", 220);
- let freq = yield oscNode.getParam("frequency");
+ freq = yield oscNode.getParam("frequency");
ise(freq, 220, "AudioNode:setParam correctly sets a `number` AudioParam");
is(resSuccess, undefined, "AudioNode:setParam returns undefined for correctly set AudioParam");
resSuccess = yield oscNode.setParam("type", "square");
- let type = yield oscNode.getParam("type");
+ type = yield oscNode.getParam("type");
ise(type, "square", "AudioNode:setParam correctly sets a `string` non-AudioParam");
is(resSuccess, undefined, "AudioNode:setParam returns undefined for correctly set AudioParam");
diff --git a/browser/devtools/webaudioeditor/test/browser_wa_reset-01.js b/browser/devtools/webaudioeditor/test/browser_wa_reset-01.js
index b5769daeaac..e7151dfe7ad 100644
--- a/browser/devtools/webaudioeditor/test/browser_wa_reset-01.js
+++ b/browser/devtools/webaudioeditor/test/browser_wa_reset-01.js
@@ -40,8 +40,8 @@ function spawnTest() {
is($("#content").hidden, false,
"The tool's content should not be hidden anymore.");
- let navigating = once(target, "will-navigate");
- let started = once(gFront, "start-context");
+ navigating = once(target, "will-navigate");
+ started = once(gFront, "start-context");
reload(target);
diff --git a/browser/devtools/webaudioeditor/test/browser_wa_reset-02.js b/browser/devtools/webaudioeditor/test/browser_wa_reset-02.js
index 29fe7bbd0ab..79242c2a16e 100644
--- a/browser/devtools/webaudioeditor/test/browser_wa_reset-02.js
+++ b/browser/devtools/webaudioeditor/test/browser_wa_reset-02.js
@@ -24,12 +24,12 @@ function spawnTest() {
reload(target);
- let [actors] = yield Promise.all([
+ [actors] = yield Promise.all([
get3(gFront, "create-node"),
waitForGraphRendered(panelWin, 3, 2)
]);
- let { nodes, edges } = countGraphObjects(panelWin);
+ ({ nodes, edges } = countGraphObjects(panelWin));
ise(nodes, 3, "after reload, should only be 3 nodes.");
ise(edges, 2, "after reload, should only be 2 edges.");
diff --git a/browser/devtools/webaudioeditor/test/browser_wa_reset-03.js b/browser/devtools/webaudioeditor/test/browser_wa_reset-03.js
index 04c1092dfb1..96dd9c95a4c 100644
--- a/browser/devtools/webaudioeditor/test/browser_wa_reset-03.js
+++ b/browser/devtools/webaudioeditor/test/browser_wa_reset-03.js
@@ -29,11 +29,11 @@ function spawnTest() {
reload(target);
- let [actors] = yield Promise.all([
+ [actors] = yield Promise.all([
get3(gFront, "create-node"),
waitForGraphRendered(panelWin, 3, 2)
]);
- let nodeIds = actors.map(actor => actor.actorID);
+ nodeIds = actors.map(actor => actor.actorID);
ok(!WebAudioInspectorView.isVisible(), "InspectorView hidden on start.");
ise(WebAudioInspectorView.getCurrentAudioNode(), null,
diff --git a/browser/devtools/webaudioeditor/test/browser_wa_reset-04.js b/browser/devtools/webaudioeditor/test/browser_wa_reset-04.js
index 6722980524a..00a1eb92b4d 100644
--- a/browser/devtools/webaudioeditor/test/browser_wa_reset-04.js
+++ b/browser/devtools/webaudioeditor/test/browser_wa_reset-04.js
@@ -37,7 +37,7 @@ function spawnTest() {
is($("#content").hidden, true,
"The tool's content should still be hidden.");
- let navigating = once(target, "will-navigate");
+ navigating = once(target, "will-navigate");
let started = once(gFront, "start-context");
reload(target);
diff --git a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-connect-param.js b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-connect-param.js
index af407822553..7239a8a6e9c 100644
--- a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-connect-param.js
+++ b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-connect-param.js
@@ -7,7 +7,7 @@
function spawnTest () {
let [target, debuggee, front] = yield initBackend(CONNECT_PARAM_URL);
- let [_, _, [destNode, carrierNode, modNode, gainNode], _, connectParam] = yield Promise.all([
+ let [, , [destNode, carrierNode, modNode, gainNode], , connectParam] = yield Promise.all([
front.setup({ reload: true }),
once(front, "start-context"),
getN(front, "create-node", 4),
diff --git a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-destroy-node.js b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-destroy-node.js
index 88dc96be0ac..d6e15952ad3 100644
--- a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-destroy-node.js
+++ b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-destroy-node.js
@@ -9,7 +9,7 @@ function spawnTest () {
let [target, debuggee, front] = yield initBackend(DESTROY_NODES_URL);
let waitUntilDestroyed = getN(front, "destroy-node", 10);
- let [_, _, created] = yield Promise.all([
+ let [, , created] = yield Promise.all([
front.setup({ reload: true }),
once(front, "start-context"),
// Should create 1 destination node and 10 disposable buffer nodes
diff --git a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-simple.js b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-simple.js
index 86dead3bc10..3dd444e571c 100644
--- a/browser/devtools/webaudioeditor/test/browser_webaudio-actor-simple.js
+++ b/browser/devtools/webaudioeditor/test/browser_webaudio-actor-simple.js
@@ -26,7 +26,7 @@ function spawnTest () {
is(source.actorID, oscNode.actorID, "WebAudioActor:connect-node returns correct actor with ID on source (osc->gain)");
is(dest.actorID, gainNode.actorID, "WebAudioActor:connect-node returns correct actor with ID on dest (osc->gain)");
- let { source, dest } = connect2;
+ ({ source, dest } = connect2);
is(source.actorID, gainNode.actorID, "WebAudioActor:connect-node returns correct actor with ID on source (gain->dest)");
is(dest.actorID, destNode.actorID, "WebAudioActor:connect-node returns correct actor with ID on dest (gain->dest)");
diff --git a/browser/devtools/webconsole/test/browser_webconsole_bug_586388_select_all.js b/browser/devtools/webconsole/test/browser_webconsole_bug_586388_select_all.js
index 649d468f033..ec30d62bc6a 100644
--- a/browser/devtools/webconsole/test/browser_webconsole_bug_586388_select_all.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_bug_586388_select_all.js
@@ -80,7 +80,7 @@ function test() {
selectAllItem.doCommand();
- let selectedCount = hud.ui.output.getSelectedMessages().length;
+ selectedCount = hud.ui.output.getSelectedMessages().length;
is(selectedCount, outputNode.childNodes.length,
"all console messages are selected after performing a select-all " +
"operation from the context menu");
diff --git a/browser/devtools/webconsole/test/browser_webconsole_network_panel.js b/browser/devtools/webconsole/test/browser_webconsole_network_panel.js
index 65ea953f720..82f9d1ef976 100644
--- a/browser/devtools/webconsole/test/browser_webconsole_network_panel.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_network_panel.js
@@ -360,7 +360,7 @@ function testGen() {
responseImageCached: true
});
- let imgNode = networkPanel.document.getElementById("responseImageCachedNode");
+ imgNode = networkPanel.document.getElementById("responseImageCachedNode");
is(imgNode.getAttribute("src"), "data:image/png;base64," + TEST_IMG_BASE64,
"Displayed image is correct");
diff --git a/browser/devtools/webconsole/test/browser_webconsole_split.js b/browser/devtools/webconsole/test/browser_webconsole_split.js
index e7d5fa8c5a2..30ae9ce7085 100644
--- a/browser/devtools/webconsole/test/browser_webconsole_split.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_split.js
@@ -117,7 +117,7 @@ function test()
// Make sure splitting console does nothing while webconsole is opened
toolbox.toggleSplitConsole();
- let currentUIState = getCurrentUIState();
+ currentUIState = getCurrentUIState();
ok (!currentUIState.splitterVisibility, "Splitter is hidden when console is opened.");
is (currentUIState.deckHeight, 0, "Deck has a height == 0 when console is opened.");
@@ -176,7 +176,7 @@ function test()
toolbox.toggleSplitConsole();
- let currentUIState = getCurrentUIState();
+ currentUIState = getCurrentUIState();
ok (currentUIState.splitterVisibility, "Splitter is visible when console is split");
ok (currentUIState.deckHeight > 0, "Deck has a height > 0 when console is split");
@@ -189,7 +189,7 @@ function test()
toolbox.toggleSplitConsole();
- let currentUIState = getCurrentUIState();
+ currentUIState = getCurrentUIState();
ok (!currentUIState.splitterVisibility, "Splitter is hidden after toggling");
is (currentUIState.deckHeight, currentUIState.containerHeight, "Deck has a height > 0 after toggling");
diff --git a/browser/devtools/webconsole/test/browser_webconsole_split_focus.js b/browser/devtools/webconsole/test/browser_webconsole_split_focus.js
index 3246311074c..51d7b9a79a9 100644
--- a/browser/devtools/webconsole/test/browser_webconsole_split_focus.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_split_focus.js
@@ -33,7 +33,7 @@ function test() {
ok(toolbox.splitConsole, "Split console is now visible");
// Use the binding element since jsterm.inputNode is a XUL textarea element.
- let activeElement = getActiveElement(toolbox.doc);
+ activeElement = getActiveElement(toolbox.doc);
activeElement = activeElement.ownerDocument.getBindingParent(activeElement);
let inputNode = toolbox.getPanel("webconsole").hud.jsterm.inputNode;
is(activeElement, inputNode, "Split console input is focused by default");
@@ -42,7 +42,7 @@ function test() {
info ("Making sure that the search box is refocused after closing the split console");
// Use the binding element since inspector.searchBox is a XUL element.
- let activeElement = getActiveElement(inspector.panelDoc);
+ activeElement = getActiveElement(inspector.panelDoc);
activeElement = activeElement.ownerDocument.getBindingParent(activeElement);
is (activeElement, inspector.searchBox, "Search box is focused");
diff --git a/browser/devtools/webconsole/test/browser_webconsole_split_persist.js b/browser/devtools/webconsole/test/browser_webconsole_split_persist.js
index d08ee0e4968..d9116f2b1ce 100644
--- a/browser/devtools/webconsole/test/browser_webconsole_split_persist.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_split_persist.js
@@ -30,8 +30,8 @@ function test() {
yield toolbox.destroy();
info("Opening a tab while there is a true user setting on split console pref");
- let {tab} = yield loadTab(TEST_URI);
- let target = TargetFactory.forTab(tab);
+ ({tab} = yield loadTab(TEST_URI));
+ target = TargetFactory.forTab(tab);
toolbox = yield gDevTools.showToolbox(target, "inspector");
ok(toolbox.splitConsole, "Split console is visible by default.");
@@ -63,8 +63,8 @@ function test() {
info("Opening a tab while there is a false user setting on split console pref");
- let {tab} = yield loadTab(TEST_URI);
- let target = TargetFactory.forTab(tab);
+ ({tab} = yield loadTab(TEST_URI));
+ target = TargetFactory.forTab(tab);
toolbox = yield gDevTools.showToolbox(target, "inspector");
ok(!toolbox.splitConsole, "Split console is hidden by default.");
diff --git a/browser/devtools/webconsole/test/head.js b/browser/devtools/webconsole/test/head.js
index 0a38806fb77..fee01e8797d 100644
--- a/browser/devtools/webconsole/test/head.js
+++ b/browser/devtools/webconsole/test/head.js
@@ -348,19 +348,19 @@ function finishTest()
return;
}
- let hud = HUDService.getHudByWindow(content);
- if (!hud) {
+ let contentHud = HUDService.getHudByWindow(content);
+ if (!contentHud) {
finish();
return;
}
- if (hud.jsterm) {
- hud.jsterm.clearOutput(true);
+ if (contentHud.jsterm) {
+ contentHud.jsterm.clearOutput(true);
}
- closeConsole(hud.target.tab, finish);
+ closeConsole(contentHud.target.tab, finish);
- hud = null;
+ contentHud = null;
}
function tearDown()
diff --git a/browser/devtools/webide/test/test_newapp.html b/browser/devtools/webide/test/test_newapp.html
index c727507ae01..29c6db8b652 100644
--- a/browser/devtools/webide/test/test_newapp.html
+++ b/browser/devtools/webide/test/test_newapp.html
@@ -28,7 +28,7 @@
});
let project = win.AppManager.selectedProject;
- let tmpDir = FileUtils.getDir("TmpD", ["webidetmpapp"]);
+ tmpDir = FileUtils.getDir("TmpD", ["webidetmpapp"]);
ok(tmpDir.isDirectory(), "Directory created");
is(project.location, tmpDir.path, "Location is valid (and lowercase)");
is(project.name, "webideTmpApp", "name field has been updated");
diff --git a/browser/experiments/test/xpcshell/test_activate.js b/browser/experiments/test/xpcshell/test_activate.js
index cf702d67e79..931901a8a72 100644
--- a/browser/experiments/test/xpcshell/test_activate.js
+++ b/browser/experiments/test/xpcshell/test_activate.js
@@ -126,7 +126,7 @@ add_task(function* test_startStop() {
Assert.equal(addons[0].userDisabled, false, "The add-on is not userDisabled.");
Assert.ok(addons[0].isActive, "The add-on is active.");
- let result = yield experiment.shouldStop();
+ result = yield experiment.shouldStop();
Assert.equal(result.shouldStop, false, "shouldStop should be false.");
Assert.equal(experiment.enabled, true, "Experiment should be enabled.");
addons = yield getExperimentAddons();
@@ -156,7 +156,7 @@ add_task(function* test_startStop() {
// Make sure "ignore hashes" mode works.
gPolicy.ignoreHashes = true;
- let changes = yield experiment.start();
+ changes = yield experiment.start();
Assert.equal(changes, experiment.ADDON_CHANGE_INSTALL);
yield experiment.stop();
gPolicy.ignoreHashes = false;
diff --git a/browser/experiments/test/xpcshell/test_api.js b/browser/experiments/test/xpcshell/test_api.js
index 16e66ac6974..c5da2a40c3c 100644
--- a/browser/experiments/test/xpcshell/test_api.js
+++ b/browser/experiments/test/xpcshell/test_api.js
@@ -1632,7 +1632,7 @@ add_task(function* test_foreignUninstallAndRestart() {
yield AddonTestUtils.uninstallAddonByID(EXPERIMENT1_ID);
yield experiments._mainTask;
- let addons = yield getExperimentAddons();
+ addons = yield getExperimentAddons();
Assert.equal(addons.length, 0, "Experiment add-on should have been removed.");
experimentList = yield experiments.getExperiments();
@@ -1645,7 +1645,7 @@ add_task(function* test_foreignUninstallAndRestart() {
experiments = new Experiments.Experiments(gPolicy);
yield experiments.updateManifest();
- let addons = yield getExperimentAddons();
+ addons = yield getExperimentAddons();
Assert.equal(addons.length, 0, "No experiment add-ons installed.");
experimentList = yield experiments.getExperiments();
diff --git a/browser/modules/test/browser_ContentSearch.js b/browser/modules/test/browser_ContentSearch.js
index c4629860dee..eea890af130 100644
--- a/browser/modules/test/browser_ContentSearch.js
+++ b/browser/modules/test/browser_ContentSearch.js
@@ -59,7 +59,7 @@ add_task(function* SetCurrentEngine() {
});
Services.search.currentEngine = oldCurrentEngine;
- let msg = yield waitForTestMsg("CurrentEngine");
+ msg = yield waitForTestMsg("CurrentEngine");
checkMsg(msg, {
type: "CurrentEngine",
data: yield currentEngineObj(oldCurrentEngine),
diff --git a/browser/modules/test/browser_UITour2.js b/browser/modules/test/browser_UITour2.js
index 3bc9eed7e76..40efaaaae1f 100644
--- a/browser/modules/test/browser_UITour2.js
+++ b/browser/modules/test/browser_UITour2.js
@@ -78,7 +78,7 @@ let tests = [
gContentAPI.removePinnedTab();
isnot(gBrowser.tabs[0], tab, "First tab should not be the pinned tab");
- let tabInfo = UITour.pinnedTabs.get(window);
+ tabInfo = UITour.pinnedTabs.get(window);
is(tabInfo, null, "Should not have any data about the removed pinned tab after removePinnedTab()");
gContentAPI.addPinnedTab();
diff --git a/caps/tests/mochitest/test_disableScript.xul b/caps/tests/mochitest/test_disableScript.xul
index 4e77091ae9a..fe9dc11047f 100644
--- a/caps/tests/mochitest/test_disableScript.xul
+++ b/caps/tests/mochitest/test_disableScript.xul
@@ -98,7 +98,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=840488
}
function testList(expectEnabled, win, list, idx) {
- let idx = idx || 0;
+ idx = idx || 0;
let deferred = Promise.defer();
let target = list[idx] + path;
info("Testing scriptability for: " + target + ". expecting " + expectEnabled);
diff --git a/dom/cellbroadcast/tests/marionette/test_cellbroadcast_gsm.js b/dom/cellbroadcast/tests/marionette/test_cellbroadcast_gsm.js
index 57059c09086..213122c1dac 100644
--- a/dom/cellbroadcast/tests/marionette/test_cellbroadcast_gsm.js
+++ b/dom/cellbroadcast/tests/marionette/test_cellbroadcast_gsm.js
@@ -114,7 +114,7 @@ function testReceiving_GSM_Language_and_Body() {
let promise = Promise.resolve();
let testDcs = [];
- dcs = 0;
+ let dcs = 0;
while (dcs <= 0xFF) {
try {
let dcsInfo = { dcs: dcs };
@@ -123,7 +123,7 @@ function testReceiving_GSM_Language_and_Body() {
testDcs.push(dcsInfo);
} catch (e) {
// Unsupported coding group, skip.
- let dcs = (dcs & PDU_DCS_CODING_GROUP_BITS) + 0x10;
+ dcs = (dcs & PDU_DCS_CODING_GROUP_BITS) + 0x10;
}
dcs++;
}
diff --git a/dom/cellbroadcast/tests/marionette/test_cellbroadcast_umts.js b/dom/cellbroadcast/tests/marionette/test_cellbroadcast_umts.js
index 2df6b3d1a75..c0daf399ca9 100644
--- a/dom/cellbroadcast/tests/marionette/test_cellbroadcast_umts.js
+++ b/dom/cellbroadcast/tests/marionette/test_cellbroadcast_umts.js
@@ -130,7 +130,7 @@ function testReceiving_UMTS_Language_and_Body() {
let promise = Promise.resolve();
let testDcs = [];
- dcs = 0;
+ let dcs = 0;
while (dcs <= 0xFF) {
try {
let dcsInfo = { dcs: dcs };
@@ -139,7 +139,7 @@ function testReceiving_UMTS_Language_and_Body() {
testDcs.push(dcsInfo);
} catch (e) {
// Unsupported coding group, skip.
- let dcs = (dcs & PDU_DCS_CODING_GROUP_BITS) + 0x10;
+ dcs = (dcs & PDU_DCS_CODING_GROUP_BITS) + 0x10;
}
dcs++;
}
diff --git a/dom/indexedDB/test/error_events_abort_transactions_iframe.html b/dom/indexedDB/test/error_events_abort_transactions_iframe.html
index 858cf241c5a..7be3de42fd7 100644
--- a/dom/indexedDB/test/error_events_abort_transactions_iframe.html
+++ b/dom/indexedDB/test/error_events_abort_transactions_iframe.html
@@ -96,12 +96,12 @@
is(event.target.error.name, "ConstraintError", "Right error");
is(originalRequest.transaction, null, "request.transaction should now be null");
- let request = indexedDB.open(window.location.pathname, 1);
+ request = indexedDB.open(window.location.pathname, 1);
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
- let db = event.target.result;
+ db = event.target.result;
event.target.transaction.oncomplete = grabEventAndContinueHandler;
event.target.transaction.onabort = unexpectedSuccessHandler;
@@ -109,7 +109,7 @@
is(db.version, "1", "Correct version");
is(db.objectStoreNames.length, 0, "Correct objectStoreNames length");
- let objectStore = db.createObjectStore("foo");
+ objectStore = db.createObjectStore("foo");
is(db.objectStoreNames.length, 1, "Correct objectStoreNames length");
ok(db.objectStoreNames.contains("foo"), "Has correct objectStore");
@@ -153,14 +153,14 @@
db.close();
- let request = indexedDB.open(window.location.pathname, 2);
+ request = indexedDB.open(window.location.pathname, 2);
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
- let db = event.target.result;
+ db = event.target.result;
- let trans = event.target.transaction;
+ trans = event.target.transaction;
trans.oncomplete = unexpectedSuccessHandler;
is(db.version, "2", "Correct version");
@@ -169,7 +169,7 @@
ok(db.objectStoreNames.contains("bar"), "Has correct objectStore");
let createdObjectStore = db.createObjectStore("newlyCreated");
- let objectStore = trans.objectStore("foo");
+ objectStore = trans.objectStore("foo");
let deletedObjectStore = trans.objectStore("bar");
deletedObjectStore.deleteIndex("foo");
db.deleteObjectStore("bar");
diff --git a/dom/indexedDB/test/exceptions_in_events_iframe.html b/dom/indexedDB/test/exceptions_in_events_iframe.html
index 9f8a6be2f9c..24929648ebb 100644
--- a/dom/indexedDB/test/exceptions_in_events_iframe.html
+++ b/dom/indexedDB/test/exceptions_in_events_iframe.html
@@ -76,13 +76,13 @@
// Test 2: Throwing during a request's success handler should abort the
// transaction.
- let request = indexedDB.open(window.location.pathname, 1);
+ request = indexedDB.open(window.location.pathname, 1);
request.onerror = errorHandler;
request.onblocked = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
request.onsuccess = unexpectedSuccessHandler;
let openrequest = request;
- let event = yield undefined;
+ event = yield undefined;
request.onupgradeneeded = unexpectedSuccessHandler;
@@ -121,17 +121,17 @@
// Test 3: Throwing during a request's error handler should abort the
// transaction, even if preventDefault is called on the error event.
- let request = indexedDB.open(window.location.pathname, 1);
+ request = indexedDB.open(window.location.pathname, 1);
request.onerror = errorHandler;
request.onblocked = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
request.onsuccess = unexpectedSuccessHandler;
- let openrequest = request;
- let event = yield undefined;
+ openrequest = request;
+ event = yield undefined;
request.onupgradeneeded = unexpectedSuccessHandler;
- let db = event.target.result;
+ db = event.target.result;
db.onerror = function(event) {
event.preventDefault();
};
@@ -142,7 +142,7 @@
is(db.version, 1, "Correct version");
is(db.objectStoreNames.length, 0, "Correct objectStoreNames length");
- let objectStore = db.createObjectStore("foo");
+ objectStore = db.createObjectStore("foo");
is(db.objectStoreNames.length, 1, "Correct objectStoreNames length");
ok(db.objectStoreNames.contains("foo"), "Has correct objectStore");
diff --git a/dom/indexedDB/test/test_blob_simple.html b/dom/indexedDB/test/test_blob_simple.html
index 9714788ec41..e7e4407197a 100644
--- a/dom/indexedDB/test/test_blob_simple.html
+++ b/dom/indexedDB/test/test_blob_simple.html
@@ -132,7 +132,7 @@
info("Retrieve blobs from database via index and verify contents.");
- let index = db.transaction("foo").objectStore("foo").index("foo");
+ index = db.transaction("foo").objectStore("foo").index("foo");
index.get(INDEX_KEY).onsuccess = grabEventAndContinueHandler;
event = yield undefined;
@@ -248,16 +248,16 @@
info("Stored blob back into database");
- let fileReader = new FileReader();
+ fileReader = new FileReader();
fileReader.onload = grabEventAndContinueHandler;
fileReader.readAsText(blobFromDB);
event = yield undefined;
is(event.target.result, BLOB_DATA.join(""), "Correct text");
- let blobURL = URL.createObjectURL(blobFromDB);
+ blobURL = URL.createObjectURL(blobFromDB);
- let xhr = new XMLHttpRequest();
+ xhr = new XMLHttpRequest();
xhr.open("GET", blobURL);
xhr.onload = grabEventAndContinueHandler;
xhr.send();
diff --git a/dom/indexedDB/test/test_file_transaction_abort.html b/dom/indexedDB/test/test_file_transaction_abort.html
index 2f1911751b0..8c08c65177d 100644
--- a/dom/indexedDB/test/test_file_transaction_abort.html
+++ b/dom/indexedDB/test/test_file_transaction_abort.html
@@ -32,14 +32,14 @@
let db = event.target.result;
db.onerror = errorHandler;
- objectStore = db.createObjectStore(objectStoreName, { });
+ let objectStore = db.createObjectStore(objectStoreName, { });
event = yield undefined;
is(event.type, "success", "Got correct event type");
let trans = db.transaction([objectStoreName], READ_WRITE);
- let objectStore = trans.objectStore(objectStoreName);
+ objectStore = trans.objectStore(objectStoreName);
request = objectStore.add(fileData.file, fileData.key);
request.onsuccess = grabEventAndContinueHandler;
diff --git a/dom/indexedDB/test/test_filehandle_store_snapshot.html b/dom/indexedDB/test/test_filehandle_store_snapshot.html
index 12d48de91f8..82d14256f26 100644
--- a/dom/indexedDB/test/test_filehandle_store_snapshot.html
+++ b/dom/indexedDB/test/test_filehandle_store_snapshot.html
@@ -59,7 +59,7 @@
let file = event.target.result;
let trans = db.transaction([objectStoreName], READ_WRITE);
- let objectStore = trans.objectStore(objectStoreName);
+ objectStore = trans.objectStore(objectStoreName);
request = objectStore.add(file, 42);
request.onsuccess = grabEventAndContinueHandler;
diff --git a/dom/indexedDB/test/test_persistenceType.html b/dom/indexedDB/test/test_persistenceType.html
index 6b164c00217..773a84d6569 100644
--- a/dom/indexedDB/test/test_persistenceType.html
+++ b/dom/indexedDB/test/test_persistenceType.html
@@ -80,7 +80,7 @@
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
request.onsuccess = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.type, "upgradeneeded", "Got correct event type");
diff --git a/dom/indexedDB/test/unit/test_autoIncrement_indexes.js b/dom/indexedDB/test/unit/test_autoIncrement_indexes.js
index 32fc4f693a3..ce2d5d55279 100644
--- a/dom/indexedDB/test/unit/test_autoIncrement_indexes.js
+++ b/dom/indexedDB/test/unit/test_autoIncrement_indexes.js
@@ -31,7 +31,7 @@ function testSteps()
event = yield undefined;
- let objectStore = db.transaction("foo").objectStore("foo");
+ objectStore = db.transaction("foo").objectStore("foo");
let first = objectStore.index("first");
let second = objectStore.index("second");
let third = objectStore.index("third");
diff --git a/dom/indexedDB/test/unit/test_complex_keyPaths.js b/dom/indexedDB/test/unit/test_complex_keyPaths.js
index 95e5ad44a20..24375813d55 100644
--- a/dom/indexedDB/test/unit/test_complex_keyPaths.js
+++ b/dom/indexedDB/test/unit/test_complex_keyPaths.js
@@ -164,8 +164,8 @@ function testSteps()
let store = db.createObjectStore("indexStore");
let indexes = {};
for (let i = 0; i < keyPaths.length; i++) {
- let test = " for index test " + JSON.stringify(info);
let info = keyPaths[i];
+ let test = " for index test " + JSON.stringify(info);
let indexName = JSON.stringify(info.keyPath);
if (!indexes[indexName]) {
try {
diff --git a/dom/indexedDB/test/unit/test_create_index_with_integer_keys.js b/dom/indexedDB/test/unit/test_create_index_with_integer_keys.js
index 3232e4608ab..d14b5041192 100644
--- a/dom/indexedDB/test/unit/test_create_index_with_integer_keys.js
+++ b/dom/indexedDB/test/unit/test_create_index_with_integer_keys.js
@@ -26,10 +26,10 @@ function testSteps()
yield undefined;
db.close();
- let request = indexedDB.open(this.window ? window.location.pathname : "Splendid Test", 2);
+ request = indexedDB.open(this.window ? window.location.pathname : "Splendid Test", 2);
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
let db2 = event.target.result;
db2.onerror = errorHandler;
diff --git a/dom/indexedDB/test/unit/test_create_objectStore.js b/dom/indexedDB/test/unit/test_create_objectStore.js
index 81b753257f7..215723c2692 100644
--- a/dom/indexedDB/test/unit/test_create_objectStore.js
+++ b/dom/indexedDB/test/unit/test_create_objectStore.js
@@ -113,7 +113,6 @@ function testSteps()
is(ex.code, DOMException.INVALID_ACCESS_ERR, "should throw right exception");
// Can't handle autoincrement and array keypath
- let ex;
try {
db.createObjectStore("storefail", { keyPath: ["a"], autoIncrement: true });
}
diff --git a/dom/indexedDB/test/unit/test_deleteDatabase.js b/dom/indexedDB/test/unit/test_deleteDatabase.js
index 270b50a4bdf..7c9f7652258 100644
--- a/dom/indexedDB/test/unit/test_deleteDatabase.js
+++ b/dom/indexedDB/test/unit/test_deleteDatabase.js
@@ -35,7 +35,7 @@ function testSteps()
ok(event.target.result instanceof IDBDatabase, "Result should be a database");
is(db.objectStoreNames.length, 1, "Expect an objectStore here");
- let request = indexedDB.open(name, 10);
+ request = indexedDB.open(name, 10);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
@@ -66,7 +66,7 @@ function testSteps()
db.onversionchange = closeDBs;
db2.onversionchange = closeDBs;
- let request = indexedDB.deleteDatabase(name);
+ request = indexedDB.deleteDatabase(name);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
@@ -78,7 +78,7 @@ function testSteps()
is(event.target, request, "event has right target");
ok(event.target.result === undefined, "event should have no result");
- let request = indexedDB.open(name, 1);
+ request = indexedDB.open(name, 1);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
@@ -87,14 +87,14 @@ function testSteps()
is(event.target.result.objectStoreNames.length, 0, "DB should have no object stores");
- let request = indexedDB.deleteDatabase("thisDatabaseHadBetterNotExist");
+ request = indexedDB.deleteDatabase("thisDatabaseHadBetterNotExist");
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
event = yield undefined;
ok(true, "deleteDatabase on a non-existent database succeeded");
- let request = indexedDB.open("thisDatabaseHadBetterNotExist");
+ request = indexedDB.open("thisDatabaseHadBetterNotExist");
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
diff --git a/dom/indexedDB/test/unit/test_deleteDatabase_interactions.js b/dom/indexedDB/test/unit/test_deleteDatabase_interactions.js
index d15a1efc823..90058e11a8a 100644
--- a/dom/indexedDB/test/unit/test_deleteDatabase_interactions.js
+++ b/dom/indexedDB/test/unit/test_deleteDatabase_interactions.js
@@ -35,7 +35,7 @@ function testSteps()
db.close();
- let request = indexedDB.deleteDatabase(name);
+ request = indexedDB.deleteDatabase(name);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
diff --git a/dom/indexedDB/test/unit/test_index_empty_keyPath.js b/dom/indexedDB/test/unit/test_index_empty_keyPath.js
index a2f9e5a91d2..9fbcfc9c970 100644
--- a/dom/indexedDB/test/unit/test_index_empty_keyPath.js
+++ b/dom/indexedDB/test/unit/test_index_empty_keyPath.js
@@ -47,29 +47,29 @@ function testSteps()
objectStore = trans.objectStore("data");
index = objectStore.index("set");
- let request = index.get("bar");
+ request = index.get("bar");
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.target.result, "bar", "Got correct result");
- let request = objectStore.add("foopy", 4);
+ request = objectStore.add("foopy", 4);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
yield undefined;
- let request = index.get("foopy");
+ request = index.get("foopy");
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.target.result, "foopy", "Got correct result");
- let request = objectStore.add("foopy", 5);
+ request = objectStore.add("foopy", 5);
request.addEventListener("error", new ExpectError("ConstraintError", true));
request.onsuccess = unexpectedSuccessHandler;
diff --git a/dom/indexedDB/test/unit/test_indexes.js b/dom/indexedDB/test/unit/test_indexes.js
index 3b9f73fc588..aaf536febe4 100644
--- a/dom/indexedDB/test/unit/test_indexes.js
+++ b/dom/indexedDB/test/unit/test_indexes.js
@@ -252,7 +252,7 @@ function testSteps()
ok(true, "Test group 5");
keyIndex = 2;
- let keyRange = IDBKeyRange.bound("Bob", "Ron", true);
+ keyRange = IDBKeyRange.bound("Bob", "Ron", true);
request = objectStore.index("name").openKeyCursor(keyRange);
request.onerror = errorHandler;
@@ -278,7 +278,7 @@ function testSteps()
ok(true, "Test group 6");
keyIndex = 1;
- let keyRange = IDBKeyRange.bound("Bob", "Ron", false, true);
+ keyRange = IDBKeyRange.bound("Bob", "Ron", false, true);
request = objectStore.index("name").openKeyCursor(keyRange);
request.onerror = errorHandler;
diff --git a/dom/indexedDB/test/unit/test_multientry.js b/dom/indexedDB/test/unit/test_multientry.js
index cc57a5566eb..dc95acf942c 100644
--- a/dom/indexedDB/test/unit/test_multientry.js
+++ b/dom/indexedDB/test/unit/test_multientry.js
@@ -143,7 +143,6 @@ function testSteps()
index = store.createIndex("myindex", "x", { multiEntry: true, unique: true });
is(index.multiEntry, true, "index created with multiEntry");
- let i;
let indexes;
for (i = 0; i < tests.length; ++i) {
let test = tests[i];
diff --git a/dom/indexedDB/test/unit/test_names_sorted.js b/dom/indexedDB/test/unit/test_names_sorted.js
index 643fec2a8d6..eac03a84a64 100644
--- a/dom/indexedDB/test/unit/test_names_sorted.js
+++ b/dom/indexedDB/test/unit/test_names_sorted.js
@@ -74,15 +74,15 @@ function testSteps()
db.close();
- let request = indexedDB.open(name, 1);
+ request = indexedDB.open(name, 1);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
request.onupgradeneeded = unexpectedSuccessHandler;
- let event = yield undefined;
+ event = yield undefined;
- let db = event.target.result;
+ db = event.target.result;
- let objectStoreNames = []
+ objectStoreNames = []
for (let i = 0; i < objectStoreInfo.length; i++) {
let info = objectStoreInfo[i];
objectStoreNames.push(info.name);
@@ -99,7 +99,7 @@ function testSteps()
}
}
- let trans = db.transaction(objectStoreNames);
+ trans = db.transaction(objectStoreNames);
for (let i = 0; i < objectStoreInfo.length; i++) {
let info = objectStoreInfo[i];
diff --git a/dom/indexedDB/test/unit/test_objectStore_openKeyCursor.js b/dom/indexedDB/test/unit/test_objectStore_openKeyCursor.js
index 6c46cac4e51..747820458b8 100644
--- a/dom/indexedDB/test/unit/test_objectStore_openKeyCursor.js
+++ b/dom/indexedDB/test/unit/test_objectStore_openKeyCursor.js
@@ -327,7 +327,7 @@ function testSteps() {
is(seenKeys.length, allKeys.length - 9, "Saw the right number of keys");
- let match = true;
+ match = true;
for (let i = 0, j = 0; i < seenKeys.length; i++) {
if (seenKeys[i] !== allKeys[i + j]) {
match = false;
@@ -383,7 +383,7 @@ function testSteps() {
is(seenKeys.length, allKeys.length - 9, "Saw the right number of keys");
- let match = true;
+ match = true;
for (let i = 0, j = 0; i < seenKeys.length; i++) {
if (seenKeys[i] !== allKeys[i + j]) {
match = false;
diff --git a/dom/indexedDB/test/unit/test_open_for_principal.js b/dom/indexedDB/test/unit/test_open_for_principal.js
index 19103e32268..0c885194001 100644
--- a/dom/indexedDB/test/unit/test_open_for_principal.js
+++ b/dom/indexedDB/test/unit/test_open_for_principal.js
@@ -56,7 +56,7 @@ function testSteps()
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
request.onsuccess = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.type, "upgradeneeded", "Got correct event type");
diff --git a/dom/indexedDB/test/unit/test_overlapping_transactions.js b/dom/indexedDB/test/unit/test_overlapping_transactions.js
index 6dc58cac45d..2606d7aea51 100644
--- a/dom/indexedDB/test/unit/test_overlapping_transactions.js
+++ b/dom/indexedDB/test/unit/test_overlapping_transactions.js
@@ -22,7 +22,7 @@ function testSteps()
for (let i in objectStores) {
db.createObjectStore(objectStores[i], { autoIncrement: true });
}
- let event = yield undefined;
+ event = yield undefined;
is(db.objectStoreNames.length, objectStores.length,
"Correct objectStoreNames list");
diff --git a/dom/indexedDB/test/unit/test_persistenceType.js b/dom/indexedDB/test/unit/test_persistenceType.js
index 3b8038f626c..2347beda99c 100644
--- a/dom/indexedDB/test/unit/test_persistenceType.js
+++ b/dom/indexedDB/test/unit/test_persistenceType.js
@@ -64,7 +64,7 @@ function testSteps()
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
request.onsuccess = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.type, "success", "Got correct event type");
diff --git a/dom/indexedDB/test/unit/test_remove_objectStore.js b/dom/indexedDB/test/unit/test_remove_objectStore.js
index 81366b122b3..74ae01e8936 100644
--- a/dom/indexedDB/test/unit/test_remove_objectStore.js
+++ b/dom/indexedDB/test/unit/test_remove_objectStore.js
@@ -39,12 +39,12 @@ function testSteps()
db.close();
- let request = indexedDB.open(name, 2);
+ request = indexedDB.open(name, 2);
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
- let db = event.target.result;
+ db = event.target.result;
let trans = event.target.transaction;
let oldObjectStore = trans.objectStore(objectStoreName);
@@ -83,12 +83,12 @@ function testSteps()
db.close();
- let request = indexedDB.open(name, 3);
+ request = indexedDB.open(name, 3);
request.onerror = errorHandler;
request.onupgradeneeded = grabEventAndContinueHandler;
- let event = yield undefined;
+ event = yield undefined;
- let db = event.target.result;
+ db = event.target.result;
objectStore = db.createObjectStore(objectStoreName, { keyPath: "foo" });
diff --git a/dom/indexedDB/test/unit/test_temporary_storage.js b/dom/indexedDB/test/unit/test_temporary_storage.js
index 5ba3609e467..671c8771f3f 100644
--- a/dom/indexedDB/test/unit/test_temporary_storage.js
+++ b/dom/indexedDB/test/unit/test_temporary_storage.js
@@ -200,7 +200,7 @@ function testSteps()
is(event.type, "success", "Got correct event type");
- let db = event.target.result;
+ db = event.target.result;
checkUsage(3);
yield undefined;
diff --git a/dom/indexedDB/test/unit/test_transaction_error.js b/dom/indexedDB/test/unit/test_transaction_error.js
index 8d65a406a6f..c88f4c89faa 100644
--- a/dom/indexedDB/test/unit/test_transaction_error.js
+++ b/dom/indexedDB/test/unit/test_transaction_error.js
@@ -43,7 +43,7 @@ function testSteps() {
info("Adding duplicate entry with preventDefault()");
- let request = objectStore.add(data, dataKey);
+ request = objectStore.add(data, dataKey);
request.onsuccess = unexpectedSuccessHandler;
request.onerror = grabEventAndContinueHandler;
event = yield undefined;
diff --git a/dom/indexedDB/test/unit/test_transaction_ordering.js b/dom/indexedDB/test/unit/test_transaction_ordering.js
index 8cee3fd9531..5e3c2fd742a 100644
--- a/dom/indexedDB/test/unit/test_transaction_ordering.js
+++ b/dom/indexedDB/test/unit/test_transaction_ordering.js
@@ -36,11 +36,11 @@ function testSteps()
yield undefined;
let trans3 = db.transaction("foo", "readonly");
- let request = trans3.objectStore("foo").get(42);
+ request = trans3.objectStore("foo").get(42);
request.onsuccess = grabEventAndContinueHandler;
request.onerror = errorHandler;
- let event = yield undefined;
+ event = yield undefined;
is(event.target.result, "2", "Transactions were ordered properly.");
finishTest();
diff --git a/dom/system/gonk/tests/test_ril_worker_sms_cdma.js b/dom/system/gonk/tests/test_ril_worker_sms_cdma.js
index c98bdfcdf93..459fc9d7722 100644
--- a/dom/system/gonk/tests/test_ril_worker_sms_cdma.js
+++ b/dom/system/gonk/tests/test_ril_worker_sms_cdma.js
@@ -154,7 +154,7 @@ function pduToParcelData(cdmaPduHelper, pdu) {
writeByte(0);
// Bearer Data Length
- let dataLength = pdu.bearerData.length;
+ dataLength = pdu.bearerData.length;
writeByte(dataLength);
// Bearer Data
diff --git a/dom/system/gonk/tests/test_ril_worker_stk.js b/dom/system/gonk/tests/test_ril_worker_stk.js
index 7842402e1da..31de0b58e94 100644
--- a/dom/system/gonk/tests/test_ril_worker_stk.js
+++ b/dom/system/gonk/tests/test_ril_worker_stk.js
@@ -865,7 +865,7 @@ add_test(function test_stk_proactive_command_set_up_menu() {
do_check_eq(tlv.value.typeOfCommand, STK_CMD_SET_UP_MENU);
do_check_eq(tlv.value.commandQualifier, 0x00);
- let menu = stkFactory.createParam(tlv.value, ctlvs);
+ menu = stkFactory.createParam(tlv.value, ctlvs);
do_check_eq(menu.title, "Title");
do_check_eq(menu.items[0].identifier, 1);
do_check_eq(menu.items[0].text, "item 1");
diff --git a/dom/system/tests/marionette/test_proximity_init.js b/dom/system/tests/marionette/test_proximity_init.js
index 7fe55ded455..1a56e6e463f 100644
--- a/dom/system/tests/marionette/test_proximity_init.js
+++ b/dom/system/tests/marionette/test_proximity_init.js
@@ -24,7 +24,7 @@ function testEventInit() {
// Test UserProximityEvent initialization
log("Verifying UserProximityEvent constructor.");
- let event = new UserProximityEvent("userproximity", {near: true});
+ event = new UserProximityEvent("userproximity", {near: true});
is(event.type, "userproximity", "event type");
ok(event.near, "Initialization of UserProximityEvent");
verifyDefaultStatus();
diff --git a/dom/tests/mochitest/chrome/queryCaretRectUnix.html b/dom/tests/mochitest/chrome/queryCaretRectUnix.html
index 1a2d4bd8a49..0e419fc65f1 100644
--- a/dom/tests/mochitest/chrome/queryCaretRectUnix.html
+++ b/dom/tests/mochitest/chrome/queryCaretRectUnix.html
@@ -140,7 +140,7 @@
offset = cp.offset;
input.selectionStart = input.selectionEnd = offset;
- let selection = getSelection(text);
+ selection = getSelection(text);
testCaretPosition(domWinUtils, input.selectionStart, {
min: { left: 390, top: 380 },
diff --git a/dom/tests/mochitest/chrome/queryCaretRectWin.html b/dom/tests/mochitest/chrome/queryCaretRectWin.html
index edbc9337ad2..dadbbd0949a 100644
--- a/dom/tests/mochitest/chrome/queryCaretRectWin.html
+++ b/dom/tests/mochitest/chrome/queryCaretRectWin.html
@@ -149,7 +149,7 @@
offset = cp.offset;
input.selectionStart = input.selectionEnd = offset;
- let selection = getSelection(text);
+ selection = getSelection(text);
testCaretPosition(domWinUtils, input.selectionStart, {
min: { left: 390, top: 380 },
diff --git a/dom/tests/mochitest/chrome/selectAtPoint.html b/dom/tests/mochitest/chrome/selectAtPoint.html
index cfe2e350f77..dcf98c2d6db 100644
--- a/dom/tests/mochitest/chrome/selectAtPoint.html
+++ b/dom/tests/mochitest/chrome/selectAtPoint.html
@@ -113,19 +113,19 @@
checkSelection(document, "SELECT_PARAGRAPH", "ttestselection1 Lorem ipsum dolor sit amet, at duo debet graeci, vivendum vulputate per ut. Ne labore incorrupte vix. Cu copiosae postulant tincidunt ius, in illud appetere contentiones eos. Ei munere officiis assentior pro, nibh decore ius at.");
// Centered on the second character in the sentence div
- let targetPoint = { xPos: rect.left + (charDims.width + (charDims.width / 2)),
- yPos: rect.top + (charDims.height / 2) };
+ targetPoint = { xPos: rect.left + (charDims.width + (charDims.width / 2)),
+ yPos: rect.top + (charDims.height / 2) };
setSingle(dwu, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_CHARACTER);
checkSelection(document, "SELECT_CHARACTER", "te");
setSingle(dwu, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_CLUSTER);
checkSelection(document, "SELECT_CLUSTER", "te");
// Separate character blocks in a word 't(te)s(ts)election1'
- let targetPoint = { xPos: rect.left + (charDims.width + (charDims.width / 2)),
- yPos: rect.top + (charDims.height / 2) };
+ targetPoint = { xPos: rect.left + (charDims.width + (charDims.width / 2)),
+ yPos: rect.top + (charDims.height / 2) };
setStart(dwu, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_CHARACTER);
- let targetPoint = { xPos: rect.left + ((charDims.width * 4) + (charDims.width / 2)),
- yPos: rect.top + (charDims.height / 2) };
+ targetPoint = { xPos: rect.left + ((charDims.width * 4) + (charDims.width / 2)),
+ yPos: rect.top + (charDims.height / 2) };
setEnd(dwu, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_CHARACTER);
if (isLinux || isMac) {
// XXX I think this is a bug, the right hand selection is 4.5 characters over with a
@@ -141,12 +141,12 @@
// Second div in the main page
- let div = document.getElementById("div2");
- let rect = div.getBoundingClientRect();
+ div = document.getElementById("div2");
+ rect = div.getBoundingClientRect();
// Centered on the first line, first character in the paragraph div
- let targetPoint = { xPos: rect.left + (charDims.width / 2),
- yPos: rect.top + (charDims.height / 2) };
+ targetPoint = { xPos: rect.left + (charDims.width / 2),
+ yPos: rect.top + (charDims.height / 2) };
setSingle(dwu, targetPoint.xPos + 50, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_PARAGRAPH);
checkSelection(document, "SELECT_PARAGRAPH", "Lorem ipsum dolor sit amet, at duo debet graeci, vivendum vulputate per ut. Ne labore incorrupte vix. Cu copiosae postulant tincidunt ius, in illud appetere contentiones eos.");
@@ -162,10 +162,10 @@
frame.contentWindow.scrollTo(0, 0);
- let rect = frame.getBoundingClientRect();
+ rect = frame.getBoundingClientRect();
- let targetPoint = { xPos: charDims.width / 2,
- yPos: charDims.height / 2 };
+ targetPoint = { xPos: charDims.width / 2,
+ yPos: charDims.height / 2 };
setSingle(dwuFrame, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_WORDNOSPACE);
checkSelection(frame.contentWindow.document, "SELECT_WORDNOSPACE", "ttestselection2");
setSingle(dwuFrame, targetPoint.xPos, targetPoint.yPos, Ci.nsIDOMWindowUtils.SELECT_WORD);
diff --git a/dom/tests/mochitest/whatwg/postMessage_structured_clone_helper.js b/dom/tests/mochitest/whatwg/postMessage_structured_clone_helper.js
index 77d30da434d..d56bc329880 100644
--- a/dom/tests/mochitest/whatwg/postMessage_structured_clone_helper.js
+++ b/dom/tests/mochitest/whatwg/postMessage_structured_clone_helper.js
@@ -30,7 +30,7 @@ function getTestContent()
recursiveobj.expando = recursiveobj;
yield recursiveobj;
- let obj = new Object();
+ obj = new Object();
obj.expando1 = 1;
obj.foo = new Object();
obj.foo.bar = 2;
@@ -47,7 +47,7 @@ function getTestContent()
yield obj;
let diamond = new Object();
- let obj = new Object();
+ obj = new Object();
obj.foo = "foo";
obj.bar = 92;
obj.backref = diamond;
@@ -56,7 +56,7 @@ function getTestContent()
yield diamond;
let doubleref = new Object();
- let obj = new Object();
+ obj = new Object();
doubleref.ref1 = obj;
doubleref.ref2 = obj;
yield doubleref;
diff --git a/dom/wappush/tests/test_si_pdu_helper.js b/dom/wappush/tests/test_si_pdu_helper.js
index 9ac74343a82..7609e45474d 100644
--- a/dom/wappush/tests/test_si_pdu_helper.js
+++ b/dom/wappush/tests/test_si_pdu_helper.js
@@ -55,7 +55,7 @@ add_test(function test_si_parse_wbxml_empty() {
]);
data.offset = 0;
let result = "