Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • fabcat/vmap
1 result
Select Git revision
Show changes
Showing
with 13571 additions and 1 deletion
#!/usr/bin/env python
#
# Copyright 2010 The Closure Library Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Unit test for source."""
__author__ = 'nnaze@google.com (Nathan Naze)'
import unittest
import source
class SourceTestCase(unittest.TestCase):
"""Unit test for source. Tests the parser on a known source input."""
def testSourceScan(self):
test_source = source.Source(_TEST_SOURCE)
self.assertEqual(set(['foo', 'foo.test']),
test_source.provides)
self.assertEqual(set(['goog.dom', 'goog.events.EventType']),
test_source.requires)
self.assertFalse(test_source.is_goog_module)
def testSourceScanBase(self):
test_source = source.Source(_TEST_BASE_SOURCE)
self.assertEqual(set(['goog']),
test_source.provides)
self.assertEqual(test_source.requires, set())
self.assertFalse(test_source.is_goog_module)
def testSourceScanBadBase(self):
def MakeSource():
source.Source(_TEST_BAD_BASE_SOURCE)
self.assertRaises(Exception, MakeSource)
def testSourceScanGoogModule(self):
test_source = source.Source(_TEST_MODULE_SOURCE)
self.assertEqual(set(['foo']),
test_source.provides)
self.assertEqual(set(['bar']),
test_source.requires)
self.assertTrue(test_source.is_goog_module)
def testStripComments(self):
self.assertEquals(
'\nvar foo = function() {}',
source.Source._StripComments((
'/* This is\n'
' a comment split\n'
' over multiple lines\n'
'*/\n'
'var foo = function() {}')))
def testGoogStatementsInComments(self):
test_source = source.Source(_TEST_COMMENT_SOURCE)
self.assertEqual(set(['foo']),
test_source.provides)
self.assertEqual(set(['goog.events.EventType']),
test_source.requires)
self.assertFalse(test_source.is_goog_module)
def testHasProvideGoog(self):
self.assertTrue(source.Source._HasProvideGoogFlag(_TEST_BASE_SOURCE))
self.assertTrue(source.Source._HasProvideGoogFlag(_TEST_BAD_BASE_SOURCE))
self.assertFalse(source.Source._HasProvideGoogFlag(_TEST_COMMENT_SOURCE))
_TEST_MODULE_SOURCE = """
goog.module('foo');
var b = goog.require('bar');
"""
_TEST_SOURCE = """// Fake copyright notice
/** Very important comment. */
goog.provide('foo');
goog.provide('foo.test');
goog.require('goog.dom');
goog.require('goog.events.EventType');
function foo() {
// Set bar to seventeen to increase performance.
this.bar = 17;
}
"""
_TEST_COMMENT_SOURCE = """// Fake copyright notice
goog.provide('foo');
/*
goog.provide('foo.test');
*/
/*
goog.require('goog.dom');
*/
// goog.require('goog.dom');
goog.require('goog.events.EventType');
function bar() {
this.baz = 55;
}
"""
_TEST_BASE_SOURCE = """
/**
* @fileoverview The base file.
* @provideGoog
*/
var goog = goog || {};
"""
_TEST_BAD_BASE_SOURCE = """
/**
* @fileoverview The base file.
* @provideGoog
*/
goog.provide('goog');
"""
if __name__ == '__main__':
unittest.main()
#!/usr/bin/env python
#
# Copyright 2010 The Closure Library Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Shared utility functions for scanning directory trees."""
import os
import re
__author__ = 'nnaze@google.com (Nathan Naze)'
# Matches a .js file path.
_JS_FILE_REGEX = re.compile(r'^.+\.js$')
def ScanTreeForJsFiles(root):
"""Scans a directory tree for JavaScript files.
Args:
root: str, Path to a root directory.
Returns:
An iterable of paths to JS files, relative to cwd.
"""
return ScanTree(root, path_filter=_JS_FILE_REGEX)
def ScanTree(root, path_filter=None, ignore_hidden=True):
"""Scans a directory tree for files.
Args:
root: str, Path to a root directory.
path_filter: A regular expression filter. If set, only paths matching
the path_filter are returned.
ignore_hidden: If True, do not follow or return hidden directories or files
(those starting with a '.' character).
Yields:
A string path to files, relative to cwd.
"""
def OnError(os_error):
raise os_error
for dirpath, dirnames, filenames in os.walk(root, onerror=OnError):
# os.walk allows us to modify dirnames to prevent decent into particular
# directories. Avoid hidden directories.
for dirname in dirnames:
if ignore_hidden and dirname.startswith('.'):
dirnames.remove(dirname)
for filename in filenames:
# nothing that starts with '.'
if ignore_hidden and filename.startswith('.'):
continue
fullpath = os.path.join(dirpath, filename)
if path_filter and not path_filter.match(fullpath):
continue
yield os.path.normpath(fullpath)
This diff is collapsed.
/**
* @externs
*/
/**
* @constructor
*/
var BingMapsCoverageArea = function() {};
/**
* @type {Array.<number>}
*/
BingMapsCoverageArea.prototype.bbox;
/**
* @type {number}
*/
BingMapsCoverageArea.prototype.zoomMax;
/**
* @type {number}
*/
BingMapsCoverageArea.prototype.zoomMin;
/**
* @constructor
*/
var BingMapsImageryProvider = function() {};
/**
* @type {string}
*/
BingMapsImageryProvider.prototype.attribution;
/**
* @type {Array.<BingMapsCoverageArea>}
*/
BingMapsImageryProvider.prototype.coverageAreas;
/**
* @constructor
*/
var BingMapsImageryMetadataResponse = function() {};
/**
* @type {string}
*/
BingMapsImageryMetadataResponse.prototype.authenticationResultCode;
/**
* @type {string}
*/
BingMapsImageryMetadataResponse.prototype.brandLogoUri;
/**
* @type {string}
*/
BingMapsImageryMetadataResponse.prototype.copyright;
/**
* @type {Array.<BingMapsResourceSet>}
*/
BingMapsImageryMetadataResponse.prototype.resourceSets;
/**
* @type {number}
*/
BingMapsImageryMetadataResponse.prototype.statusCode;
/**
* @type {string}
*/
BingMapsImageryMetadataResponse.prototype.statusDescription;
/**
* @type {string}
*/
BingMapsImageryMetadataResponse.prototype.traceId;
/**
* @constructor
*/
var BingMapsResource = function() {};
/**
* @type {number}
*/
BingMapsResource.prototype.imageHeight;
/**
* @type {string}
*/
BingMapsResource.prototype.imageUrl;
/**
* @type {Array.<string>}
*/
BingMapsResource.prototype.imageUrlSubdomains;
/**
* @type {number}
*/
BingMapsResource.prototype.imageWidth;
/**
* @type {Array.<BingMapsImageryProvider>}
*/
BingMapsResource.prototype.imageryProviders;
/**
* @type {Object}
*/
BingMapsResource.prototype.vintageEnd;
/**
* @type {Object}
*/
BingMapsResource.prototype.vintageStart;
/**
* @type {number}
*/
BingMapsResource.prototype.zoomMax;
/**
* @type {number}
*/
BingMapsResource.prototype.zoomMin;
/**
* @constructor
*/
var BingMapsResourceSet = function() {};
/**
* @type {number}
*/
BingMapsResourceSet.prototype.estimatedTotal;
/**
* @type {Array.<BingMapsResource>}
*/
BingMapsResourceSet.prototype.resources;
\ No newline at end of file
/**
* @fileoverview Externs for Twitter Bootstrap
* @see http://twitter.github.com/bootstrap/
*
* @author Qamal Kosim-Satyaputra
* @externs
*/
// --- Modal ---
/** @constructor */
jQuery.modal.options = function() {};
/** @type {boolean} */
jQuery.modal.options.prototype.backdrop;
/** @type {boolean} */
jQuery.modal.options.prototype.keyboard;
/** @type {boolean} */
jQuery.modal.options.prototype.show;
/**
* @param {=(string|jQuery.modal.options)} opt_eventOrOptions
* @return {jQuery}
*/
jQuery.prototype.modal = function(opt_eventOrOptions) {};
// --- Dropdown ---
/**
* @return {jQuery}
*/
jQuery.prototype.dropdown = function() {};
// --- Scroll Spy ---
/** @constructor */
jQuery.scrollspy.options = function() {};
/** @type {number} */
jQuery.scrollspy.options.prototype.offset;
/**
* @param {=jQuery.scrollspy.options} opt_options
* @return {jQuery}
*/
jQuery.prototype.scrollspy = function(opt_options) {};
// --- Tabs ---
/**
* @param {=string} opt_event
* @return {jQuery}
*/
jQuery.prototype.tab = function(opt_event) {};
// --- Tooltips ---
/** @constructor */
jQuery.tooltip.options = function() {};
/** @type {boolean} */
jQuery.tooltip.prototype.animation;
/** @type {string|function} */
jQuery.tooltip.prototype.placement;
/** @type {string} */
jQuery.tooltip.prototype.selector;
/** @type {string|function} */
jQuery.tooltip.prototype.title;
/** @type {string} */
jQuery.tooltip.prototype.trigger;
/** @type {number|{show: number, hide: number}} */
jQuery.tooltip.prototype.delay;
/**
* @param {=(string|jQuery.tooltip.options)} opt_eventOrOptions
* @return {jQuery}
*/
jQuery.prototype.tooltip = function(opt_eventOrOptions) {};
// --- Popovers ---
/** @constructor */
jQuery.popover.options = function() {};
/** @type {boolean} */
jQuery.popover.prototype.animation;
/** @type {string|function} */
jQuery.popover.prototype.placement;
/** @type {string} */
jQuery.popover.prototype.selector;
/** @type {string} */
jQuery.popover.prototype.trigger;
/** @type {string|function} */
jQuery.popover.prototype.title;
/** @type {string|function} */
jQuery.popover.prototype.content;
/** @type {number|{show: number, hide: number}} */
jQuery.popover.prototype.delay;
/**
* @param {=(string|jQuery.tooltip.options)} opt_eventOrOptions
* @return {jQuery}
*/
jQuery.prototype.popover = function(opt_eventOrOptions) {};
// --- Alerts ---
/**
* @param {=string} opt_event
* @return {jQuery}
*/
jQuery.prototype.alert = function(opt_event) {};
// --- Buttons ---
/**
* @param {=string} opt_state
* @return {jQuery}
*/
jQuery.prototype.button = function(opt_state) {};
// --- Collapse ---
/** @constructor */
jQuery.collapse.options = function() {};
/** @type {jQuerySelector} */
jQuery.collapse.options.prototype.parent;
/** @type {boolean} */
jQuery.collapse.options.prototype.toggle;
/**
* @param {=(string|jQuery.collapse.options)} opt_eventOrOptions
*/
jQuery.prototype.collapse = function(opt_eventOrOptions) {};
// --- Carousel ---
/** @constructor */
jQuery.carousel.options = function() {};
/** @type {number} */
jQuery.carousel.options.prototype.interval;
/** @type {string} */
jQuery.carousel.options.prototype.pause;
/**
* @param {=(string|jQuery.carousel.options})} opt_eventOrOptions
*/
jQuery.prototype.carousel = function(opt_eventOrOptions) {};
// --- Typeahead ---
/** @constructor */
jQuery.typeahead.options = function() {};
/** @type {Array} */
jQuery.typeahead.options.prototype.source;
/** @type {number} */
jQuery.typeahead.options.prototype.items;
/** @type {function} */
jQuery.typeahead.options.prototype.matcher;
/** @type {function} */
jQuery.typeahead.options.prototype.sorter;
/** @type {function} */
jQuery.typeahead.options.prototype.highlighter;
/**
* @param {=(string|jQuery.typeahead.options)} opt_options
* @return {jQuery}
*/
jQuery.prototype.typeahead = function(opt_options) {};
/**
* @param {Element|jQuery|jQuerySelector}
* @param {=jQuery.typeahead.options} opt_options
* @return {jQuery}
*/
jQuery.prototype.typeahead.Constructor = function(element, opt_options) {};
\ No newline at end of file
/**
* @fileoverview Externs for GeoJSON.
* @see http://geojson.org/geojson-spec.html
* @externs
*/
/**
* @constructor
*/
var GeoJSONObject = function() {};
/**
* @type {!Array.<number>|undefined}
*/
GeoJSONObject.prototype.bbox;
/**
* @type {string}
*/
GeoJSONObject.prototype.type;
/**
* @type {!GeoJSONCRS|undefined}
*/
GeoJSONObject.prototype.crs;
/**
* @constructor
*/
var GeoJSONCRS = function() {};
/**
* CRS type. One of `link` or `name`.
* @type {string}
*/
GeoJSONCRS.prototype.type;
/**
* TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996
* is fixed and widely deployed.
* @type {!GeoJSONCRSCode|!GeoJSONCRSName|!GeoJSONLink}
*/
GeoJSONCRS.prototype.properties;
/**
* `GeoJSONCRSCode` is not part of the GeoJSON specification, but is generated
* by GeoServer.
* TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996
* is fixed and widely deployed.
* @constructor
*/
var GeoJSONCRSCode = function() {};
/**
* @constructor
*/
var GeoJSONCRSName = function() {};
/**
* TODO: remove this when http://jira.codehaus.org/browse/GEOS-5996 is fixed
* and widely deployed.
* @type {string}
*/
GeoJSONCRSName.prototype.code;
/**
* @type {string}
*/
GeoJSONCRSName.prototype.name;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONGeometry = function() {};
/**
* @type {!Array.<number>|!Array.<!Array.<number>>|
* !Array.<!Array.<!Array.<number>>>}
*/
GeoJSONGeometry.prototype.coordinates;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONGeometryCollection = function() {};
/**
* @type {!Array.<GeoJSONGeometry>}
*/
GeoJSONGeometryCollection.prototype.geometries;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONFeature = function() {};
/**
* @type {GeoJSONGeometry|GeoJSONGeometryCollection}
*/
GeoJSONFeature.prototype.geometry;
/**
* @type {number|string|undefined}
*/
GeoJSONFeature.prototype.id;
/**
* @type {Object.<string, *>}
*/
GeoJSONFeature.prototype.properties;
/**
* @constructor
* @extends {GeoJSONObject}
*/
var GeoJSONFeatureCollection = function() {};
/**
* @type {!Array.<GeoJSONFeature>}
*/
GeoJSONFeatureCollection.prototype.features;
/**
* @constructor
*/
var GeoJSONLink = function() {};
/**
* @type {string}
*/
GeoJSONLink.prototype.href;
/**
* @type {string}
*/
GeoJSONLink.prototype.type;
\ No newline at end of file
/**
*
* @param {type} arg1
* @param {type} arg2
* @returns {html2canvas}
*/
function html2canvas (arg1, arg2) {};
This diff is collapsed.
/**
*
* @param {type} arg1
* @returns {jsPDF}
*/
function jsPDF (arg1) {};
/**
*
* @param {type} arg1
* @param {type} arg2
* @param {type} arg3
* @param {type} arg4
* @returns {undefined}
*/
jsPDF.prototype.fromHTML = function (arg1, arg2, arg3, arg4) {};
/**
*
* @param {type} arg1
* @param {type} arg2
* @param {type} arg3
* @param {type} arg4
* @param {type} arg5
* @param {type} arg6
* @returns {undefined}
*/
jsPDF.prototype.addImage = function (arg1, arg2, arg3, arg4, arg5, arg6) {};
/**
*
* @param {type} arg1
* @returns {undefined}
*/
jsPDF.prototype.save = function (arg1) {};
/**
*
* @param {type} arg1
* @returns {undefined}
*/
jsPDF.prototype.setPage = function (arg1) {};
/**
*
* @param {type} arg1
* @param {type} arg2
* @returns {undefined}
*/
jsPDF.prototype.addHTML = function (arg1, arg2) {};
/**
* @author: Armand Bahi
* @Description: Fichier contenant les externs: fonctions à ne pas renommer durant la compilation
* @externs
*/
/**
* Function for initialise the bootstrap toggle switch checkbox plugin
* @constructor
* @param {object} arg1
*/
function bootstrapToggle(arg1) {}
/**
* Function for initialise the bootstrap colorpicker plugin
* @constructor
* @param {object} arg1
*/
function colorpicker(arg1) {}
/**
* Function for initialise the bootstrap table plugin
* @constructor
* @param {object} arg1
*/
function bootstrapTable(arg1) {}
/**
* @param {object} arg1
* @return {!jQuery}
*/
function sortable(arg1) {}
/**
*
* @param {string} key
* @returns {undefined}
*/
ol.Object.prototype.get = function (key) {}
/**
* Get the collection of layers associated with this map.
* @return {!ol.Collection.<ol.layer.Base>} Layers.
* @api stable
*/
ol.Map.prototype.getLayers = function () {}
/**
* Return the visibility of the layer (`true` or `false`).
* @return {boolean} The visibility of the layer.
* @observable
* @api stable
*/
ol.layer.Base.prototype.getVisible = function () {}
/**
* Set the visibility of the layer (`true` or `false`).
* @param {boolean} visible The visibility of the layer.
* @observable
* @api stable
*/
ol.layer.Base.prototype.setVisible = function (visible) {}
/**
* The tile related to the event.
* @type {ol.Tile}
* @api
*/
ol.source.TileEvent.tile
/**
* @type {string}
* @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property
*/
CSSProperties.prototype.touchAction;
\ No newline at end of file
Subproject commit e0f852bd97334f8f000a5ca193c57e1035c45812
Module ANC 2018.03.00 for Vitis
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<installer>
<schema>
<name>s_anc</name>
<dependenciesCollection>
<dependency>
<nature>schema</nature>
<name>s_vitis</name>
<object>vitis</object>
</dependency>
<dependency>
<nature>schema</nature>
<name>s_cadastre</name>
<object>module_cadastreV2</object>
</dependency>
<dependency>
<name>postgis</name>
<version>2.0</version>
<nature>extern-pre</nature>
</dependency>
</dependenciesCollection>
</schema>
<dependenciesCollection>
<dependency>
<nature>framework</nature>
<name>vitis</name>
</dependency>
<dependency>
<nature>modules</nature>
<name>module_vmap</name>
</dependency>
</dependenciesCollection>
</installer>