-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into minor-map-improvements
- Loading branch information
Showing
8 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
comment: false | ||
coverage: | ||
status: | ||
# We have some variation in tests due to variations in the test runs. We | ||
# want to ignore these changes, but not let code coverage slip too much. | ||
project: | ||
default: | ||
threshold: 0.1 | ||
# This applies to the changed code. We allow it to be much less covered | ||
# than the main code, since we use the project threshold for that. | ||
patch: | ||
default: | ||
threshold: 25 | ||
only_pulls: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ Testing infrastructure | |
:maxdepth: 2 | ||
|
||
baseline_images | ||
upload_test_cases |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function fixEventName(event) { | ||
return event.replace('event:', ''); | ||
} | ||
|
||
/** | ||
* Define a jsdoc plugin to replace the `longname` of | ||
* event doclets from `geo.event.event:pan` to `geo.event.pan`. | ||
*/ | ||
exports.handlers = { | ||
/** | ||
* Replace the `longname` of all event doclets. | ||
*/ | ||
newDoclet: function (e) { | ||
var doclet = e.doclet; | ||
if (doclet.kind === 'event') { | ||
doclet.longname = fixEventName(doclet.longname); | ||
} | ||
}, | ||
|
||
/** | ||
* Replace the displayed name of events to match the changed | ||
* doclet names. | ||
*/ | ||
parseComplete: function (e) { | ||
e.doclets.forEach(function (doclet) { | ||
if (doclet.fires) { | ||
doclet.fires = doclet.fires.map(fixEventName); | ||
} | ||
if (doclet.listens) { | ||
doclet.listens = doclet.listens.map(fixEventName); | ||
} | ||
}); | ||
} | ||
}; |