Interactive interface for browsing global, full-resolution satellite imagery
remove func param space
Benjamin King45286c9af412
diff --git a/e2e/features/animation/animation-test.js b/e2e/features/animation/animation-test.jsindex cb2945c14..3c76bff9c 100644--- a/e2e/features/animation/animation-test.js+++ b/e2e/features/animation/animation-test.js@@ -3,24 +3,24 @@ const localSelectors = require('../../reuseables/selectors.js');const localQuerystrings = require('../../reuseables/querystrings.js');const TIME_LIMIT = 10000;module.exports = {- before: function (client) {+ before: function(client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},/*** Clicking the animation widget button* Opens the widget*/- 'Toggling Animation Mode': function (client) {+ 'Toggling Animation Mode': function(client) {client.expect.element(localSelectors.animationWidget).to.not.be.present;client.useCss().click(localSelectors.animationButton);client.waitForElementVisible(localSelectors.animationWidget, TIME_LIMIT);},- 'Opening custom interval widget': function (client) {+ 'Opening custom interval widget': function(client) {client.url(client.globals.url + localQuerystrings.activeAnimationWidget);client.waitForElementVisible(localSelectors.animationButton,TIME_LIMIT,- function (el) {+ function(el) {client.useCss().moveToElement('.wv-animation-widget-header #timeline-interval-btn-container #current-interval', 1, 1)@@ -37,14 +37,14 @@ module.exports = {* Moving the range selector updates the selected range* in the animation widget date selector*/- 'Changing date range of animation': function (client) {+ 'Changing date range of animation': function(client) {client.url(client.globals.url + localQuerystrings.activeAnimationWidget);// Test Permalink opens widgetclient.waitForElementVisible('#day-animation-widget-start',TIME_LIMIT,- function (el) {- client.getValue('#day-animation-widget-start', function (result) {+ function(el) {+ client.getValue('#day-animation-widget-start', function(result) {const startDay = result.value;client.useCss()@@ -57,7 +57,7 @@ module.exports = {.moveToElement('.timeline-dragger', 0, 0).mouseButtonUp(0).pause(2000);- client.getValue('#day-animation-widget-start', function (result) {+ client.getValue('#day-animation-widget-start', function(result) {const newDay = result.value;this.assert.notEqual(startDay, newDay);});@@ -69,7 +69,7 @@ module.exports = {/*** Changing animation time interval*/- 'Changing animation time interval': function (client) {+ 'Changing animation time interval': function(client) {// Can't use moveToElement twice with same elements// because of selenium catching.// Loading a different Url fixed the problem@@ -79,7 +79,7 @@ module.exports = {client.waitForElementVisible(localSelectors.animationButton,TIME_LIMIT,- function (el) {+ function(el) {client.useCss().moveToElement('.wv-animation-widget-header #timeline-interval-btn-container #current-interval', 1, 1)@@ -91,7 +91,7 @@ module.exports = {});},- after: function (client) {+ after: function(client) {client.end();}};diff --git a/e2e/features/animation/gif-test.js b/e2e/features/animation/gif-test.jsindex 0b683de47..55d558c7e 100644--- a/e2e/features/animation/gif-test.js+++ b/e2e/features/animation/gif-test.js@@ -8,17 +8,17 @@ const rotationDialogOkButton = '#image_download_notify_rotate .accept-notify';const articeRotationResetButton = '#wv-map-arctic .wv-map-reset-rotation';module.exports = {- before: function (client) {+ before: function(client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},- 'Downloading GIF when custom colormap is activated': function (client) {+ 'Downloading GIF when custom colormap is activated': function(client) {if (client.options.desiredCapabilities.browserName !== 'ie') {// Custom colormaps down exist in IEclient.url(client.globals.url + localQuerystrings.activeCustomColormap);client.waitForElementVisible(localSelectors.animationWidget,TIME_LIMIT,- function () {+ function() {client.click(localSelectors.createGifIcon).pause(1000);client.expect.element(askDialog).to.be.present;client@@ -29,7 +29,7 @@ module.exports = {client.waitForElementVisible(localSelectors.gifResults,TIME_LIMIT,- function () {+ function() {client.click(client.globals.selectors.modalCloseButton);client.expect.element(localSelectors.gifResults).to.not.be.present;@@ -43,14 +43,14 @@ module.exports = {);}},- 'Downloading GIF when polar projection is rotated': function (client) {+ 'Downloading GIF when polar projection is rotated': function(client) {client.url(client.globals.url + localQuerystrings.animationProjectionRotated);client.waitForElementVisible(localSelectors.animationWidget,TIME_LIMIT,- function () {+ function() {client.click(localSelectors.createGifIcon).pause(1000);client.useCss().assert.containsText(articeRotationResetButton, '-18');client@@ -61,19 +61,19 @@ module.exports = {});},- 'GIF selection preview is Accurate and selections that are too high disable GIF download': function (+ 'GIF selection preview is Accurate and selections that are too high disable GIF download': function(client) {client.url(client.globals.url + localQuerystrings.activeAnimationWidget);client.waitForElementVisible(localSelectors.animationWidget,TIME_LIMIT,- function () {+ function() {client.click(localSelectors.createGifIcon).pause(1000);client.waitForElementVisible(localSelectors.createGifButton,TIME_LIMIT,- function () {+ function() {client.useCss().assert.containsText(@@ -108,31 +108,31 @@ module.exports = {});},- 'GIF download is disabled when too many frames would be requested with standard interval': function (+ 'GIF download is disabled when too many frames would be requested with standard interval': function(client) {client.url(client.globals.url + localQuerystrings.animationTooManyFrames);client.waitForElementVisible(localSelectors.animationWidget,TIME_LIMIT,- function () {+ function() {client.useCss().assert.cssClassPresent('#create-gif-button', 'disabled');});},- 'GIF download is disabled when too many frames would be requested with custom interval': function (+ 'GIF download is disabled when too many frames would be requested with custom interval': function(client) {client.url(client.globals.url + localQuerystrings.animationTooManyFramesCustomInterval);client.waitForElementVisible(localSelectors.animationWidget,TIME_LIMIT,- function () {+ function() {client.useCss().assert.cssClassPresent('#create-gif-button', 'disabled');});},- after: function (client) {+ after: function(client) {client.end();}};diff --git a/e2e/features/compare/compare-test.js b/e2e/features/compare/compare-test.jsindex 92d43e30e..34bfee256 100644--- a/e2e/features/compare/compare-test.js+++ b/e2e/features/compare/compare-test.js@@ -15,15 +15,15 @@ const collapsedToggleButton =const TIME_LIMIT = 20000;module.exports = {- before: function (client) {+ before: function(client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},// load A|B and verify that it is active- 'A|B is loaded': function (client) {+ 'A|B is loaded': function(client) {client.url(client.globals.url + localQuerystrings.swipeAndAIsActive);client.waitForElementVisible(localSelectors.swipeDragger, TIME_LIMIT);},- 'Animation, image download, data-download, and events are disabled when in A|B': function (+ 'Animation, image download, data-download, and events are disabled when in A|B': function(client) {// Verify Animation widget can't be clicked@@ -75,7 +75,7 @@ module.exports = {'You must exit comparison mode to download data');},- 'Removing layer removes correct layer from correct layer group': function (+ 'Removing layer removes correct layer from correct layer group': function(client) {client.expect.element(ModisTruecolorLayerA).to.be.visible;@@ -89,12 +89,12 @@ module.exports = {/*** B state can layer list collapse*/- 'Collapse layer list with B state and test label shows correct number of layers': function (+ 'Collapse layer list with B state and test label shows correct number of layers': function(client) {client.url(client.globals.url + localQuerystrings.spyAndBIsActive);- client.waitForElementVisible(toggleButton, TIME_LIMIT, function () {+ client.waitForElementVisible(toggleButton, TIME_LIMIT, function() {client.expect.element(collapsedToggleButton).to.not.be.visible;client.click(toggleButton);client.pause(100);@@ -110,7 +110,7 @@ module.exports = {* Remove some layers from active state B and then toggle out of A|B mode to verify* that layer-sidebar inherits B state layers*/- 'If you exit A|B with B selection active, the active state will then be the B state': function (+ 'If you exit A|B with B selection active, the active state will then be the B state': function(client) {client.expect.element('#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor')@@ -126,7 +126,7 @@ module.exports = {client.waitForElementNotPresent('.timeline-dragger.draggerA',TIME_LIMIT,- function () {+ function() {client.expect.element('#activeB-Coastlines').to.be.visible;client.expect.element('#activeB-MODIS_Terra_CorrectedReflectance_TrueColor'@@ -140,7 +140,7 @@ module.exports = {});},- after: function (client) {+ after: function(client) {client.end();}};diff --git a/e2e/features/compare/timeline-test.js b/e2e/features/compare/timeline-test.jsindex 8fdd1e285..8203782b7 100644--- a/e2e/features/compare/timeline-test.js+++ b/e2e/features/compare/timeline-test.js@@ -8,19 +8,19 @@ const dateSelectorMonthInput = '#date-selector-main .input-wrapper-month input';const TIME_LIMIT = 20000;module.exports = {- before: function (client) {+ before: function(client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},// load A|B and verify that it is active- 'A|B is loaded': function (client) {+ 'A|B is loaded': function(client) {client.url(client.globals.url + localQuerystrings.swipeAndAIsActive);client.waitForElementVisible(localSelectors.swipeDragger, TIME_LIMIT);},- 'Verify that A|B draggers are visible': function (client) {+ 'Verify that A|B draggers are visible': function(client) {client.expect.element(draggerA).to.be.visible;client.expect.element(draggerB).to.be.visible;},- 'Dragging active dragger updates date': function (client) {+ 'Dragging active dragger updates date': function(client) {client.assert.attributeContains(dateSelectorDayInput, 'value', '17');client.assert.attributeContains(dateSelectorMonthInput, 'value', 'AUG');@@ -31,14 +31,14 @@ module.exports = {.moveToElement(draggerB, 100, 30).mouseButtonUp(0).pause(2000);- client.getValue(dateSelectorDayInput, function (dayResult) {- client.getValue(dateSelectorMonthInput, function (monthResult) {+ client.getValue(dateSelectorDayInput, function(dayResult) {+ client.getValue(dateSelectorMonthInput, function(monthResult) {var result = monthResult.value.concat(dayResult.value);this.assert.notEqual('AUG17', result);});});},- 'Clicking inactive dragger updates active state': function (client) {+ 'Clicking inactive dragger updates active state': function(client) {client.assert.cssClassPresent(localSelectors.aTab, 'active');client.useCss()@@ -49,12 +49,12 @@ module.exports = {client.waitForElementVisible('#activeB-Reference_Features',TIME_LIMIT,- function () {+ function() {client.assert.attributeContains(dateSelectorDayInput, 'value', '16');});},- 'Dragging B dragger updates date in label': function (client) {+ 'Dragging B dragger updates date in label': function(client) {client.useCss().assert.containsText(localSelectors.bTab, '2018-08-16');client.useCss()@@ -63,16 +63,16 @@ module.exports = {.moveToElement(draggerA, -100, 0).mouseButtonUp(0).pause(2000);- client.getText(localSelectors.bTab, function (result) {+ client.getText(localSelectors.bTab, function(result) {this.assert.notEqual('B: 2018-08-16', result.value);});},- 'Deactivate A|B is no longer active': function (client) {+ 'Deactivate A|B is no longer active': function(client) {client.click(localSelectors.compareButton);client.waitForElementNotPresent(localSelectors.bTab,TIME_LIMIT,- function () {+ function() {client.useCss().assert.containsText(@@ -84,7 +84,7 @@ module.exports = {});},- after: function (client) {+ after: function(client) {client.end();}};diff --git a/e2e/features/image-download/resolutions3413-test.js b/e2e/features/image-download/resolutions3413-test.jsindex 14441ded4..5d940a745 100644--- a/e2e/features/image-download/resolutions3413-test.js+++ b/e2e/features/image-download/resolutions3413-test.js@@ -17,11 +17,11 @@ const startParams = [];module.exports = {- after: function (client) {+ after: function(client) {client.end();},- 'In the arctic, top zoom levels is 5km': function (c) {+ 'In the arctic, top zoom levels is 5km': function(c) {normalizeViewport(c, 1024, 768);bookmark(c, startParams);openImageDownloadPanel(c);@@ -30,7 +30,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next two zooms are 1km': function (c) {+ 'Next two zooms are 1km': function(c) {zoomIn(c, 'arctic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="4"]')@@ -43,7 +43,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 500m': function (c) {+ 'Next zoom is 500m': function(c) {zoomIn(c, 'arctic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="2"]')@@ -51,7 +51,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 250m': function (c) {+ 'Next zoom is 250m': function(c) {zoomIn(c, 'arctic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="1"]')@@ -64,7 +64,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Last zoom level is 250m': function (c) {+ 'Last zoom level is 250m': function(c) {// mash the zoom button a bunch of times and see if it changesfor (let i = 0; i < 5; i++) {zoomIn(c, 'arctic');@@ -75,7 +75,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Click download': function (c) {+ 'Click download': function(c) {openImageDownloadPanel(c);clickDownload(c);c.getAttribute('#wv-image-download-url', 'url', (result) => {diff --git a/e2e/features/image-download/resolutions4326-test.js b/e2e/features/image-download/resolutions4326-test.jsindex 37dc57def..c70657e04 100644--- a/e2e/features/image-download/resolutions4326-test.js+++ b/e2e/features/image-download/resolutions4326-test.js@@ -16,11 +16,11 @@ const startParams = [];module.exports = {- after: function (client) {+ after: function(client) {client.end();},- 'In geographic, top two zoom levels are 10km': function (c) {+ 'In geographic, top two zoom levels are 10km': function(c) {normalizeViewport(c, 1024, 768);bookmark(c, startParams);openImageDownloadPanel(c);@@ -33,14 +33,14 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 5km': function (c) {+ 'Next zoom is 5km': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="20"]').to.be.selected;closeImageDownloadPanel(c);},- 'Next two zooms are 1km': function (c) {+ 'Next two zooms are 1km': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="4"]').to.be.selected;@@ -51,14 +51,14 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 500m': function (c) {+ 'Next zoom is 500m': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="2"]').to.be.selected;closeImageDownloadPanel(c);},- 'Next two zooms are 250m': function (c) {+ 'Next two zooms are 250m': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="1"]').to.be.selected;@@ -69,14 +69,14 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 125m': function (c) {+ 'Next zoom is 125m': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="0.5"]').to.be.selected;closeImageDownloadPanel(c);},- 'Next zoom is 60m': function (c) {+ 'Next zoom is 60m': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="0.25"]').to.be@@ -84,7 +84,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Next zoom is 30m': function (c) {+ 'Next zoom is 30m': function(c) {zoomIn(c, 'geographic');openImageDownloadPanel(c);c.expect.element('#wv-image-resolution option[value="0.125"]').to.be@@ -92,7 +92,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Last zoom level is 30m': function (c) {+ 'Last zoom level is 30m': function(c) {// mash the zoom button a bunch of times and see if it changesfor (let i = 0; i < 5; i++) {zoomIn(c, 'geographic');@@ -103,7 +103,7 @@ module.exports = {closeImageDownloadPanel(c);},- 'Click download': function (c) {+ 'Click download': function(c) {openImageDownloadPanel(c);clickDownload(c);c.getAttribute('#wv-image-download-url', 'url', result => {diff --git a/e2e/features/layers/options-test.js b/e2e/features/layers/options-test.jsindex 937b3c134..ef50d8638 100644--- a/e2e/features/layers/options-test.js+++ b/e2e/features/layers/options-test.js@@ -13,15 +13,15 @@ const activeDefaultPaletteCheckbox ='.wv-palette-selector-row.checked #wv-palette-radio-__default';const opacityLabel = '.layer-opacity-select .wv-label';module.exports = {- before: function (client) {+ before: function(client) {skipTour.loadAndSkipTour(client, TIME_LIMIT);},- 'Verify that settings button opens settings modal': function (client) {+ 'Verify that settings button opens settings modal': function(client) {client.url(client.globals.url + customsSquashedQuerystring);client.waitForElementVisible(combinedAodSettingsButton,TIME_LIMIT,- function (e) {+ function(e) {if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(thresholdMinLabel).to.not.be.present;client.click(combinedAodSettingsButton).pause(1000);@@ -30,13 +30,13 @@ module.exports = {});},- 'Verify that custom blue custom palette is checked': function (client) {+ 'Verify that custom blue custom palette is checked': function(client) {if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(activeDefaultPaletteCheckbox).to.not.be.present;client.expect.element(activeBluePaletteCheckbox).to.be.present;}},- 'Verify that threshold and opacity components update when different layer setting button clicked': function (+ 'Verify that threshold and opacity components update when different layer setting button clicked': function(client) {if (client.options.desiredCapabilities.browser !== 'ie') {@@ -46,14 +46,14 @@ module.exports = {client.waitForElementPresent(terraAodSettingsDialog,TIME_LIMIT,- function () {+ function() {client.useCss().assert.containsText(thresholdMinLabel, '< 0.0');client.useCss().assert.containsText(opacityLabel, '100%');});}},- 'Verify that default palette is now checked': function (client) {+ 'Verify that default palette is now checked': function(client) {if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(activeBluePaletteCheckbox).to.not.be.present;client.expect.element(activeDefaultPaletteCheckbox).to.be.present;diff --git a/e2e/features/measure/measure-test.js b/e2e/features/measure/measure-test.jsindex 1e4767b14..5d19605f2 100644--- a/e2e/features/measure/measure-test.js+++ b/e2e/features/measure/measure-test.js@@ -16,15 +16,15 @@ const {} = localSelectors;module.exports = {- before: function (client) {+ before: function(client) {reuseables.loadAndSkipTour(client, TIME_LIMIT);},- 'Clicking the measure button opens the menu': function (client) {+ 'Clicking the measure button opens the menu': function(client) {client.expect.element(measureMenu).to.not.be.present;client.useCss().click(measureBtn);client.waitForElementVisible(measureMenu, TIME_LIMIT);},- 'Initiating a measurement causes an alert to show and sidebar to collapse': function (client) {+ 'Initiating a measurement causes an alert to show and sidebar to collapse': function(client) {client.useCss().click(measureDistanceBtn);client.waitForElementVisible('.wv-alert', TIME_LIMIT);client.useCss().assert.elementPresent(sidebarContainer);@@ -33,7 +33,7 @@ module.exports = {'max-height','0px');},- 'Cancelling a measurement causes an alert to disappear and sidebar to expand': function (client) {+ 'Cancelling a measurement causes an alert to disappear and sidebar to expand': function(client) {if (client.options.desiredCapabilities.browserName !== 'firefox') { // right click doesn't work in firefoxclient.useCss().click(measureBtn);client.waitForElementVisible(measureMenu, TIME_LIMIT, (el) => {@@ -48,7 +48,7 @@ module.exports = {});}},- 'Creating a distance measurement causes a tooltip to show': function (client) {+ 'Creating a distance measurement causes a tooltip to show': function(client) {client.useCss().click(measureBtn);client.waitForElementVisible(measureMenu, TIME_LIMIT, (el) => {client.useCss().click(measureDistanceBtn);@@ -64,7 +64,7 @@ module.exports = {client.waitForElementVisible(measurementTooltip, TIME_LIMIT);});},- 'Creating a area measurement causes a tooltip to show': function (client) {+ 'Creating a area measurement causes a tooltip to show': function(client) {client.useCss().click(measureBtn);client.waitForElementVisible(measureMenu, TIME_LIMIT, (el) => {client.useCss().click(measureAreaBtn);@@ -81,7 +81,7 @@ module.exports = {client.waitForElementVisible(measurementTooltip, TIME_LIMIT);});},- 'Toggling unit of measure updates the measurement value': async function (client) {+ 'Toggling unit of measure updates the measurement value': async function(client) {if (client.options.desiredCapabilities.browserName !== 'firefox') { // client.elements() returns different values for firefoxclient.click(measureBtn);await client.waitForElementVisible(measureMenu, TIME_LIMIT);@@ -95,7 +95,7 @@ module.exports = {});}},- 'Toggling great circle changes the measurement value': async function (client) {+ 'Toggling great circle changes the measurement value': async function(client) {if (client.options.desiredCapabilities.browserName !== 'firefox') { // client.elements() returns different values for firefoxconst measureTooltips = await client.elements('css selector', measurementTooltip);const elPromises = measureTooltips.value.map(el => client.elementIdText(el.ELEMENT, res => res.value));@@ -110,7 +110,7 @@ module.exports = {});}},- 'Clearing a measurements removes all tooltips': function (client) {+ 'Clearing a measurements removes all tooltips': function(client) {if (client.options.desiredCapabilities.browserName !== 'firefox') { // client.elements() returns different values for firefoxclient.waitForElementVisible(measureMenu, TIME_LIMIT, (el) => {client.useCss().click(clearMeasurementsBtn);@@ -118,7 +118,7 @@ module.exports = {});}},- after: function (client) {+ after: function(client) {client.end();}};diff --git a/e2e/reuseables/click-patch-wip.js b/e2e/reuseables/click-patch-wip.jsindex ac67e5719..d621141e8 100644--- a/e2e/reuseables/click-patch-wip.js+++ b/e2e/reuseables/click-patch-wip.js@@ -1,7 +1,7 @@module.exports = {- customMouseEvent: function (client, selector, offsetX, offsetY, eventType) {+ customMouseEvent: function(client, selector, offsetX, offsetY, eventType) {eventType = eventType || 'dblclick';- client.execute(function (obj) {+ client.execute(function(obj) {var { eventType, selector, offsetX, offsetY } = obj;var el = document.querySelector(selector || 'body');function simulate(element, eventName) {@@ -55,7 +55,7 @@ module.exports = {cancelable: true};return simulate(el, eventType, { pointerX: offsetX, pointerY: offsetY });- }, [{ eventType: eventType, selector: selector, offsetX: offsetX, offsetY: offsetY }], function (result) {+ }, [{ eventType: eventType, selector: selector, offsetX: offsetX, offsetY: offsetY }], function(result) {});}};