diff options
author | Anna Henningsen <anna@addaleax.net> | 2016-05-01 01:51:38 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2016-05-05 01:15:10 +0200 |
commit | 00ffa335641b20118fed6ae9b005154fa28e1ea7 (patch) | |
tree | 35c031095bf2d238984c3b55760fe727439925eb /test/doctool/test-doctool-json.js | |
parent | 1b365f60f047f8f2b9846286819b0b06b3a66fbf (diff) | |
download | android-node-v8-00ffa335641b20118fed6ae9b005154fa28e1ea7.tar.gz android-node-v8-00ffa335641b20118fed6ae9b005154fa28e1ea7.tar.bz2 android-node-v8-00ffa335641b20118fed6ae9b005154fa28e1ea7.zip |
tools: allow multiple added: version entries
Allow multiple `added:` version entries, since semver-minors
can trickle down to previous major versions, and thus
features may have been added in multiple versions.
Also include `deprecated:` entries and apply the same logic
to them for consistency.
Stylize the added HTML as `Added in:` and `Deprecated since:`.
PR-URL: https://github.com/nodejs/node/pull/6495
Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/doctool/test-doctool-json.js')
-rw-r--r-- | test/doctool/test-doctool-json.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/doctool/test-doctool-json.js b/test/doctool/test-doctool-json.js index ed7eb64a0e..83563cb2d2 100644 --- a/test/doctool/test-doctool-json.js +++ b/test/doctool/test-doctool-json.js @@ -78,7 +78,7 @@ var testData = [ 'textRaw': 'Foobar', 'name': 'foobar', 'meta': { - 'added': 'v1.0.0' + 'added': ['v1.0.0'] }, 'desc': '<p>Describe <code>Foobar</code> in more detail ' + 'here.\n\n</p>\n', @@ -86,11 +86,22 @@ var testData = [ 'displayName': 'Foobar' }, { + 'textRaw': 'Foobar II', + 'name': 'foobar_ii', + 'meta': { + 'added': ['v5.3.0', 'v4.2.0'] + }, + 'desc': '<p>Describe <code>Foobar II</code> in more detail ' + + 'here.\n\n</p>\n', + 'type': 'module', + 'displayName': 'Foobar II' + }, + { 'textRaw': 'Deprecated thingy', 'name': 'deprecated_thingy', 'meta': { - 'added': 'v1.0.0', - 'deprecated': 'v2.0.0' + 'added': ['v1.0.0'], + 'deprecated': ['v2.0.0'] }, 'desc': '<p>Describe <code>Deprecated thingy</code> in more ' + 'detail here.\n\n</p>\n', |