mirror of
https://github.com/Leaflet/Leafdoc.git
synced 2025-07-20 18:27:28 +00:00
Add e2e tests for _ and $ JS identifiers
This commit is contained in:
8
spec/e2e/javascript-identifiers/identifiers.js
Normal file
8
spec/e2e/javascript-identifiers/identifiers.js
Normal file
@ -0,0 +1,8 @@
|
||||
// 🍂class $
|
||||
// jQuery stuff.
|
||||
// 🍂function _each(arr: Array, fn: Function): undefined
|
||||
// Returns a random number between 0.0 and 1.0
|
||||
export function _each(foo, bar) {
|
||||
// Do something here.
|
||||
}
|
||||
|
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table td, table th {
|
||||
border: 1px solid #888;
|
||||
}
|
||||
pre code {
|
||||
display: inline-block;
|
||||
background: #eee;
|
||||
}
|
||||
td:last-child code {
|
||||
background: #eee;
|
||||
}
|
||||
body {
|
||||
font-family: Sans;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Leafdoc generated API reference</h2>
|
||||
|
||||
<h2 id='$'>$</h2>
|
||||
<p>jQuery stuff.</p>
|
||||
|
||||
<h3 id='$-function'>Functions</h3>
|
||||
|
||||
<section>
|
||||
|
||||
|
||||
<table><thead>
|
||||
<tr>
|
||||
<th>Function</th>
|
||||
<th>Returns</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr id='$-_each'>
|
||||
<td><code><b>_each</b>(<nobr><Array> <i>arr</i></nobr>, <nobr><Function> <i>fn</i></nobr>)</nobr></code></td>
|
||||
<td><code>undefined</code></td>
|
||||
<td>Returns a random number between 0.0 and 1.0</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
@ -0,0 +1,53 @@
|
||||
{
|
||||
"$": {
|
||||
"name": "$",
|
||||
"aka": [],
|
||||
"comments": [
|
||||
"jQuery stuff."
|
||||
],
|
||||
"supersections": {
|
||||
"function": {
|
||||
"name": "function",
|
||||
"aka": [],
|
||||
"comments": [],
|
||||
"sections": {
|
||||
"__default": {
|
||||
"name": "__default",
|
||||
"aka": [],
|
||||
"comments": [],
|
||||
"uninheritable": false,
|
||||
"documentables": {
|
||||
"_each": {
|
||||
"name": "_each",
|
||||
"aka": [],
|
||||
"comments": [
|
||||
"Returns a random number between 0.0 and 1.0"
|
||||
],
|
||||
"params": {
|
||||
"arr": {
|
||||
"name": "arr",
|
||||
"type": "Array"
|
||||
},
|
||||
"fn": {
|
||||
"name": "fn",
|
||||
"type": "Function"
|
||||
}
|
||||
},
|
||||
"type": "undefined",
|
||||
"optional": false,
|
||||
"defaultValue": null,
|
||||
"id": "$-_each"
|
||||
}
|
||||
},
|
||||
"type": "function",
|
||||
"id": "$-function"
|
||||
}
|
||||
},
|
||||
"id": "$-function"
|
||||
}
|
||||
},
|
||||
"inherits": [],
|
||||
"relationships": [],
|
||||
"id": "$"
|
||||
}
|
||||
}
|
4
spec/e2e/javascript-identifiers/leafdoc-options.json
Normal file
4
spec/e2e/javascript-identifiers/leafdoc-options.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"templateDir": "./templates/basic",
|
||||
"leadingCharacter": "🍂"
|
||||
}
|
Reference in New Issue
Block a user