Best Python code snippet using selene_python
tests.js
Source:tests.js
...46 loadstop: logEvent,47 exit: logEvent48 };49 if (useWindowOpen) {50 console.log('Use window.open() for url');51 iab = window.open(url, target, params, callbacks);52 }53 else {54 iab = cordova.InAppBrowser.open(url, target, params, callbacks);55 }56 if (!iab) {57 alert('open returned ' + iab);58 return;59 }60 function logEvent(e) {61 console.log('IAB event=' + JSON.stringify(e));62 counts[e.type]++;63 /β/β Verify that event.url gets updated on redirects.64 if (e.type == 'loadstart') {65 if (e.url == lastLoadStartURL) {66 alert('Unexpected: loadstart fired multiple times for the same URL.');67 }68 lastLoadStartURL = e.url;69 }70 /β/β Verify the right number of loadstart events were fired.71 if (e.type == 'loadstop' || e.type == 'loaderror') {72 if (e.url != lastLoadStartURL) {73 alert('Unexpected: ' + e.type + ' event.url != loadstart\'s event.url');74 }75 if (numExpectedRedirects === 0 && counts['loadstart'] !== 1) {76 /β/β Do allow a loaderror without a loadstart (e.g. in the case of an invalid URL).77 if (!(e.type == 'loaderror' && counts['loadstart'] === 0)) {78 alert('Unexpected: got multiple loadstart events. (' + counts['loadstart'] + ')');79 }80 } else if (numExpectedRedirects > 0 && counts['loadstart'] < (numExpectedRedirects + 1)) {81 alert('Unexpected: should have got at least ' + (numExpectedRedirects + 1) + ' loadstart events, but got ' + counts['loadstart']);82 }83 wasReset = true;84 numExpectedRedirects = 0;85 reset();86 }87 /β/β Verify that loadend /β loaderror was called.88 if (e.type == 'exit') {89 var numStopEvents = counts['loadstop'] + counts['loaderror'];90 if (numStopEvents === 0 && !wasReset) {91 alert('Unexpected: browser closed without a loadstop or loaderror.');92 } else if (numStopEvents > 1) {93 alert('Unexpected: got multiple loadstop/βloaderror events.');94 }95 }96 }97 return iab;98 }99 function doHookOpen(url, target, params, numExpectedRedirects) {100 var originalFunc = window.open;101 var wasClobbered = window.hasOwnProperty('open');102 window.open = cordova.InAppBrowser.open;103 try {104 doOpen(url, target, params, numExpectedRedirects, true);105 }106 finally {107 if (wasClobbered) {108 window.open = originalFunc;109 }110 else {111 console.log('just delete, to restore open from prototype');112 delete window.open;113 }114 }115 }116 function openWithStyle(url, cssUrl, useCallback) {117 var iab = doOpen(url, '_blank', 'location=yes');118 var callback = function (results) {119 if (results && results.length === 0) {120 alert('Results verified');121 } else {122 console.log(results);123 alert('Got: ' + typeof (results) + '\n' + JSON.stringify(results));124 }125 };126 if (cssUrl) {127 iab.addEventListener('loadstop', function (event) {128 iab.insertCSS({ file: cssUrl }, useCallback && callback);129 });130 } else {131 iab.addEventListener('loadstop', function (event) {132 iab.insertCSS({ code: '#style-update-literal { \ndisplay: block !important; \n}' },133 useCallback && callback);134 });135 }136 }137 function openWithScript(url, jsUrl, useCallback) {138 var iab = doOpen(url, '_blank', 'location=yes');139 if (jsUrl) {140 iab.addEventListener('loadstop', function (event) {141 iab.executeScript({ file: jsUrl }, useCallback && function (results) {142 if (results && results.length === 0) {143 alert('Results verified');144 } else {145 console.log(results);146 alert('Got: ' + typeof (results) + '\n' + JSON.stringify(results));147 }148 });149 });150 } else {151 iab.addEventListener('loadstop', function (event) {152 var code = '(function(){\n' +153 ' var header = document.getElementById("header");\n' +154 ' header.innerHTML = "Script literal successfully injected";\n' +155 ' return "abc";\n' +156 '})()';157 iab.executeScript({ code: code }, useCallback && function (results) {158 if (results && results.length === 1 && results[0] === 'abc') {159 alert('Results verified');160 } else {161 console.log(results);162 alert('Got: ' + typeof (results) + '\n' + JSON.stringify(results));163 }164 });165 });166 }167 }168 var hiddenwnd = null;169 var loadlistener = function (event) { alert('background window loaded '); };170 function openHidden(url, startHidden) {171 var shopt = (startHidden) ? 'hidden=yes' : '';172 hiddenwnd = cordova.InAppBrowser.open(url, 'random_string', shopt);173 if (!hiddenwnd) {174 alert('cordova.InAppBrowser.open returned ' + hiddenwnd);175 return;176 }177 if (startHidden) hiddenwnd.addEventListener('loadstop', loadlistener);178 }179 function showHidden() {180 if (!!hiddenwnd) {181 hiddenwnd.show();182 }183 }184 function closeHidden() {185 if (!!hiddenwnd) {186 hiddenwnd.removeEventListener('loadstop', loadlistener);187 hiddenwnd.close();188 hiddenwnd = null;189 }190 }191 var info_div = '<h1>InAppBrowser</βh1>' +192 '<div id="info">' +193 'Make sure http:/β/βcordova.apache.org and http:/β/βgoogle.co.uk and https:/β/βwww.google.co.uk are white listed. </βbr>' +194 'Make sure http:/β/βwww.apple.com is not in the white list.</βbr>' +195 'In iOS, starred <span style="vertical-align:super">*</βspan> tests will put the app in a state with no way to return. </βbr>' +196 '<h4>User-Agent: <span id="user-agent"> </βspan></βhr>' +197 '</βdiv>';198 var local_tests = '<h1>Local URL</βh1>' +199 '<div id="openLocal"></βdiv>' +200 'Expected result: opens successfully in CordovaWebView.' +201 '<p/β> <div id="openLocalHook"></βdiv>' +202 'Expected result: opens successfully in CordovaWebView (using hook of window.open()).' +203 '<p/β> <div id="openLocalSelf"></βdiv>' +204 'Expected result: opens successfully in CordovaWebView.' +205 '<p/β> <div id="openLocalSystem"></βdiv>' +206 'Expected result: fails to open' +207 '<p/β> <div id="openLocalBlank"></βdiv>' +208 'Expected result: opens successfully in InAppBrowser with locationBar at top.' +209 '<p/β> <div id="openLocalRandomNoLocation"></βdiv>' +210 'Expected result: opens successfully in InAppBrowser without locationBar.' +211 '<p/β> <div id="openLocalRandomToolBarBottom"></βdiv>' +212 'Expected result: opens successfully in InAppBrowser with locationBar. On iOS the toolbar is at the bottom.' +213 '<p/β> <div id="openLocalRandomToolBarTop"></βdiv>' +214 'Expected result: opens successfully in InAppBrowser with locationBar. On iOS the toolbar is at the top.' +215 '<p/β><div id="openLocalRandomToolBarTopNoLocation"></βdiv>' +216 'Expected result: open successfully in InAppBrowser with no locationBar. On iOS the toolbar is at the top.';217 var white_listed_tests = '<h1>White Listed URL</βh1>' +218 '<div id="openWhiteListed"></βdiv>' +219 'Expected result: open successfully in CordovaWebView to cordova.apache.org' +220 '<p/β> <div id="openWhiteListedHook"></βdiv>' +221 'Expected result: open successfully in CordovaWebView to cordova.apache.org (using hook of window.open())' +222 '<p/β> <div id="openWhiteListedSelf"></βdiv>' +223 'Expected result: open successfully in CordovaWebView to cordova.apache.org' +224 '<p/β> <div id="openWhiteListedSystem"></βdiv>' +225 'Expected result: open successfully in system browser to cordova.apache.org' +226 '<p/β> <div id="openWhiteListedBlank"></βdiv>' +227 'Expected result: open successfully in InAppBrowser to cordova.apache.org' +228 '<p/β> <div id="openWhiteListedRandom"></βdiv>' +229 'Expected result: open successfully in InAppBrowser to cordova.apache.org' +230 '<p/β> <div id="openWhiteListedRandomNoLocation"></βdiv>' +231 'Expected result: open successfully in InAppBrowser to cordova.apache.org with no location bar.';232 var non_white_listed_tests = '<h1>Non White Listed URL</βh1>' +233 '<div id="openNonWhiteListed"></βdiv>' +234 'Expected result: open successfully in InAppBrowser to apple.com.' +235 '<p/β> <div id="openNonWhiteListedHook"></βdiv>' +236 'Expected result: open successfully in InAppBrowser to apple.com (using hook of window.open()).' +237 '<p/β> <div id="openNonWhiteListedSelf"></βdiv>' +238 'Expected result: open successfully in InAppBrowser to apple.com (_self enforces whitelist).' +239 '<p/β> <div id="openNonWhiteListedSystem"></βdiv>' +240 'Expected result: open successfully in system browser to apple.com.' +241 '<p/β> <div id="openNonWhiteListedBlank"></βdiv>' +242 'Expected result: open successfully in InAppBrowser to apple.com.' +243 '<p/β> <div id="openNonWhiteListedRandom"></βdiv>' +244 'Expected result: open successfully in InAppBrowser to apple.com.' +245 '<p/β> <div id="openNonWhiteListedRandomNoLocation"></βdiv>' +246 'Expected result: open successfully in InAppBrowser to apple.com without locationBar.';247 var page_with_redirects_tests = '<h1>Page with redirect</βh1>' +248 '<div id="openRedirect301"></βdiv>' +249 'Expected result: should 301 and open successfully in InAppBrowser to https:/β/βwww.google.co.uk.' +250 '<p/β> <div id="openRedirect302"></βdiv>' +...
OpenLayers.js
Source:OpenLayers.js
1/β* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for 2 * full list of contributors). Published under the Clear BSD license. 3 * See http:/β/βsvn.openlayers.org/βtrunk/βopenlayers/βlicense.txt for the4 * full text of the license. */β5/β* 6 * @requires OpenLayers/βBaseTypes.js7 * @requires OpenLayers/βLang/βen.js8 * @requires OpenLayers/βConsole.js9 */β10 11/β*12 * TODO: In 3.0, we will stop supporting build profiles that include13 * OpenLayers.js. This means we will not need the singleFile and scriptFile14 * variables, because we don't have to handle the singleFile case any more.15 */β16(function() {17 /β**18 * Before creating the OpenLayers namespace, check to see if19 * OpenLayers.singleFile is true. This occurs if the20 * OpenLayers/βSingleFile.js script is included before this one - as is the21 * case with old single file build profiles that included both22 * OpenLayers.js and OpenLayers/βSingleFile.js.23 */β24 var singleFile = (typeof OpenLayers == "object" && OpenLayers.singleFile);25 26 /β**27 * Relative path of this script.28 */β29 var scriptName = (!singleFile) ? "lib/βOpenLayers.js" : "OpenLayers.js";30 /β*31 * If window.OpenLayers isn't set when this script (OpenLayers.js) is32 * evaluated (and if singleFile is false) then this script will load33 * *all* OpenLayers scripts. If window.OpenLayers is set to an array34 * then this script will attempt to load scripts for each string of35 * the array, using the string as the src of the script.36 *37 * Example:38 * (code)39 * <script type="text/βjavascript">40 * window.OpenLayers = [41 * "OpenLayers/βUtil.js",42 * "OpenLayers/βBaseTypes.js"43 * ];44 * </βscript>45 * <script type="text/βjavascript" src="../βlib/βOpenLayers.js"></βscript>46 * (end)47 * In this example OpenLayers.js will load Util.js and BaseTypes.js only.48 */β49 var jsFiles = window.OpenLayers;50 /β**51 * Namespace: OpenLayers52 * The OpenLayers object provides a namespace for all things OpenLayers53 */β54 window.OpenLayers = {55 /β**56 * Method: _getScriptLocation57 * Return the path to this script. This is also implemented in58 * OpenLayers/βSingleFile.js59 *60 * Returns:61 * {String} Path to this script62 */β63 _getScriptLocation: (function() {64 var r = new RegExp("(^|(.*?\\/β))(" + scriptName + ")(\\?|$)"),65 s = document.getElementsByTagName('script'),66 src, m, l = "";67 for(var i=0, len=s.length; i<len; i++) {68 src = s[i].getAttribute('src');69 if(src) {70 var m = src.match(r);71 if(m) {72 l = m[1];73 break;74 }75 }76 }77 return (function() { return l; });78 })()79 };80 /β**81 * OpenLayers.singleFile is a flag indicating this file is being included82 * in a Single File Library build of the OpenLayers Library.83 * 84 * When we are *not* part of a SFL build we dynamically include the85 * OpenLayers library code.86 * 87 * When we *are* part of a SFL build we do not dynamically include the 88 * OpenLayers library code as it will be appended at the end of this file.89 */β90 if(!singleFile) {91 if (!jsFiles) {92 jsFiles = [93 "OpenLayers/βBaseTypes/βClass.js",94 "OpenLayers/βUtil.js",95 "OpenLayers/βBaseTypes.js",96 "OpenLayers/βBaseTypes/βBounds.js",97 "OpenLayers/βBaseTypes/βDate.js",98 "OpenLayers/βBaseTypes/βElement.js",99 "OpenLayers/βBaseTypes/βLonLat.js",100 "OpenLayers/βBaseTypes/βPixel.js",101 "OpenLayers/βBaseTypes/βSize.js",102 "OpenLayers/βConsole.js",103 "OpenLayers/βTween.js",104 "OpenLayers/βKinetic.js",105 "Rico/βCorner.js",106 "Rico/βColor.js",107 "OpenLayers/βAjax.js",108 "OpenLayers/βEvents.js",109 "OpenLayers/βRequest.js",110 "OpenLayers/βRequest/βXMLHttpRequest.js",111 "OpenLayers/βProjection.js",112 "OpenLayers/βMap.js",113 "OpenLayers/βLayer.js",114 "OpenLayers/βIcon.js",115 "OpenLayers/βMarker.js",116 "OpenLayers/βMarker/βBox.js",117 "OpenLayers/βPopup.js",118 "OpenLayers/βTile.js",119 "OpenLayers/βTile/βImage.js",120 "OpenLayers/βTile/βImage/βIFrame.js",121 "OpenLayers/βTile/βWFS.js",122 "OpenLayers/βLayer/βImage.js",123 "OpenLayers/βLayer/βSphericalMercator.js",124 "OpenLayers/βLayer/βEventPane.js",125 "OpenLayers/βLayer/βFixedZoomLevels.js",126 "OpenLayers/βLayer/βGoogle.js",127 "OpenLayers/βLayer/βGoogle/βv3.js",128 "OpenLayers/βLayer/βVirtualEarth.js",129 "OpenLayers/βLayer/βYahoo.js",130 "OpenLayers/βLayer/βHTTPRequest.js",131 "OpenLayers/βLayer/βGrid.js",132 "OpenLayers/βLayer/βMapGuide.js",133 "OpenLayers/βLayer/βMapServer.js",134 "OpenLayers/βLayer/βMapServer/βUntiled.js",135 "OpenLayers/βLayer/βKaMap.js",136 "OpenLayers/βLayer/βKaMapCache.js",137 "OpenLayers/βLayer/βMultiMap.js",138 "OpenLayers/βLayer/βMarkers.js",139 "OpenLayers/βLayer/βText.js",140 "OpenLayers/βLayer/βWorldWind.js",141 "OpenLayers/βLayer/βArcGIS93Rest.js",142 "OpenLayers/βLayer/βWMS.js",143 "OpenLayers/βLayer/βWMS/βUntiled.js",144 "OpenLayers/βLayer/βWMS/βPost.js",145 "OpenLayers/βLayer/βWMTS.js",146 "OpenLayers/βLayer/βArcIMS.js",147 "OpenLayers/βLayer/βGeoRSS.js",148 "OpenLayers/βLayer/βBoxes.js",149 "OpenLayers/βLayer/βXYZ.js",150 "OpenLayers/βLayer/βBing.js",151 "OpenLayers/βLayer/βTMS.js",152 "OpenLayers/βLayer/βTileCache.js",153 "OpenLayers/βLayer/βZoomify.js",154 "OpenLayers/βLayer/βArcGISCache.js",155 "OpenLayers/βPopup/βAnchored.js",156 "OpenLayers/βPopup/βAnchoredBubble.js",157 "OpenLayers/βPopup/βFramed.js",158 "OpenLayers/βPopup/βFramedCloud.js",159 "OpenLayers/βFeature.js",160 "OpenLayers/βFeature/βVector.js",161 "OpenLayers/βFeature/βWFS.js",162 "OpenLayers/βHandler.js",163 "OpenLayers/βHandler/βClick.js",164 "OpenLayers/βHandler/βHover.js",165 "OpenLayers/βHandler/βPoint.js",166 "OpenLayers/βHandler/βPath.js",167 "OpenLayers/βHandler/βPolygon.js",168 "OpenLayers/βHandler/βFeature.js",169 "OpenLayers/βHandler/βDrag.js",170 "OpenLayers/βHandler/βPinch.js",171 "OpenLayers/βHandler/βRegularPolygon.js",172 "OpenLayers/βHandler/βBox.js",173 "OpenLayers/βHandler/βMouseWheel.js",174 "OpenLayers/βHandler/βKeyboard.js",175 "OpenLayers/βControl.js",176 "OpenLayers/βControl/βAttribution.js",177 "OpenLayers/βControl/βButton.js",178 "OpenLayers/βControl/βZoomBox.js",179 "OpenLayers/βControl/βZoomToMaxExtent.js",180 "OpenLayers/βControl/βDragPan.js",181 "OpenLayers/βControl/βNavigation.js",182 "OpenLayers/βControl/βPinchZoom.js",183 "OpenLayers/βControl/βTouchNavigation.js",184 "OpenLayers/βControl/βMouseDefaults.js",185 "OpenLayers/βControl/βMousePosition.js",186 "OpenLayers/βControl/βOverviewMap.js",187 "OpenLayers/βControl/βKeyboardDefaults.js",188 "OpenLayers/βControl/βPanZoom.js",189 "OpenLayers/βControl/βPanZoomBar.js",190 "OpenLayers/βControl/βArgParser.js",191 "OpenLayers/βControl/βPermalink.js",192 "OpenLayers/βControl/βScale.js",193 "OpenLayers/βControl/βScaleLine.js",194 "OpenLayers/βControl/βSnapping.js",195 "OpenLayers/βControl/βSplit.js",196 "OpenLayers/βControl/βLayerSwitcher.js",197 "OpenLayers/βControl/βDrawFeature.js",198 "OpenLayers/βControl/βDragFeature.js",199 "OpenLayers/βControl/βModifyFeature.js",200 "OpenLayers/βControl/βPanel.js",201 "OpenLayers/βControl/βSelectFeature.js",202 "OpenLayers/βControl/βNavigationHistory.js",203 "OpenLayers/βControl/βMeasure.js",204 "OpenLayers/βControl/βWMSGetFeatureInfo.js",205 "OpenLayers/βControl/βWMTSGetFeatureInfo.js",206 "OpenLayers/βControl/βGraticule.js",207 "OpenLayers/βControl/βTransformFeature.js",208 "OpenLayers/βControl/βSLDSelect.js",209 "OpenLayers/βGeometry.js",210 "OpenLayers/βGeometry/βRectangle.js",211 "OpenLayers/βGeometry/βCollection.js",212 "OpenLayers/βGeometry/βPoint.js",213 "OpenLayers/βGeometry/βMultiPoint.js",214 "OpenLayers/βGeometry/βCurve.js",215 "OpenLayers/βGeometry/βLineString.js",216 "OpenLayers/βGeometry/βLinearRing.js",217 "OpenLayers/βGeometry/βPolygon.js",218 "OpenLayers/βGeometry/βMultiLineString.js",219 "OpenLayers/βGeometry/βMultiPolygon.js",220 "OpenLayers/βGeometry/βSurface.js",221 "OpenLayers/βRenderer.js",222 "OpenLayers/βRenderer/βElements.js",223 "OpenLayers/βRenderer/βNG.js",224 "OpenLayers/βRenderer/βSVG.js",225 "OpenLayers/βRenderer/βSVG2.js",226 "OpenLayers/βRenderer/βCanvas.js",227 "OpenLayers/βRenderer/βVML.js",228 "OpenLayers/βLayer/βVector.js",229 "OpenLayers/βLayer/βPointGrid.js",230 "OpenLayers/βLayer/βVector/βRootContainer.js",231 "OpenLayers/βStrategy.js",232 "OpenLayers/βStrategy/βFilter.js",233 "OpenLayers/βStrategy/βFixed.js",234 "OpenLayers/βStrategy/βCluster.js",235 "OpenLayers/βStrategy/βPaging.js",236 "OpenLayers/βStrategy/βBBOX.js",237 "OpenLayers/βStrategy/βSave.js",238 "OpenLayers/βStrategy/βRefresh.js",239 "OpenLayers/βFilter.js",240 "OpenLayers/βFilter/βFeatureId.js",241 "OpenLayers/βFilter/βLogical.js",242 "OpenLayers/βFilter/βComparison.js",243 "OpenLayers/βFilter/βSpatial.js",244 "OpenLayers/βFilter/βFunction.js", 245 "OpenLayers/βProtocol.js",246 "OpenLayers/βProtocol/βHTTP.js",247 "OpenLayers/βProtocol/βSQL.js",248 "OpenLayers/βProtocol/βSQL/βGears.js",249 "OpenLayers/βProtocol/βWFS.js",250 "OpenLayers/βProtocol/βWFS/βv1.js",251 "OpenLayers/βProtocol/βWFS/βv1_0_0.js",252 "OpenLayers/βProtocol/βWFS/βv1_1_0.js",253 "OpenLayers/βProtocol/βScript.js",254 "OpenLayers/βProtocol/βSOS.js",255 "OpenLayers/βProtocol/βSOS/βv1_0_0.js",256 "OpenLayers/βLayer/βPointTrack.js",257 "OpenLayers/βLayer/βGML.js",258 "OpenLayers/βStyle.js",259 "OpenLayers/βStyle2.js",260 "OpenLayers/βStyleMap.js",261 "OpenLayers/βRule.js",262 "OpenLayers/βFormat.js",263 "OpenLayers/βFormat/βQueryStringFilter.js",264 "OpenLayers/βFormat/βXML.js",265 "OpenLayers/βFormat/βXML/βVersionedOGC.js",266 "OpenLayers/βFormat/βContext.js",267 "OpenLayers/βFormat/βArcXML.js",268 "OpenLayers/βFormat/βArcXML/βFeatures.js",269 "OpenLayers/βFormat/βGML.js",270 "OpenLayers/βFormat/βGML/βBase.js",271 "OpenLayers/βFormat/βGML/βv2.js",272 "OpenLayers/βFormat/βGML/βv3.js",273 "OpenLayers/βFormat/βAtom.js",274 "OpenLayers/βFormat/βKML.js",275 "OpenLayers/βFormat/βGeoRSS.js",276 "OpenLayers/βFormat/βWFS.js",277 "OpenLayers/βFormat/βWFSCapabilities.js",278 "OpenLayers/βFormat/βWFSCapabilities/βv1.js",279 "OpenLayers/βFormat/βWFSCapabilities/βv1_0_0.js",280 "OpenLayers/βFormat/βWFSCapabilities/βv1_1_0.js",281 "OpenLayers/βFormat/βWFSDescribeFeatureType.js",282 "OpenLayers/βFormat/βWMSDescribeLayer.js",283 "OpenLayers/βFormat/βWMSDescribeLayer/βv1_1.js",284 "OpenLayers/βFormat/βWKT.js",285 "OpenLayers/βFormat/βCQL.js",286 "OpenLayers/βFormat/βOSM.js",287 "OpenLayers/βFormat/βGPX.js",288 "OpenLayers/βFormat/βFilter.js",289 "OpenLayers/βFormat/βFilter/βv1.js",290 "OpenLayers/βFormat/βFilter/βv1_0_0.js",291 "OpenLayers/βFormat/βFilter/βv1_1_0.js",292 "OpenLayers/βFormat/βSLD.js",293 "OpenLayers/βFormat/βSLD/βv1.js",294 "OpenLayers/βFormat/βSLD/βv1_0_0.js",295 "OpenLayers/βFormat/βOWSCommon.js",296 "OpenLayers/βFormat/βOWSCommon/βv1.js",297 "OpenLayers/βFormat/βOWSCommon/βv1_0_0.js",298 "OpenLayers/βFormat/βOWSCommon/βv1_1_0.js",299 "OpenLayers/βFormat/βCSWGetDomain.js",300 "OpenLayers/βFormat/βCSWGetDomain/βv2_0_2.js",301 "OpenLayers/βFormat/βCSWGetRecords.js",302 "OpenLayers/βFormat/βCSWGetRecords/βv2_0_2.js",303 "OpenLayers/βFormat/βWFST.js",304 "OpenLayers/βFormat/βWFST/βv1.js",305 "OpenLayers/βFormat/βWFST/βv1_0_0.js",306 "OpenLayers/βFormat/βWFST/βv1_1_0.js",307 "OpenLayers/βFormat/βText.js",308 "OpenLayers/βFormat/βJSON.js",309 "OpenLayers/βFormat/βGeoJSON.js",310 "OpenLayers/βFormat/βWMC.js",311 "OpenLayers/βFormat/βWMC/βv1.js",312 "OpenLayers/βFormat/βWMC/βv1_0_0.js",313 "OpenLayers/βFormat/βWMC/βv1_1_0.js",314 "OpenLayers/βFormat/βWCSGetCoverage.js",315 "OpenLayers/βFormat/βWMSCapabilities.js",316 "OpenLayers/βFormat/βWMSCapabilities/βv1.js",317 "OpenLayers/βFormat/βWMSCapabilities/βv1_1.js",318 "OpenLayers/βFormat/βWMSCapabilities/βv1_1_0.js",319 "OpenLayers/βFormat/βWMSCapabilities/βv1_1_1.js",320 "OpenLayers/βFormat/βWMSCapabilities/βv1_3.js",321 "OpenLayers/βFormat/βWMSCapabilities/βv1_3_0.js",322 "OpenLayers/βFormat/βWMSCapabilities/βv1_1_1_WMSC.js",323 "OpenLayers/βFormat/βWMSGetFeatureInfo.js",324 "OpenLayers/βFormat/βSOSCapabilities.js",325 "OpenLayers/βFormat/βSOSCapabilities/βv1_0_0.js",326 "OpenLayers/βFormat/βSOSGetFeatureOfInterest.js",327 "OpenLayers/βFormat/βSOSGetObservation.js",328 "OpenLayers/βFormat/βOWSContext.js",329 "OpenLayers/βFormat/βOWSContext/βv0_3_1.js",330 "OpenLayers/βFormat/βWMTSCapabilities.js",331 "OpenLayers/βFormat/βWMTSCapabilities/βv1_0_0.js",332 "OpenLayers/βFormat/βWPSCapabilities.js",333 "OpenLayers/βFormat/βWPSCapabilities/βv1_0_0.js",334 "OpenLayers/βFormat/βWPSDescribeProcess.js",335 "OpenLayers/βFormat/βWPSExecute.js",336 "OpenLayers/βFormat/βXLS.js",337 "OpenLayers/βFormat/βXLS/βv1.js",338 "OpenLayers/βFormat/βXLS/βv1_1_0.js",339 "OpenLayers/βFormat/βOGCExceptionReport.js",340 "OpenLayers/βLayer/βWFS.js",341 "OpenLayers/βControl/βGetFeature.js",342 "OpenLayers/βControl/βMouseToolbar.js",343 "OpenLayers/βControl/βNavToolbar.js",344 "OpenLayers/βControl/βPanPanel.js",345 "OpenLayers/βControl/βPan.js",346 "OpenLayers/βControl/βZoomIn.js",347 "OpenLayers/βControl/βZoomOut.js",348 "OpenLayers/βControl/βZoomPanel.js",349 "OpenLayers/βControl/βEditingToolbar.js",350 "OpenLayers/βControl/βGeolocate.js",351 "OpenLayers/βSymbolizer.js",352 "OpenLayers/βSymbolizer/βPoint.js",353 "OpenLayers/βSymbolizer/βLine.js",354 "OpenLayers/βSymbolizer/βPolygon.js",355 "OpenLayers/βSymbolizer/βText.js",356 "OpenLayers/βSymbolizer/βRaster.js",357 "OpenLayers/βLang.js",358 "OpenLayers/βLang/βen.js"359 ]; /β/β etc.360 }361 /β/β use "parser-inserted scripts" for guaranteed execution order362 /β/β http:/β/βhsivonen.iki.fi/βscript-execution/β363 var scriptTags = new Array(jsFiles.length);364 var host = OpenLayers._getScriptLocation() + "lib/β";365 for (var i=0, len=jsFiles.length; i<len; i++) {366 scriptTags[i] = "<script src='" + host + jsFiles[i] +367 "'></βscript>"; 368 }369 if (scriptTags.length > 0) {370 document.write(scriptTags.join(""));371 }372 }373})();374/β**375 * Constant: VERSION_NUMBER376 */β...
custom.js
Source:custom.js
1(function ($) {2 3 /β/β -------------4 /β/β Accordion excelencia academica5 6 $(".acordion1 a").click(function() {7 $(".content_accordion_1").toggleClass("open");8 $(".acordion1 a").toggleClass("open");9 $('.content_accordion_2').removeClass('open');10 $('.acordion2 a').removeClass('open');11 $('.content_accordion_3').removeClass('open');12 $('.acordion3 a').removeClass('open');13 $('.content_accordion_4').removeClass('open');14 $('.acordion4 a').removeClass('open');15 $('.content_accordion_5').removeClass('open');16 $('.acordion5 a').removeClass('open');17 $('.content_accordion_6').removeClass('open');18 $('.acordion6 a').removeClass('open');19 });20 21 $(".content_accordion_1 .close-button").click(function() {22 $(".content_accordion_1").toggleClass("open");23 $(".acordion1 a").toggleClass("open");24 });25 26 27 28 29 /β/β -------------30 /β/β Accordion grupos especiales31 32 $(".acordion2 a").click(function() {33 $(".content_accordion_2").toggleClass("open");34 $(".acordion2 a").toggleClass("open");35 $('.content_accordion_1').removeClass('open');36 $('.acordion1 a').removeClass('open');37 $('.content_accordion_3').removeClass('open');38 $('.acordion3 a').removeClass('open');39 $('.content_accordion_4').removeClass('open');40 $('.acordion4 a').removeClass('open');41 $('.content_accordion_5').removeClass('open');42 $('.acordion5 a').removeClass('open');43 $('.content_accordion_6').removeClass('open');44 $('.acordion6 a').removeClass('open');45 });46 47 $(".content_accordion_2 .close-button").click(function() {48 $(".content_accordion_2").toggleClass("open");49 $(".acordion2 a").toggleClass("open");50 });51 52 53 54 55 56 /β/β -------------57 /β/β Accordion merito academico58 59 $(".acordion3 a").click(function() {60 $(".content_accordion_3").toggleClass("open");61 $(".acordion3 a").toggleClass("open");62 $('.content_accordion_1').removeClass('open');63 $('.acordion1 a').removeClass('open');64 $('.content_accordion_2').removeClass('open');65 $('.acordion2 a').removeClass('open');66 $('.content_accordion_4').removeClass('open');67 $('.acordion4 a').removeClass('open');68 $('.content_accordion_5').removeClass('open');69 $('.acordion5 a').removeClass('open');70 $('.content_accordion_6').removeClass('open');71 $('.acordion6 a').removeClass('open');72 });73 74 $(".content_accordion_3 .close-button").click(function() {75 $(".content_accordion_3").toggleClass("open");76 $(".acordion3 a").toggleClass("open");77 });78 79 80 /β/β -------------81 /β/β Programa semillas82 83 $(".acordion4 a").click(function() {84 $(".content_accordion_4").toggleClass("open");85 $(".acordion4 a").toggleClass("open");86 $('.content_accordion_1').removeClass('open');87 $('.acordion1 a').removeClass('open');88 $('.content_accordion_2').removeClass('open');89 $('.acordion2 a').removeClass('open');90 $('.content_accordion_3').removeClass('open');91 $('.acordion3 a').removeClass('open');92 $('.content_accordion_5').removeClass('open');93 $('.acordion5 a').removeClass('open');94 $('.content_accordion_6').removeClass('open');95 $('.acordion6 a').removeClass('open');96 });97 98 $(".content_accordion_4 .close-button").click(function() {99 $(".content_accordion_4").toggleClass("open");100 $(".acordion4 a").toggleClass("open");101 });102 103 104 /β/β -------------105 /β/β Economia naranja106 107 $(".acordion5 a").click(function() {108 $(".content_accordion_5").toggleClass("open");109 $(".acordion5 a").toggleClass("open");110 $('.content_accordion_1').removeClass('open');111 $('.acordion1 a').removeClass('open');112 $('.content_accordion_2').removeClass('open');113 $('.acordion2 a').removeClass('open');114 $('.content_accordion_3').removeClass('open');115 $('.acordion3 a').removeClass('open');116 $('.content_accordion_4').removeClass('open');117 $('.acordion4 a').removeClass('open');118 $('.content_accordion_6').removeClass('open');119 $('.acordion6 a').removeClass('open');120 });121 122 $(".content_accordion_5 .close-button").click(function() {123 $(".content_accordion_5").toggleClass("open");124 $(".acordion5 a").toggleClass("open");125 });126 127 128 /β/β -------------129 /β/β fundacion bolivar130 131 $(".acordion6 a").click(function() {132 $(".content_accordion_6").toggleClass("open");133 $(".acordion6 a").toggleClass("open");134 $('.content_accordion_1').removeClass('open');135 $('.acordion1 a').removeClass('open');136 $('.content_accordion_2').removeClass('open');137 $('.acordion2 a').removeClass('open');138 $('.content_accordion_3').removeClass('open');139 $('.acordion3 a').removeClass('open');140 $('.content_accordion_4').removeClass('open');141 $('.acordion4 a').removeClass('open');142 $('.content_accordion_5').removeClass('open');143 $('.acordion5 a').removeClass('open');144 });145 146 $(".content_accordion_6 .close-button").click(function() {147 $(".content_accordion_6").toggleClass("open");148 $(".acordion6 a").toggleClass("open");149 });150 151 152 153 /β/β -------------154 /β/β resultados consultar155 156 $(".resultados_convocatoria a").click(function() {157 $(".resultados_consultar").toggleClass("open");158 $(".resultados_convocatoria a").toggleClass("open");159 });160 161 $(".resultados_convocatoria .close-button").click(function() {162 $(".resultados_consultar").toggleClass("open");163 $(".resultados_convocatoria a").toggleClass("open");164 });165 166 167 168 /β/β -------------169 /β/β qas 1170 171 $(".qas .qa1").click(function() {172 $(".resultados_qa1").toggleClass("open");173 $(".qas .qa1").toggleClass("open");174 });175 176 $(".resultados_qa1 .close-button").click(function() {177 $(".resultados_qa1").toggleClass("open");178 $(".qas .qa1").toggleClass("open");179 });180 181 182 /β/β -------------183 /β/β qas 2184 185 $(".qas .qa2").click(function() {186 $(".resultados_qa2").toggleClass("open");187 $(".qas .qa2").toggleClass("open");188 });189 190 $(".resultados_qa2 .close-button").click(function() {191 $(".resultados_qa2").toggleClass("open");192 $(".qas .qa2").toggleClass("open");193 });194 195 196 /β/β -------------197 /β/β qas 3198 199 $(".qas .qa3").click(function() {200 $(".resultados_qa3").toggleClass("open");201 $(".qas .qa3").toggleClass("open");202 });203 204 $(".resultados_qa3 .close-button").click(function() {205 $(".resultados_qa3").toggleClass("open");206 $(".qas .qa3").toggleClass("open");207 });208 209 210 211 /β/β -------------212 /β/β qas 4213 214 $(".qas .qa4").click(function() {215 $(".resultados_qa4").toggleClass("open");216 $(".qas .qa4").toggleClass("open");217 });218 219 $(".resultados_qa4 .close-button").click(function() {220 $(".resultados_qa4").toggleClass("open");221 $(".qas .qa4").toggleClass("open");222 });223 224 225 /β/β -------------226 /β/β qas 5227 228 $(".qas .qa5").click(function() {229 $(".resultados_qa5").toggleClass("open");230 $(".qas .qa5").toggleClass("open");231 });232 233 $(".resultados_qa5 .close-button").click(function() {234 $(".resultados_qa5").toggleClass("open");235 $(".qas .qa5").toggleClass("open");236 });237 238 239 /β/β -------------240 /β/β qas 6241 242 $(".qas .qa6").click(function() {243 $(".resultados_qa6").toggleClass("open");244 $(".qas .qa6").toggleClass("open");245 });246 247 $(".resultados_qa6 .close-button").click(function() {248 $(".resultados_qa6").toggleClass("open");249 $(".qas .qa6").toggleClass("open");250 });251 252 253 /β/β -------------254 /β/β qas 7255 256 $(".qas .qa7").click(function() {257 $(".resultados_qa7").toggleClass("open");258 $(".qas .qa7").toggleClass("open");259 });260 261 $(".resultados_qa7 .close-button").click(function() {262 $(".resultados_qa7").toggleClass("open");263 $(".qas .qa7").toggleClass("open");264 });265 266 267 /β/β -------------268 /β/β qas 8269 270 $(".qas .qa8").click(function() {271 $(".resultados_qa8").toggleClass("open");272 $(".qas .qa8").toggleClass("open");273 });274 275 $(".resultados_qa8 .close-button").click(function() {276 $(".resultados_qa8").toggleClass("open");277 $(".qas .qa8").toggleClass("open");278 });279 280 281 /β/β -------------282 /β/β qas 9283 284 $(".qas .qa9").click(function() {285 $(".resultados_qa9").toggleClass("open");286 $(".qas .qa9").toggleClass("open");287 });288 289 $(".resultados_qa9 .close-button").click(function() {290 $(".resultados_qa9").toggleClass("open");291 $(".qas .qa9").toggleClass("open");292 });293 294 295 /β/β -------------296 /β/β qas 10297 298 $(".qas .qa10").click(function() {299 $(".resultados_qa10").toggleClass("open");300 $(".qas .qa10").toggleClass("open");301 });302 303 $(".resultados_qa10 .close-button").click(function() {304 $(".resultados_qa10").toggleClass("open");305 $(".qas .qa10").toggleClass("open");306 });307 308 309 /β/β -------------310 /β/β qas 11311 312 $(".qas .qa11").click(function() {313 $(".resultados_qa11").toggleClass("open");314 $(".qas .qa11").toggleClass("open");315 });316 317 $(".resultados_qa11 .close-button").click(function() {318 $(".resultados_qa11").toggleClass("open");319 $(".qas .qa11").toggleClass("open");320 });321 322 323 /β/β -------------324 /β/β qas 12325 326 $(".qas .qa12").click(function() {327 $(".resultados_qa12").toggleClass("open");328 $(".qas .qa12").toggleClass("open");329 });330 331 $(".resultados_qa12 .close-button").click(function() {332 $(".resultados_qa12").toggleClass("open");333 $(".qas .qa12").toggleClass("open");334 });335 336 337 /β/β -------------338 /β/β qas 13339 340 $(".qas .qa13").click(function() {341 $(".resultados_qa13").toggleClass("open");342 $(".qas .qa13").toggleClass("open");343 });344 345 $(".resultados_qa13 .close-button").click(function() {346 $(".resultados_qa13").toggleClass("open");347 $(".qas .qa13").toggleClass("open");348 });349 350 /β/β -------------351 /β/β qas 14352 353 $(".qas .qa14").click(function() {354 $(".resultados_qa14").toggleClass("open");355 $(".qas .qa14").toggleClass("open");356 });357 358 $(".resultados_qa14 .close-button").click(function() {359 $(".resultados_qa14").toggleClass("open");360 $(".qas .qa14").toggleClass("open");361 });362 363 364 /β/β -------------365 /β/β donar366 367 $(".btn_donar a").click(function() {368 $(".btn_donar a").toggleClass("open");369 $(".donar .resultados_donar").toggleClass("open");370 });371 372 $(".resultados_donar .close-button").click(function() {373 $(".btn_donar a").toggleClass("open");374 $(".donar .resultados_donar").toggleClass("open");375 });376 377 /β/β -------------378 /β/β donar header379 380 $(".btn_donar a").click(function() {381 $(".btn_donar a").toggleClass("open");382 $(".btn_donacion .resultados_donar").toggleClass("open");383 });384 385 $(".resultados_donar .close-button").click(function() {386 $(".btn_donar a").toggleClass("open");387 $(".btn_donacion .resultados_donar").toggleClass("open");388 });389 390 /β/β -------------391 /β/β educacion calidad392 393 $(".btn_ODS .logo_ODS").click(function() {394 $(".btn_ODS .logo_ODS").toggleClass("open");395 $(".aliados .resultados_ODS").toggleClass("open");396 });397 398 $(".resultados_ODS .close-button").click(function() {399 $(".btn_ODS .logo_ODS").toggleClass("open");400 $(".aliados .resultados_ODS").toggleClass("open");401 });402 403 /β/β -------------404 /β/β aliados405 406 $(".btn_aliados a").click(function() {407 $(".btn_aliados a").toggleClass("open");408 $(".aliados .resultados_aliados").toggleClass("open");409 });410 411 $(".resultados_aliados .close-button").click(function() {412 $(".btn_aliados a").toggleClass("open");413 $(".aliados .resultados_aliados").toggleClass("open");414 });415 416 417 /β/β -------------418 /β/β pop up inicial419 420 $(".popup-enter .close-button").click(function() {421 $(".popup-enter").toggleClass("close");422 });423 424 425 /β/β -------------426 /β/β resultados entidades aliadas427 428 $(".acordion7 a").click(function() {429 $(".content_accordion_7").toggleClass("open");430 $(".acordion7 a").toggleClass("open");431 });432 433 $(".content_accordion_7 .close-button").click(function() {434 $(".content_accordion_7").toggleClass("open");435 $(".acordion7 a").toggleClass("open");436 });437 438 439 $(document).ready(function(){440 $('.slider-becas').slick({441 slidesToShow: 3,442 slidesToScroll: 1,443 autoplay: true,444 autoplaySpeed: 3000,445 infinite: false,446 arrows:true,447 infinite: true,448 cssEase: 'linear',449 swipe: false,450 pauseOnHover:true,451 prevArrow: $('.next'),452 nextArrow: $('.prev'),453 /β/β the magic454 responsive: [455 {456 breakpoint: 991,457 settings: {458 slidesToShow: 2,459 infinite: true,460 settings: 'unslick'461 }462 463 }, 464 {465 breakpoint: 768,466 settings: {467 slidesToShow: 1,468 infinite: true,469 settings: 'unslick'470 }471 472 }]473 });474 });475 476 $(document).ready(function(){477 $('.slider-videos').slick({478 slidesToShow: 1,479 slidesToScroll: 1,480 autoplay: true,481 autoplaySpeed: 3000,482 infinite: true,483 arrows:true,484 infinite: true,485 cssEase: 'linear',486 swipe: false,487 pauseOnHover:true,488 prevArrow: $('.next1'),489 nextArrow: $('.prev1'),490 });491 });492 493 $(document).ready(function(){494 $('.slider-becas-2').slick({495 slidesToShow: 3,496 slidesToScroll: 1,497 autoplay: true,498 autoplaySpeed: 3000,499 infinite: true,500 arrows:true,501 infinite: true,502 cssEase: 'linear',503 swipe: false,504 pauseOnHover:true,505 prevArrow: $('.next2'),506 nextArrow: $('.prev2'),507 /β/β the magic508 responsive: [509 {510 breakpoint: 991,511 settings: {512 slidesToShow: 2,513 infinite: true,514 settings: 'unslick'515 }516 517 }, 518 {519 breakpoint: 768,520 settings: {521 slidesToShow: 1,522 infinite: true,523 settings: 'unslick'524 }525 526 }]527 });528 });529 530 $(document).ready(function(){531 $('.slider-aliados').slick({532 dots: true,533 slidesToShow: 4,534 slidesToScroll: 1,535 autoplay: true,536 autoplaySpeed: 3000,537 infinite: false,538 arrows:false,539 infinite: true,540 cssEase: 'linear',541 swipe: false,542 pauseOnHover:true,543 /β/β the magic544 responsive: [545 {546 breakpoint: 991,547 settings: {548 slidesToShow: 2,549 infinite: true,550 settings: 'unslick'551 }552 553 }, 554 {555 breakpoint: 768,556 settings: {557 slidesToShow: 1,558 infinite: true,559 settings: 'unslick'560 }561 562 }]563 });564 });565 566 ...
cases.js
Source:cases.js
1var xml = new OpenLayers.Format.XML(); 2function readXML(file) {3 return xml.read(document.getElementById(file).firstChild.nodeValue);4}5var cases = {6 "v2/βpoint-coord.xml": new OpenLayers.Geometry.Point(1, 2),7 "v2/βpoint-coordinates.xml": new OpenLayers.Geometry.Point(1, 2),8 "v2/βlinestring-coord.xml": new OpenLayers.Geometry.LineString([9 new OpenLayers.Geometry.Point(1, 2),10 new OpenLayers.Geometry.Point(3, 4)11 ]),12 13 "v2/βlinestring-coordinates.xml": new OpenLayers.Geometry.LineString([14 new OpenLayers.Geometry.Point(1, 2),15 new OpenLayers.Geometry.Point(3, 4)16 ]),17 18 "v2/βlinearring-coord.xml": new OpenLayers.Geometry.LinearRing([19 new OpenLayers.Geometry.Point(1, 2),20 new OpenLayers.Geometry.Point(3, 4),21 new OpenLayers.Geometry.Point(5, 6),22 new OpenLayers.Geometry.Point(1, 2)23 ]),24 25 "v2/βlinearring-coordinates.xml": new OpenLayers.Geometry.LinearRing([26 new OpenLayers.Geometry.Point(1, 2),27 new OpenLayers.Geometry.Point(3, 4),28 new OpenLayers.Geometry.Point(5, 6),29 new OpenLayers.Geometry.Point(1, 2)30 ]),31 32 "v2/βpolygon-coord.xml": new OpenLayers.Geometry.Polygon([33 new OpenLayers.Geometry.LinearRing([34 new OpenLayers.Geometry.Point(1, 2),35 new OpenLayers.Geometry.Point(3, 4),36 new OpenLayers.Geometry.Point(5, 6),37 new OpenLayers.Geometry.Point(1, 2)38 ]),39 new OpenLayers.Geometry.LinearRing([40 new OpenLayers.Geometry.Point(2, 3),41 new OpenLayers.Geometry.Point(4, 5),42 new OpenLayers.Geometry.Point(6, 7),43 new OpenLayers.Geometry.Point(2, 3)44 ]),45 new OpenLayers.Geometry.LinearRing([46 new OpenLayers.Geometry.Point(3, 4),47 new OpenLayers.Geometry.Point(5, 6),48 new OpenLayers.Geometry.Point(7, 8),49 new OpenLayers.Geometry.Point(3, 4)50 ])51 ]),52 53 "v2/βpolygon-coordinates.xml": new OpenLayers.Geometry.Polygon([54 new OpenLayers.Geometry.LinearRing([55 new OpenLayers.Geometry.Point(1, 2),56 new OpenLayers.Geometry.Point(3, 4),57 new OpenLayers.Geometry.Point(5, 6),58 new OpenLayers.Geometry.Point(1, 2)59 ]),60 new OpenLayers.Geometry.LinearRing([61 new OpenLayers.Geometry.Point(2, 3),62 new OpenLayers.Geometry.Point(4, 5),63 new OpenLayers.Geometry.Point(6, 7),64 new OpenLayers.Geometry.Point(2, 3)65 ]),66 new OpenLayers.Geometry.LinearRing([67 new OpenLayers.Geometry.Point(3, 4),68 new OpenLayers.Geometry.Point(5, 6),69 new OpenLayers.Geometry.Point(7, 8),70 new OpenLayers.Geometry.Point(3, 4)71 ])72 ]),73 74 "v2/βmultipoint-coord.xml": new OpenLayers.Geometry.MultiPoint([75 new OpenLayers.Geometry.Point(1, 2),76 new OpenLayers.Geometry.Point(2, 3),77 new OpenLayers.Geometry.Point(3, 4)78 ]),79 80 "v2/βmultipoint-coordinates.xml": new OpenLayers.Geometry.MultiPoint([81 new OpenLayers.Geometry.Point(1, 2),82 new OpenLayers.Geometry.Point(2, 3),83 new OpenLayers.Geometry.Point(3, 4)84 ]),85 86 "v2/βmultilinestring-coord.xml": new OpenLayers.Geometry.MultiLineString([87 new OpenLayers.Geometry.LineString([88 new OpenLayers.Geometry.Point(1, 2),89 new OpenLayers.Geometry.Point(2, 3)90 ]),91 new OpenLayers.Geometry.LineString([92 new OpenLayers.Geometry.Point(3, 4),93 new OpenLayers.Geometry.Point(4, 5)94 ])95 ]),96 97 "v2/βmultilinestring-coordinates.xml": new OpenLayers.Geometry.MultiLineString([98 new OpenLayers.Geometry.LineString([99 new OpenLayers.Geometry.Point(1, 2),100 new OpenLayers.Geometry.Point(2, 3)101 ]),102 new OpenLayers.Geometry.LineString([103 new OpenLayers.Geometry.Point(3, 4),104 new OpenLayers.Geometry.Point(4, 5)105 ])106 ]),107 108 "v2/βmultipolygon-coord.xml": new OpenLayers.Geometry.MultiPolygon([109 new OpenLayers.Geometry.Polygon([110 new OpenLayers.Geometry.LinearRing([111 new OpenLayers.Geometry.Point(1, 2),112 new OpenLayers.Geometry.Point(3, 4),113 new OpenLayers.Geometry.Point(5, 6),114 new OpenLayers.Geometry.Point(1, 2)115 ]),116 new OpenLayers.Geometry.LinearRing([117 new OpenLayers.Geometry.Point(2, 3),118 new OpenLayers.Geometry.Point(4, 5),119 new OpenLayers.Geometry.Point(6, 7),120 new OpenLayers.Geometry.Point(2, 3)121 ]),122 new OpenLayers.Geometry.LinearRing([123 new OpenLayers.Geometry.Point(3, 4),124 new OpenLayers.Geometry.Point(5, 6),125 new OpenLayers.Geometry.Point(7, 8),126 new OpenLayers.Geometry.Point(3, 4)127 ])128 ]),129 new OpenLayers.Geometry.Polygon([130 new OpenLayers.Geometry.LinearRing([131 new OpenLayers.Geometry.Point(1, 2),132 new OpenLayers.Geometry.Point(3, 4),133 new OpenLayers.Geometry.Point(5, 6),134 new OpenLayers.Geometry.Point(1, 2)135 ])136 ])137 ]),138 139 "v2/βmultipolygon-coordinates.xml": new OpenLayers.Geometry.MultiPolygon([140 new OpenLayers.Geometry.Polygon([141 new OpenLayers.Geometry.LinearRing([142 new OpenLayers.Geometry.Point(1, 2),143 new OpenLayers.Geometry.Point(3, 4),144 new OpenLayers.Geometry.Point(5, 6),145 new OpenLayers.Geometry.Point(1, 2)146 ]),147 new OpenLayers.Geometry.LinearRing([148 new OpenLayers.Geometry.Point(2, 3),149 new OpenLayers.Geometry.Point(4, 5),150 new OpenLayers.Geometry.Point(6, 7),151 new OpenLayers.Geometry.Point(2, 3)152 ]),153 new OpenLayers.Geometry.LinearRing([154 new OpenLayers.Geometry.Point(3, 4),155 new OpenLayers.Geometry.Point(5, 6),156 new OpenLayers.Geometry.Point(7, 8),157 new OpenLayers.Geometry.Point(3, 4)158 ])159 ]),160 new OpenLayers.Geometry.Polygon([161 new OpenLayers.Geometry.LinearRing([162 new OpenLayers.Geometry.Point(1, 2),163 new OpenLayers.Geometry.Point(3, 4),164 new OpenLayers.Geometry.Point(5, 6),165 new OpenLayers.Geometry.Point(1, 2)166 ])167 ])168 ]),169 170 "v2/βgeometrycollection-coordinates.xml": new OpenLayers.Geometry.Collection([171 new OpenLayers.Geometry.Point(1, 2),172 new OpenLayers.Geometry.LineString([173 new OpenLayers.Geometry.Point(1, 2),174 new OpenLayers.Geometry.Point(3, 4)175 ]),176 new OpenLayers.Geometry.Polygon([177 new OpenLayers.Geometry.LinearRing([178 new OpenLayers.Geometry.Point(1, 2),179 new OpenLayers.Geometry.Point(3, 4),180 new OpenLayers.Geometry.Point(5, 6),181 new OpenLayers.Geometry.Point(1, 2)182 ]),183 new OpenLayers.Geometry.LinearRing([184 new OpenLayers.Geometry.Point(2, 3),185 new OpenLayers.Geometry.Point(4, 5),186 new OpenLayers.Geometry.Point(6, 7),187 new OpenLayers.Geometry.Point(2, 3)188 ]),189 new OpenLayers.Geometry.LinearRing([190 new OpenLayers.Geometry.Point(3, 4),191 new OpenLayers.Geometry.Point(5, 6),192 new OpenLayers.Geometry.Point(7, 8),193 new OpenLayers.Geometry.Point(3, 4)194 ])195 ])196 ]),197 "v2/βbox-coord.xml": new OpenLayers.Bounds(1, 2, 3, 4),198 199 "v2/βbox-coordinates.xml": new OpenLayers.Bounds(1, 2, 3, 4)200 201};202/β/β cases for v3 use the same geometries203OpenLayers.Util.extend(cases, {204 "v3/βpoint.xml": cases["v2/βpoint-coordinates.xml"],205 "v3/βlinestring.xml": cases["v2/βlinestring-coordinates.xml"],206 "v3/βcurve.xml": cases["v2/βlinestring-coordinates.xml"],207 "v3/βpolygon.xml": cases["v2/βpolygon-coordinates.xml"],208 "v3/βsurface.xml": cases["v2/βpolygon-coordinates.xml"],209 "v3/βmultipoint-singular.xml": cases["v2/βmultipoint-coordinates.xml"],210 "v3/βmultipoint-plural.xml": cases["v2/βmultipoint-coordinates.xml"],211 "v3/βmultilinestring-singular.xml": cases["v2/βmultilinestring-coordinates.xml"],212 "v3/βmultilinestring-plural.xml": cases["v2/βmultilinestring-coordinates.xml"],213 "v3/βmulticurve-singular.xml": cases["v2/βmultilinestring-coordinates.xml"],214 "v3/βmulticurve-curve.xml": cases["v2/βmultilinestring-coordinates.xml"],215 "v3/βmultipolygon-singular.xml": cases["v2/βmultipolygon-coordinates.xml"],216 "v3/βmultipolygon-plural.xml": cases["v2/βmultipolygon-coordinates.xml"],217 "v3/βmultisurface-singular.xml": cases["v2/βmultipolygon-coordinates.xml"],218 "v3/βmultisurface-plural.xml": cases["v2/βmultipolygon-coordinates.xml"],219 "v3/βmultisurface-surface.xml": cases["v2/βmultipolygon-coordinates.xml"],220 "v3/βenvelope.xml": cases["v2/βbox-coordinates.xml"]...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!