sproutcore 1.6.0.rc.1-x86-mingw32 → 1.6.0.rc.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +31 -6
- data/{History.txt → History.rdoc} +0 -0
- data/{README.txt → README.rdoc} +3 -2
- data/Rakefile +15 -15
- data/{Todo.txt → Todo.rdoc} +0 -0
- data/VERSION.yml +1 -1
- data/lib/buildtasks/manifest.rake +11 -4
- data/lib/buildtasks/target.rake +20 -23
- data/lib/frameworks/sproutcore/CHANGELOG.md +36 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +2 -42
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +29 -12
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +9 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +63 -26
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +25 -5
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +26 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +74 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +6 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +6 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +25 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +20 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +46 -49
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +14 -2
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +2 -76
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +3348 -1591
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +25 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +0 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +10 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/requiredObjectForPropertyPath.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue.js +98 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +2 -2
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +1 -1
- data/lib/gen/language/Buildfile +1 -1
- data/lib/sproutcore.rb +1 -14
- data/lib/sproutcore/buildfile/string_ext.rb +0 -4
- data/lib/sproutcore/helpers/cssmin.rb +44 -59
- data/lib/sproutcore/helpers/text_helper.rb +11 -13
- data/lib/sproutcore/models/manifest.rb +4 -4
- data/lib/sproutcore/models/target.rb +11 -110
- data/lib/sproutcore/rack.rb +0 -1
- data/lib/sproutcore/rack/dev.rb +0 -1
- data/lib/sproutcore/rack/proxy.rb +9 -8
- data/lib/sproutcore/rack/service.rb +1 -1
- data/lib/sproutcore/render_engines/haml.rb +2 -5
- data/lib/sproutcore/tools/build.rb +2 -0
- data/lib/sproutcore/tools/docs.rb +7 -36
- data/lib/sproutcore/tools/manifest.rb +1 -1
- data/spec/buildtasks/target_spec.rb +9 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +1 -1
- data/sproutcore.gemspec +3 -4
- data/vendor/chance/lib/chance/instance.rb +5 -8
- metadata +41 -207
- data/lib/doc_templates/jsdoc/allclasses.tmpl +0 -17
- data/lib/doc_templates/jsdoc/allfiles.tmpl +0 -56
- data/lib/doc_templates/jsdoc/class.tmpl +0 -487
- data/lib/doc_templates/jsdoc/index.tmpl +0 -38
- data/lib/doc_templates/jsdoc/publish.js +0 -170
- data/lib/doc_templates/jsdoc/static/default.css +0 -162
- data/lib/doc_templates/jsdoc/static/header.html +0 -2
- data/lib/doc_templates/jsdoc/static/index.html +0 -19
- data/lib/doc_templates/jsdoc/symbol.tmpl +0 -35
- data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
- data/lib/doc_templates/sproutcore/allfiles.tmpl +0 -56
- data/lib/doc_templates/sproutcore/class.tmpl +0 -674
- data/lib/doc_templates/sproutcore/classes-json.tmpl +0 -55
- data/lib/doc_templates/sproutcore/index.tmpl +0 -62
- data/lib/doc_templates/sproutcore/publish.js +0 -346
- data/lib/doc_templates/sproutcore/static/default.css +0 -258
- data/lib/doc_templates/sproutcore/static/header.html +0 -2
- data/lib/doc_templates/sproutcore/static/index.html +0 -19
- data/lib/doc_templates/sproutcore/symbol.tmpl +0 -35
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +0 -55
- data/lib/sproutcore/rack/docs.rb +0 -24
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/vendor/jsdoc/README.txt +0 -151
- data/vendor/jsdoc/app/frame.js +0 -33
- data/vendor/jsdoc/app/frame/Chain.js +0 -102
- data/vendor/jsdoc/app/frame/Dumper.js +0 -144
- data/vendor/jsdoc/app/frame/Hash.js +0 -47
- data/vendor/jsdoc/app/frame/Link.js +0 -142
- data/vendor/jsdoc/app/frame/Namespace.js +0 -10
- data/vendor/jsdoc/app/frame/Opt.js +0 -134
- data/vendor/jsdoc/app/frame/Reflection.js +0 -26
- data/vendor/jsdoc/app/frame/String.js +0 -93
- data/vendor/jsdoc/app/frame/Testrun.js +0 -129
- data/vendor/jsdoc/app/handlers/FOODOC.js +0 -26
- data/vendor/jsdoc/app/handlers/XMLDOC.js +0 -26
- data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -159
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -16
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -292
- data/vendor/jsdoc/app/lib/JSDOC.js +0 -98
- data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +0 -200
- data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +0 -294
- data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +0 -162
- data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +0 -100
- data/vendor/jsdoc/app/lib/JSDOC/Lang.js +0 -144
- data/vendor/jsdoc/app/lib/JSDOC/Parser.js +0 -109
- data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +0 -33
- data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +0 -681
- data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -226
- data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +0 -41
- data/vendor/jsdoc/app/lib/JSDOC/Token.js +0 -18
- data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +0 -332
- data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +0 -133
- data/vendor/jsdoc/app/lib/JSDOC/Util.js +0 -32
- data/vendor/jsdoc/app/lib/JSDOC/Walker.js +0 -453
- data/vendor/jsdoc/app/main.js +0 -74
- data/vendor/jsdoc/app/plugins/commentSrcJson.js +0 -19
- data/vendor/jsdoc/app/plugins/frameworkPrototype.js +0 -16
- data/vendor/jsdoc/app/plugins/functionCall.js +0 -10
- data/vendor/jsdoc/app/plugins/publishSrcHilite.js +0 -62
- data/vendor/jsdoc/app/plugins/sproutcoreTags.js +0 -26
- data/vendor/jsdoc/app/plugins/symbolLink.js +0 -9
- data/vendor/jsdoc/app/plugins/tagParamConfig.js +0 -31
- data/vendor/jsdoc/app/plugins/tagSynonyms.js +0 -43
- data/vendor/jsdoc/app/run.js +0 -346
- data/vendor/jsdoc/app/t/TestDoc.js +0 -144
- data/vendor/jsdoc/app/t/runner.js +0 -13
- data/vendor/jsdoc/app/test.js +0 -304
- data/vendor/jsdoc/app/test/addon.js +0 -24
- data/vendor/jsdoc/app/test/anon_inner.js +0 -14
- data/vendor/jsdoc/app/test/augments.js +0 -31
- data/vendor/jsdoc/app/test/augments2.js +0 -26
- data/vendor/jsdoc/app/test/borrows.js +0 -41
- data/vendor/jsdoc/app/test/borrows2.js +0 -23
- data/vendor/jsdoc/app/test/config.js +0 -22
- data/vendor/jsdoc/app/test/constructs.js +0 -18
- data/vendor/jsdoc/app/test/encoding.js +0 -10
- data/vendor/jsdoc/app/test/encoding_other.js +0 -12
- data/vendor/jsdoc/app/test/functions_anon.js +0 -39
- data/vendor/jsdoc/app/test/functions_nested.js +0 -33
- data/vendor/jsdoc/app/test/global.js +0 -13
- data/vendor/jsdoc/app/test/globals.js +0 -25
- data/vendor/jsdoc/app/test/ignore.js +0 -10
- data/vendor/jsdoc/app/test/inner.js +0 -16
- data/vendor/jsdoc/app/test/jsdoc_test.js +0 -477
- data/vendor/jsdoc/app/test/lend.js +0 -33
- data/vendor/jsdoc/app/test/memberof.js +0 -20
- data/vendor/jsdoc/app/test/memberof_constructor.js +0 -15
- data/vendor/jsdoc/app/test/name.js +0 -19
- data/vendor/jsdoc/app/test/namespace_nested.js +0 -23
- data/vendor/jsdoc/app/test/nocode.js +0 -13
- data/vendor/jsdoc/app/test/oblit_anon.js +0 -20
- data/vendor/jsdoc/app/test/overview.js +0 -20
- data/vendor/jsdoc/app/test/param_inline.js +0 -37
- data/vendor/jsdoc/app/test/params_optional.js +0 -8
- data/vendor/jsdoc/app/test/prototype.js +0 -17
- data/vendor/jsdoc/app/test/prototype_nested.js +0 -9
- data/vendor/jsdoc/app/test/prototype_oblit.js +0 -13
- data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +0 -24
- data/vendor/jsdoc/app/test/public.js +0 -10
- data/vendor/jsdoc/app/test/shared.js +0 -42
- data/vendor/jsdoc/app/test/shared2.js +0 -2
- data/vendor/jsdoc/app/test/shortcuts.js +0 -22
- data/vendor/jsdoc/app/test/static_this.js +0 -13
- data/vendor/jsdoc/app/test/synonyms.js +0 -23
- data/vendor/jsdoc/app/test/tosource.js +0 -23
- data/vendor/jsdoc/app/test/variable_redefine.js +0 -14
- data/vendor/jsdoc/changes.txt +0 -47
- data/vendor/jsdoc/conf/sample.conf +0 -31
- data/vendor/jsdoc/java/build.xml +0 -36
- data/vendor/jsdoc/java/build_1.4.xml +0 -36
- data/vendor/jsdoc/java/classes/js.jar +0 -0
- data/vendor/jsdoc/java/src/JsDebugRun.java +0 -21
- data/vendor/jsdoc/java/src/JsRun.java +0 -21
- data/vendor/jsdoc/jsdebug.jar +0 -0
- data/vendor/jsdoc/jsrun.jar +0 -0
- data/vendor/jsdoc/t/TestDoc.js +0 -144
- data/vendor/jsdoc/t/runner.js +0 -13
- data/vendor/jsdoc/test.js +0 -304
- data/vendor/jsdoc/test/addon.js +0 -24
- data/vendor/jsdoc/test/anon_inner.js +0 -14
- data/vendor/jsdoc/test/augments.js +0 -31
- data/vendor/jsdoc/test/augments2.js +0 -26
- data/vendor/jsdoc/test/borrows.js +0 -41
- data/vendor/jsdoc/test/borrows2.js +0 -23
- data/vendor/jsdoc/test/config.js +0 -22
- data/vendor/jsdoc/test/constructs.js +0 -18
- data/vendor/jsdoc/test/encoding.js +0 -10
- data/vendor/jsdoc/test/encoding_other.js +0 -12
- data/vendor/jsdoc/test/functions_anon.js +0 -39
- data/vendor/jsdoc/test/functions_nested.js +0 -33
- data/vendor/jsdoc/test/global.js +0 -13
- data/vendor/jsdoc/test/globals.js +0 -25
- data/vendor/jsdoc/test/ignore.js +0 -10
- data/vendor/jsdoc/test/inner.js +0 -16
- data/vendor/jsdoc/test/jsdoc_test.js +0 -477
- data/vendor/jsdoc/test/lend.js +0 -33
- data/vendor/jsdoc/test/memberof.js +0 -20
- data/vendor/jsdoc/test/memberof_constructor.js +0 -15
- data/vendor/jsdoc/test/name.js +0 -19
- data/vendor/jsdoc/test/namespace_nested.js +0 -23
- data/vendor/jsdoc/test/nocode.js +0 -13
- data/vendor/jsdoc/test/oblit_anon.js +0 -20
- data/vendor/jsdoc/test/overview.js +0 -20
- data/vendor/jsdoc/test/param_inline.js +0 -37
- data/vendor/jsdoc/test/params_optional.js +0 -8
- data/vendor/jsdoc/test/prototype.js +0 -17
- data/vendor/jsdoc/test/prototype_nested.js +0 -9
- data/vendor/jsdoc/test/prototype_oblit.js +0 -13
- data/vendor/jsdoc/test/prototype_oblit_constructor.js +0 -24
- data/vendor/jsdoc/test/public.js +0 -10
- data/vendor/jsdoc/test/shared.js +0 -42
- data/vendor/jsdoc/test/shared2.js +0 -2
- data/vendor/jsdoc/test/shortcuts.js +0 -22
- data/vendor/jsdoc/test/static_this.js +0 -13
- data/vendor/jsdoc/test/synonyms.js +0 -23
- data/vendor/jsdoc/test/tosource.js +0 -23
- data/vendor/jsdoc/test/variable_redefine.js +0 -14
data/vendor/jsdoc/changes.txt
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
== 2.0.1 ==
|
2
|
-
|
3
|
-
* Fixed bug that prevented @fileOverview tag from being recognized.
|
4
|
-
* Added support for @fieldOf as a synonym for @field plus @memberOf.
|
5
|
-
* Added support for @name tag in a @fileOverview comment to control the displayed name of the file.
|
6
|
-
* Added support for multiple @example tags. ( issue #152 )
|
7
|
-
* Modified style sheet of jsdoc template to make more readable. ( issue #151 )
|
8
|
-
* Fixed bug that prevented @since documentation from displaying correctly when it appeared in a class. ( issue #150 )
|
9
|
-
* Fixed bug that caused inhertited properties to sometimes not resolve correctly. ( issue #144 )
|
10
|
-
* Modified so that trailing whitespace in @example is always trimmed. ( issue #153 )
|
11
|
-
* Added support for elseif to JsPlate. (hat tip to fredck)
|
12
|
-
* Added support for @location urls in the @overview comment to the jsdoc template.
|
13
|
-
|
14
|
-
== Changes From Versions 1.4.0 to 2.0.0 ==
|
15
|
-
|
16
|
-
* Upgraded included version of Rhino from 1.6 to 1.7R1.
|
17
|
-
* Removed circular references in parsed documentation objects.
|
18
|
-
* Improved inheritance handling, now properties and events can be inherited same as methods.
|
19
|
-
* Improved handling of cross-file relationships, now having two related objects in separate files is not a problem.
|
20
|
-
* Improved ability to recognize membership of previously defined objects.
|
21
|
-
* Added ability to redefine parsing behavior with plugins.
|
22
|
-
* @methodOf is a synonym for @function and @memberOf.
|
23
|
-
* Added @default to document default values of members that are objects.
|
24
|
-
* Added ability to parse and refer to inner functions.
|
25
|
-
* Fixed bug that appeared when calling a method to set properties of the instance referred to by "this".
|
26
|
-
* Added ability to automatically create links to other symbols.
|
27
|
-
* New "jsdoc" template now produces fully W3C valid XHTML.
|
28
|
-
* Inline parameter type hint comments are now documented.
|
29
|
-
* Fixed error: Locally scoped variables (declared with var) no longer appear as global.
|
30
|
-
* It is now possible to run JsDoc Toolkit from any directory.
|
31
|
-
* Added support for inline {@link ...} tags.
|
32
|
-
* Added support for the -H command-line option to allow for custom content handlers.
|
33
|
-
* Tag names @inherits and @scope changed to @borrows and @lends.
|
34
|
-
? Combining @constructor in a doclet with @lends now supported.
|
35
|
-
* Multiple @lend tags now supported.
|
36
|
-
* Added support for the @constructs tag, used inside a @lends block.
|
37
|
-
* Added support for the @constant tag.
|
38
|
-
* Fixed bug that prevented the use of [] as a default value.
|
39
|
-
* Added support for the @field tag.
|
40
|
-
* Added support for the @public tag (applied to inner functions).
|
41
|
-
* @namespace tag can now be applied to functions, not just object literals.
|
42
|
-
* Added support for the -s command line option to suppress source code output.
|
43
|
-
* Added new unit test framework.
|
44
|
-
* Underscored symbols are now treated as if they have a @private tag by default.
|
45
|
-
* Improved support for anonymous constructors.
|
46
|
-
* Added support for the nocode meta tag.
|
47
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
This is an example of one way you could set up a configuration file to more
|
3
|
-
conveniently define some commandline options. You might like to do this if
|
4
|
-
you frequently reuse the same options. Note that you don't need to define
|
5
|
-
every option in this file, you can combine a configuration file with
|
6
|
-
additional options on the commandline if your wish.
|
7
|
-
|
8
|
-
You would include this configuration file by running JsDoc Toolkit like so:
|
9
|
-
java -jar jsrun.jar app/run.js -c=conf/sample.conf
|
10
|
-
|
11
|
-
*/
|
12
|
-
|
13
|
-
{
|
14
|
-
// source files to use
|
15
|
-
_: ['app/test/jsdoc_test.js'],
|
16
|
-
|
17
|
-
// document all functions, even uncommented ones
|
18
|
-
a: true,
|
19
|
-
|
20
|
-
// including those marked @private
|
21
|
-
p: true,
|
22
|
-
|
23
|
-
// some extra variables I want to include
|
24
|
-
D: {generatedBy: "Michael Mathews", copyright: "2008"},
|
25
|
-
|
26
|
-
// use this directory as the output directory
|
27
|
-
d: "docs",
|
28
|
-
|
29
|
-
// use this template
|
30
|
-
t: "templates/sproutcore"
|
31
|
-
}
|
data/vendor/jsdoc/java/build.xml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
<project>
|
2
|
-
<target name="clean">
|
3
|
-
<delete dir="build"/>
|
4
|
-
</target>
|
5
|
-
|
6
|
-
<target name="compile">
|
7
|
-
<mkdir dir="build/classes"/>
|
8
|
-
<javac
|
9
|
-
srcdir="src" destdir="build/classes"
|
10
|
-
classpath="./classes/js.jar"
|
11
|
-
/>
|
12
|
-
</target>
|
13
|
-
|
14
|
-
<target name="jar">
|
15
|
-
<mkdir dir="build/jar"/>
|
16
|
-
<jar destfile="build/jar/jsrun.jar" basedir="build/classes">
|
17
|
-
<manifest>
|
18
|
-
<attribute name="Main-Class" value="JsRun"/>
|
19
|
-
<attribute name="Class-Path" value="./java/classes/js.jar"/>
|
20
|
-
</manifest>
|
21
|
-
</jar>
|
22
|
-
</target>
|
23
|
-
|
24
|
-
<target name="debugjar">
|
25
|
-
<mkdir dir="build/jar"/>
|
26
|
-
<jar destfile="build/jar/jsdebug.jar" basedir="build/classes">
|
27
|
-
<manifest>
|
28
|
-
<attribute name="Main-Class" value="JsDebugRun"/>
|
29
|
-
<attribute name="Class-Path" value="./java/classes/js.jar"/>
|
30
|
-
</manifest>
|
31
|
-
</jar>
|
32
|
-
</target>
|
33
|
-
|
34
|
-
<target name="clean-build" depends="clean,compile,jar"/>
|
35
|
-
<target name="clean-debug" depends="clean,compile,debugjar"/>
|
36
|
-
</project>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<project default="clean-build"><!-- use this build script if you are stuck with ant version 1.4 -->
|
2
|
-
<target name="clean">
|
3
|
-
<delete dir="build"/>
|
4
|
-
</target>
|
5
|
-
|
6
|
-
<target name="compile">
|
7
|
-
<mkdir dir="build/classes"/>
|
8
|
-
<javac
|
9
|
-
srcdir="src" destdir="build/classes"
|
10
|
-
classpath="./classes/js.jar"
|
11
|
-
/>
|
12
|
-
</target>
|
13
|
-
|
14
|
-
<target name="jar">
|
15
|
-
<mkdir dir="build/jar"/>
|
16
|
-
<jar jarfile="build/jar/jsrun.jar" basedir="build/classes">
|
17
|
-
<manifest>
|
18
|
-
<attribute name="Main-Class" value="JsRun"/>
|
19
|
-
<attribute name="Class-Path" value="./java/classes/js.jar"/>
|
20
|
-
</manifest>
|
21
|
-
</jar>
|
22
|
-
</target>
|
23
|
-
|
24
|
-
<target name="debugjar">
|
25
|
-
<mkdir dir="build/jar"/>
|
26
|
-
<jar jarfile="build/jar/jsdebug.jar" basedir="build/classes">
|
27
|
-
<manifest>
|
28
|
-
<attribute name="Main-Class" value="JsDebugRun"/>
|
29
|
-
<attribute name="Class-Path" value="./java/classes/js.jar"/>
|
30
|
-
</manifest>
|
31
|
-
</jar>
|
32
|
-
</target>
|
33
|
-
|
34
|
-
<target name="clean-build" depends="clean,compile,jar"/>
|
35
|
-
<target name="clean-debug" depends="clean,compile,debugjar"/>
|
36
|
-
</project>
|
Binary file
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* A trivial bootstrap class that simply adds the path to the
|
3
|
-
* .js file as an argument to the Rhino call. This little hack
|
4
|
-
* allows the code in the .js file to have access to it's own
|
5
|
-
* path via the Rhino arguments object. This is necessary to
|
6
|
-
* allow the .js code to find resource files in a location
|
7
|
-
* relative to itself.
|
8
|
-
*
|
9
|
-
* USAGE: java -jar jsdebug.jar path/to/file.js
|
10
|
-
*/
|
11
|
-
public class JsDebugRun {
|
12
|
-
public static void main(String[] args) {
|
13
|
-
String[] jsargs = {"-j="+args[0]};
|
14
|
-
|
15
|
-
String[] allArgs = new String[jsargs.length + args.length];
|
16
|
-
System.arraycopy(args, 0, allArgs, 0, args.length);
|
17
|
-
System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);
|
18
|
-
|
19
|
-
org.mozilla.javascript.tools.debugger.Main.main(allArgs);
|
20
|
-
}
|
21
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* A trivial bootstrap class that simply adds the path to the
|
3
|
-
* .js file as an argument to the Rhino call. This little hack
|
4
|
-
* allows the code in the .js file to have access to it's own
|
5
|
-
* path via the Rhino arguments object. This is necessary to
|
6
|
-
* allow the .js code to find resource files in a location
|
7
|
-
* relative to itself.
|
8
|
-
*
|
9
|
-
* USAGE: java -jar jsrun.jar path/to/file.js
|
10
|
-
*/
|
11
|
-
public class JsRun {
|
12
|
-
public static void main(String[] args) {
|
13
|
-
String[] jsargs = {"-j="+args[0]};
|
14
|
-
|
15
|
-
String[] allArgs = new String[jsargs.length + args.length];
|
16
|
-
System.arraycopy(args, 0, allArgs, 0, args.length);
|
17
|
-
System.arraycopy(jsargs, 0, allArgs, args.length ,jsargs.length);
|
18
|
-
|
19
|
-
org.mozilla.javascript.tools.shell.Main.main(allArgs);
|
20
|
-
}
|
21
|
-
}
|
data/vendor/jsdoc/jsdebug.jar
DELETED
Binary file
|
data/vendor/jsdoc/jsrun.jar
DELETED
Binary file
|
data/vendor/jsdoc/t/TestDoc.js
DELETED
@@ -1,144 +0,0 @@
|
|
1
|
-
var TestDoc = {
|
2
|
-
fails: 0,
|
3
|
-
plans: 0,
|
4
|
-
passes: 0,
|
5
|
-
results: []
|
6
|
-
};
|
7
|
-
|
8
|
-
TestDoc.record = function(result) {
|
9
|
-
TestDoc.results.push(result);
|
10
|
-
if (typeof result.verdict == "boolean") {
|
11
|
-
if (result.verdict === false) TestDoc.fails++;
|
12
|
-
if (result.verdict === true) TestDoc.passes++;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
TestDoc.prove = function(filePath) {
|
17
|
-
if (typeof document != "undefined" && typeof document.write != "undefined") {
|
18
|
-
if (TestDoc.console) print = function(s) { TestDoc.console.appendChild(document.createTextNode(s+"\n")); }
|
19
|
-
else print = function(s) { document.write(s+"<br />"); }
|
20
|
-
}
|
21
|
-
TestDoc.run(TestDoc.readFile(filePath));
|
22
|
-
}
|
23
|
-
|
24
|
-
TestDoc.run = function(src) {
|
25
|
-
try { eval(src); } catch(e) { print("# ERROR! "+e); }
|
26
|
-
|
27
|
-
var chunks = src.split(/\/\*t:/);
|
28
|
-
|
29
|
-
var run = function(chunk) {
|
30
|
-
// local shortcuts
|
31
|
-
var is = TestDoc.assertEquals;
|
32
|
-
var isnt = TestDoc.assertNotEquals;
|
33
|
-
var plan = TestDoc.plan;
|
34
|
-
var requires = TestDoc.requires;
|
35
|
-
|
36
|
-
try { eval(chunk); } catch(e) { print("# ERROR! "+e); }
|
37
|
-
}
|
38
|
-
for (var start = -1, end = 0; (start = src.indexOf("/*t:", end)) > end; start = end) {
|
39
|
-
run(
|
40
|
-
src.substring(
|
41
|
-
start+4,
|
42
|
-
(end = src.indexOf("*/", start))
|
43
|
-
)
|
44
|
-
);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
TestDoc.Result = function(verdict, message) {
|
49
|
-
this.verdict = verdict;
|
50
|
-
this.message = message;
|
51
|
-
}
|
52
|
-
|
53
|
-
TestDoc.Result.prototype.toString = function() {
|
54
|
-
if (typeof this.verdict == "boolean") {
|
55
|
-
return (this.verdict? "ok" : "not ok") + " " + (++TestDoc.report.counter) + " - " + this.message;
|
56
|
-
}
|
57
|
-
|
58
|
-
return "# " + this.message;
|
59
|
-
}
|
60
|
-
|
61
|
-
TestDoc.requires = function(file) {
|
62
|
-
if (!TestDoc.requires.loaded[file]) {
|
63
|
-
load(file);
|
64
|
-
TestDoc.requires.loaded[file] = true;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
TestDoc.requires.loaded = {};
|
68
|
-
|
69
|
-
TestDoc.report = function() {
|
70
|
-
TestDoc.report.counter = 0;
|
71
|
-
print("1.."+TestDoc.plans);
|
72
|
-
for (var i = 0; i < TestDoc.results.length; i++) {
|
73
|
-
print(TestDoc.results[i]);
|
74
|
-
}
|
75
|
-
print("----------------------------------------");
|
76
|
-
if (TestDoc.fails == 0 && TestDoc.passes == TestDoc.plans) {
|
77
|
-
print("All tests successful.");
|
78
|
-
}
|
79
|
-
else {
|
80
|
-
print("Failed " + TestDoc.fails + "/" + TestDoc.plans + " tests, "+((TestDoc.plans == 0)? 0 : Math.round(TestDoc.passes/(TestDoc.passes+TestDoc.fails)*10000)/100)+"% okay. Planned to run "+TestDoc.plans+", did run "+(TestDoc.passes+TestDoc.fails)+".")
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
TestDoc.plan = function(n, message) {
|
85
|
-
TestDoc.plans += n;
|
86
|
-
TestDoc.record(new TestDoc.Result(null, message+" ("+n+" tests)"));
|
87
|
-
}
|
88
|
-
|
89
|
-
TestDoc.assertEquals = function(a, b, message) {
|
90
|
-
var result = (a == b);
|
91
|
-
if (!result) message += "\n#\n# " + a + " does not equal " + b + "\n#";
|
92
|
-
TestDoc.record(new TestDoc.Result(result, message));
|
93
|
-
}
|
94
|
-
|
95
|
-
TestDoc.assertNotEquals = function(a, b, message) {
|
96
|
-
var result = (a != b);
|
97
|
-
if (!result) message += "\n#\n# " + a + " equals " + b + "\n#";
|
98
|
-
TestDoc.record(new TestDoc.Result(result, message));
|
99
|
-
}
|
100
|
-
|
101
|
-
TestDoc.readFile = (function(){
|
102
|
-
// rhino
|
103
|
-
if (typeof readFile == "function") {
|
104
|
-
return function(url) {
|
105
|
-
var text = readFile(url);
|
106
|
-
return text || "";
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
// a web browser
|
111
|
-
else {
|
112
|
-
return function(url) {
|
113
|
-
var httpRequest;
|
114
|
-
|
115
|
-
if (window.XMLHttpRequest) { // Mozilla, Safari, etc
|
116
|
-
httpRequest = new XMLHttpRequest();
|
117
|
-
}
|
118
|
-
else if (window.ActiveXObject) { // IE
|
119
|
-
try {
|
120
|
-
httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
|
121
|
-
}
|
122
|
-
catch (e) {
|
123
|
-
try {
|
124
|
-
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
|
125
|
-
}
|
126
|
-
catch (e) {
|
127
|
-
}
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
if (!httpRequest) { throw "Cannot create HTTP Request."; }
|
132
|
-
|
133
|
-
httpRequest.open('GET', url, false);
|
134
|
-
httpRequest.send('');
|
135
|
-
if (httpRequest.readyState == 4) {
|
136
|
-
if (httpRequest.status >= 400) {
|
137
|
-
throw "The HTTP Request returned an error code: "+httpRequest.status;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
return httpRequest.responseText || "";
|
142
|
-
}
|
143
|
-
}
|
144
|
-
})();
|
data/vendor/jsdoc/t/runner.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// try: java -jar ../../jsrun.jar runner.js
|
2
|
-
|
3
|
-
load("TestDoc.js");
|
4
|
-
|
5
|
-
TestDoc.prove("../frame/Opt.js");
|
6
|
-
TestDoc.prove("../lib/JSDOC.js");
|
7
|
-
TestDoc.prove("../frame/String.js");
|
8
|
-
TestDoc.prove("../lib/JSDOC/DocTag.js");
|
9
|
-
TestDoc.prove("../lib/JSDOC/DocComment.js");
|
10
|
-
TestDoc.prove("../lib/JSDOC/TokenReader.js");
|
11
|
-
TestDoc.prove("../lib/JSDOC/Symbol.js");
|
12
|
-
|
13
|
-
TestDoc.report();
|
data/vendor/jsdoc/test.js
DELETED
@@ -1,304 +0,0 @@
|
|
1
|
-
load("app/frame/Dumper.js");
|
2
|
-
function symbolize(opt) {
|
3
|
-
symbols = null;
|
4
|
-
jsdoc = new JSDOC.JsDoc(opt);
|
5
|
-
symbols = jsdoc.symbolSet;
|
6
|
-
}
|
7
|
-
|
8
|
-
|
9
|
-
var testCases = [
|
10
|
-
function() {
|
11
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/overview.js"]});
|
12
|
-
//print(Dumper.dump(symbols));
|
13
|
-
is('symbols.getSymbolByName("My Cool Library").name', 'My Cool Library', 'File overview can be found by alias.');
|
14
|
-
}
|
15
|
-
,
|
16
|
-
function() {
|
17
|
-
symbolize({_: [SYS.pwd+"test/name.js"]});
|
18
|
-
|
19
|
-
is('symbols.getSymbol("Response").name', "Response", 'Virtual class name is found.');
|
20
|
-
is('symbols.getSymbol("Response#text").alias', "Response#text", 'Virtual method name is found.');
|
21
|
-
is('symbols.getSymbol("Response#text").memberOf', "Response", 'Virtual method parent name is found.');
|
22
|
-
}
|
23
|
-
,
|
24
|
-
function() {
|
25
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype.js"]});
|
26
|
-
|
27
|
-
is('symbols.getSymbol("Article").name', "Article", 'Function set to constructor prototype with inner constructor name is found.');
|
28
|
-
is('symbols.getSymbol("Article").hasMethod("init")', true, 'The initializer method name of prototype function is correct.');
|
29
|
-
is('symbols.getSymbol("Article").hasMember("counter")', true, 'A static property set in the prototype definition is found.');
|
30
|
-
is('symbols.getSymbol("Article").hasMember("title")', true, 'An instance property set in the prototype is found.');
|
31
|
-
is('symbols.getSymbol("Article#title").isStatic', false, 'An instance property has isStatic set to false.');
|
32
|
-
is('symbols.getSymbol("Article.counter").name', "counter", 'A static property set in the initializer has the name set correctly.');
|
33
|
-
is('symbols.getSymbol("Article.counter").memberOf', "Article", 'A static property set in the initializer has the memberOf set correctly.');
|
34
|
-
is('symbols.getSymbol("Article.counter").isStatic', true, 'A static property set in the initializer has isStatic set to true.');
|
35
|
-
}
|
36
|
-
,
|
37
|
-
function() {
|
38
|
-
symbolize({a:true, _: [SYS.pwd+"test/prototype_oblit.js"]});
|
39
|
-
|
40
|
-
is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype name is found.');
|
41
|
-
is('typeof symbols.getSymbol("Article.prototype")', "undefined", 'The prototype oblit is not a symbol.');
|
42
|
-
is('symbols.getSymbol("Article#getTitle").name', "getTitle", 'The nonstatic method name of prototype oblit is correct.');
|
43
|
-
is('symbols.getSymbol("Article#getTitle").alias', "Article#getTitle", 'The alias of non-static method of prototype oblit is correct.');
|
44
|
-
is('symbols.getSymbol("Article#getTitle").isStatic', false, 'The isStatic of a nonstatic method of prototype oblit is correct.');
|
45
|
-
is('symbols.getSymbol("Article.getTitle").name', "getTitle", 'The static method name of prototype oblit is correct.');
|
46
|
-
is('symbols.getSymbol("Article.getTitle").isStatic', true, 'The isStatic of a static method of prototype oblit is correct.');
|
47
|
-
is('symbols.getSymbol("Article#getTitle").isa', "FUNCTION", 'The isa of non-static method of prototype oblit is correct.');
|
48
|
-
is('symbols.getSymbol("Article.getTitle").alias', "Article.getTitle", 'The alias of a static method of prototype oblit is correct.');
|
49
|
-
is('symbols.getSymbol("Article.getTitle").isa', "FUNCTION", 'The isa of static method of prototype oblit is correct.');
|
50
|
-
}
|
51
|
-
,
|
52
|
-
function() {
|
53
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype_oblit_constructor.js"]});
|
54
|
-
|
55
|
-
is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype with inner constructor name is found.');
|
56
|
-
is('symbols.getSymbol("Article#init").name', "init", 'The initializer method name of prototype oblit is correct.');
|
57
|
-
is('symbols.getSymbol("Article").hasMember("pages")', true, 'Property set by initializer method "this" is on the outer constructor.');
|
58
|
-
is('symbols.getSymbol("Article#Title").name', "Title", 'Name of the inner constructor name is found.');
|
59
|
-
is('symbols.getSymbol("Article#Title").memberOf', "Article", 'The memberOf of the inner constructor name is found.');
|
60
|
-
is('symbols.getSymbol("Article#Title").isa', "CONSTRUCTOR", 'The isa of the inner constructor name is constructor.');
|
61
|
-
is('symbols.getSymbol("Article#Title").hasMember("title")', true, 'A property set on the inner constructor "this" is on the inner constructor.');
|
62
|
-
}
|
63
|
-
,
|
64
|
-
function() {
|
65
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/inner.js"]});
|
66
|
-
|
67
|
-
is('symbols.getSymbol("Outer").name', "Outer", 'Outer constructor prototype name is found.');
|
68
|
-
is('symbols.getSymbol("Outer").methods.length', 1, 'Inner function doesnt appear as a method of the outer.');
|
69
|
-
is('symbols.getSymbol("Outer").hasMethod("open")', true, 'Outer constructors methods arent affected by inner function.');
|
70
|
-
is('symbols.getSymbol("Outer-Inner").alias', "Outer-Inner", 'Alias of inner function is found.');
|
71
|
-
is('symbols.getSymbol("Outer-Inner").isa', "CONSTRUCTOR", 'isa of inner function constructor is found.');
|
72
|
-
is('symbols.getSymbol("Outer-Inner").memberOf', "Outer", 'The memberOf of inner function is found.');
|
73
|
-
is('symbols.getSymbol("Outer-Inner").name', "Inner", 'The name of inner function is found.');
|
74
|
-
is('symbols.getSymbol("Outer-Inner#name").name', "name", 'A member of the inner function constructor, attached to "this" is found on inner.');
|
75
|
-
is('symbols.getSymbol("Outer-Inner#name").memberOf', "Outer-Inner", 'The memberOf of an inner function member is found.');
|
76
|
-
}
|
77
|
-
,
|
78
|
-
function() {
|
79
|
-
symbolize({a:true, _: [SYS.pwd+"test/prototype_nested.js"]});
|
80
|
-
|
81
|
-
is('symbols.getSymbol("Word").name', "Word", 'Base constructor name is found.');
|
82
|
-
is('symbols.getSymbol("Word").hasMethod("reverse")', true, 'Base constructor method is found.');
|
83
|
-
is('symbols.getSymbol("Word").methods.length', 1, 'Base constructor has only one method.');
|
84
|
-
is('symbols.getSymbol("Word").memberOf', "", 'Base constructor memberOf is empty.');
|
85
|
-
is('symbols.getSymbol("Word#reverse").name', "reverse", 'Member of constructor prototype name is found.');
|
86
|
-
is('symbols.getSymbol("Word#reverse").memberOf', "Word", 'Member of constructor prototype memberOf is found.');
|
87
|
-
is('symbols.getSymbol("Word#reverse.utf8").name', "utf8", 'Member of constructor prototype method name is found.');
|
88
|
-
is('symbols.getSymbol("Word#reverse.utf8").memberOf', "Word#reverse", 'Static nested member memberOf is found.');
|
89
|
-
}
|
90
|
-
,
|
91
|
-
function() {
|
92
|
-
symbolize({a:true, _: [SYS.pwd+"test/namespace_nested.js"]});
|
93
|
-
|
94
|
-
is('symbols.getSymbol("ns1").name', "ns1", 'Base namespace name is found.');
|
95
|
-
is('symbols.getSymbol("ns1").memberOf', "", 'Base namespace memberOf is empty (its a constructor).');
|
96
|
-
is('symbols.getSymbol("ns1.ns2").name', "ns2", 'Nested namespace name is found.');
|
97
|
-
is('symbols.getSymbol("ns1.ns2").alias', "ns1.ns2", 'Nested namespace alias is found.');
|
98
|
-
is('symbols.getSymbol("ns1.ns2").memberOf', "ns1", 'Nested namespace memberOf is found.');
|
99
|
-
is('symbols.getSymbol("ns1.ns2.Function1").name', "Function1", 'Method of nested namespace name is found.');
|
100
|
-
is('symbols.getSymbol("ns1.ns2.Function1").memberOf', "ns1.ns2", 'Constructor of nested namespace memberOf is found.');
|
101
|
-
}
|
102
|
-
,
|
103
|
-
function() {
|
104
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_nested.js"]});
|
105
|
-
|
106
|
-
is('symbols.getSymbol("Zop").name', "Zop", 'Any constructor name is found.');
|
107
|
-
is('symbols.getSymbol("Zop").isa', "CONSTRUCTOR", 'It isa constructor.');
|
108
|
-
is('symbols.getSymbol("Zop").hasMethod("zap")', true, 'Its method name, set later, is in methods array.');
|
109
|
-
is('symbols.getSymbol("Foo").name', "Foo", 'The containing constructor name is found.');
|
110
|
-
is('symbols.getSymbol("Foo").hasMethod("methodOne")', true, 'Its method name is found.');
|
111
|
-
is('symbols.getSymbol("Foo").hasMethod("methodTwo")', true, 'Its second method name is found.');
|
112
|
-
is('symbols.getSymbol("Foo#methodOne").alias', "Foo#methodOne", 'A methods alias is found.');
|
113
|
-
is('symbols.getSymbol("Foo#methodOne").isStatic', false, 'A methods is not static.');
|
114
|
-
is('symbols.getSymbol("Bar").name', "Bar", 'A global function declared inside another function is found.');
|
115
|
-
is('symbols.getSymbol("Bar").isa', "FUNCTION", 'It isa function.');
|
116
|
-
is('symbols.getSymbol("Bar").memberOf', "_global_", 'It is global.');
|
117
|
-
is('symbols.getSymbol("Foo-inner").name', "inner", 'An inner functions name is found.');
|
118
|
-
is('symbols.getSymbol("Foo-inner").memberOf', "Foo", 'It is member of the outer function.');
|
119
|
-
is('symbols.getSymbol("Foo-inner").isInner', true, 'It is an inner function.');
|
120
|
-
}
|
121
|
-
,
|
122
|
-
function() {
|
123
|
-
symbolize({a:true, _: [SYS.pwd+"test/memberof_constructor.js"]});
|
124
|
-
|
125
|
-
is('symbols.getSymbol("Circle#Tangent").name', "Tangent", 'Constructor set on prototype using @member has correct name.');
|
126
|
-
is('symbols.getSymbol("Circle#Tangent").memberOf', "Circle", 'Constructor set on prototype using @member has correct memberOf.');
|
127
|
-
is('symbols.getSymbol("Circle#Tangent").alias', "Circle#Tangent", 'Constructor set on prototype using @member has correct alias.');
|
128
|
-
is('symbols.getSymbol("Circle#Tangent").isa', "CONSTRUCTOR", 'Constructor set on prototype using @member has correct isa.');
|
129
|
-
is('symbols.getSymbol("Circle#Tangent").isStatic', false, 'Constructor set on prototype using @member is not static.');
|
130
|
-
is('symbols.getSymbol("Circle#Tangent#getDiameter").name', "getDiameter", 'Method set on prototype using @member has correct name.');
|
131
|
-
is('symbols.getSymbol("Circle#Tangent#getDiameter").memberOf', "Circle#Tangent", 'Method set on prototype using @member has correct memberOf.');
|
132
|
-
is('symbols.getSymbol("Circle#Tangent#getDiameter").alias', "Circle#Tangent#getDiameter", 'Method set on prototype using @member has correct alias.');
|
133
|
-
is('symbols.getSymbol("Circle#Tangent#getDiameter").isa', "FUNCTION", 'Method set on prototype using @member has correct isa.');
|
134
|
-
is('symbols.getSymbol("Circle#Tangent#getDiameter").isStatic', false, 'Method set on prototype using @member is not static.');
|
135
|
-
}
|
136
|
-
,
|
137
|
-
function() {
|
138
|
-
symbolize({a:true, p: true, _: [SYS.pwd+"test/memberof.js"]});
|
139
|
-
|
140
|
-
is('symbols.getSymbol("pack.install").alias', "pack.install", 'Using @memberOf sets alias, when parent name is in memberOf tag.');
|
141
|
-
is('symbols.getSymbol("pack.install.overwrite").name', "install.overwrite", 'Using @memberOf sets name, even if the name is dotted.');
|
142
|
-
is('symbols.getSymbol("pack.install.overwrite").memberOf', "pack", 'Using @memberOf sets memberOf.');
|
143
|
-
is('symbols.getSymbol("pack.install.overwrite").isStatic', true, 'Using @memberOf with value not ending in octothorp sets isStatic to true.');
|
144
|
-
}
|
145
|
-
,
|
146
|
-
function() {
|
147
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows.js"]});
|
148
|
-
|
149
|
-
is('symbols.getSymbol("Layout").name', "Layout", 'Constructor can be found.');
|
150
|
-
is('symbols.getSymbol("Layout").hasMethod("init")', true, 'Constructor method name can be found.');
|
151
|
-
is('symbols.getSymbol("Layout").hasMember("orientation")', true, 'Constructor property name can be found.');
|
152
|
-
|
153
|
-
is('symbols.getSymbol("Page").hasMethod("reset")', true, 'Second constructor method name can be found.');
|
154
|
-
is('symbols.getSymbol("Page").hasMember("orientation")', true, 'Second constructor borrowed property name can be found in properties.');
|
155
|
-
is('symbols.getSymbol("Page#orientation").memberOf', "Page", 'Second constructor borrowed property memberOf can be found.');
|
156
|
-
is('symbols.getSymbol("Page").hasMethod("myGetInnerElements")', true, 'Can borrow an inner function, add it as a static function.');
|
157
|
-
|
158
|
-
is('symbols.getSymbol("ThreeColumnPage#init").alias', "ThreeColumnPage#init", 'Third constructor method can be found even though method with same name is borrowed.');
|
159
|
-
is('symbols.getSymbol("ThreeColumnPage#reset").alias', "ThreeColumnPage#reset", 'Borrowed method can be found.');
|
160
|
-
is('symbols.getSymbol("ThreeColumnPage#orientation").alias', "ThreeColumnPage#orientation", 'Twice borrowed method can be found.');
|
161
|
-
|
162
|
-
}
|
163
|
-
,
|
164
|
-
function() {
|
165
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows2.js"]});
|
166
|
-
|
167
|
-
is('symbols.getSymbol("Foo").hasMethod("my_zop")', true, 'Borrowed method can be found.');
|
168
|
-
is('symbols.getSymbol("Bar").hasMethod("my_zip")', true, 'Second borrowed method can be found.');
|
169
|
-
}
|
170
|
-
,
|
171
|
-
function() {
|
172
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/constructs.js"]});
|
173
|
-
|
174
|
-
is('symbols.getSymbol("Person").hasMethod("say")', true, 'The constructs tag creates a class that lends can add a method to.');
|
175
|
-
}
|
176
|
-
,
|
177
|
-
function() {
|
178
|
-
symbolize({a: true, _: [SYS.pwd+"test/augments.js", SYS.pwd+"test/augments2.js"]});
|
179
|
-
|
180
|
-
is('symbols.getSymbol("Page").augments[0]', "Layout", 'An augmented class can be found.');
|
181
|
-
is('symbols.getSymbol("Page#reset").alias', "Page#reset", 'Method of augmenter can be found.');
|
182
|
-
is('symbols.getSymbol("Page").hasMethod("Layout#init")', true, 'Method from augmented can be found.');
|
183
|
-
is('symbols.getSymbol("Page").hasMember("Layout#orientation")', true, 'Property from augmented can be found.');
|
184
|
-
is('symbols.getSymbol("Page").methods.length', 3, 'Methods of augmented class are included in methods array.');
|
185
|
-
|
186
|
-
is('symbols.getSymbol("ThreeColumnPage").augments[0]', "Page", 'The extends tag is a synonym for augments.');
|
187
|
-
is('symbols.getSymbol("ThreeColumnPage").hasMethod("ThreeColumnPage#init")', true, 'Local method overrides augmented method of same name.');
|
188
|
-
is('symbols.getSymbol("ThreeColumnPage").methods.length', 3, 'Local method count is right.');
|
189
|
-
|
190
|
-
is('symbols.getSymbol("NewsletterPage").augments[0]', "ThreeColumnPage", 'Can augment across file boundaries.');
|
191
|
-
is('symbols.getSymbol("NewsletterPage").augments.length', 2, 'Multiple augments are supported.');
|
192
|
-
is('symbols.getSymbol("NewsletterPage").inherits[0].alias', "Junkmail#annoy", 'Inherited method with augments.');
|
193
|
-
is('symbols.getSymbol("NewsletterPage").methods.length', 6, 'Methods of augmented class are included in methods array across files.');
|
194
|
-
is('symbols.getSymbol("NewsletterPage").properties.length', 1, 'Properties of augmented class are included in properties array across files.');
|
195
|
-
}
|
196
|
-
,
|
197
|
-
function() {
|
198
|
-
symbolize({a:true, _: [SYS.pwd+"test/static_this.js"]});
|
199
|
-
|
200
|
-
is('symbols.getSymbol("box.holder").name', "holder", 'Static namespace name can be found.');
|
201
|
-
is('symbols.getSymbol("box.holder.foo").name', "foo", 'Static namespace method name can be found.');
|
202
|
-
is('symbols.getSymbol("box.holder").isStatic', true, 'Static namespace method is static.');
|
203
|
-
|
204
|
-
is('symbols.getSymbol("box.holder.counter").name', "counter", 'Instance namespace property name set on "this" can be found.');
|
205
|
-
is('symbols.getSymbol("box.holder.counter").alias', "box.holder.counter", 'Instance namespace property alias set on "this" can be found.');
|
206
|
-
is('symbols.getSymbol("box.holder.counter").memberOf', "box.holder", 'Static namespace property memberOf set on "this" can be found.');
|
207
|
-
}
|
208
|
-
,
|
209
|
-
function() {
|
210
|
-
symbolize({a:true, p: true, _: [SYS.pwd+"test/lend.js"]});
|
211
|
-
|
212
|
-
is('symbols.getSymbol("Person").name', "Person", 'Class defined in lend comment is found.');
|
213
|
-
is('symbols.getSymbol("Person").hasMethod("initialize")', true, 'Lent instance method name can be found.');
|
214
|
-
is('symbols.getSymbol("Person").hasMethod("say")', true, 'Second instance method can be found.');
|
215
|
-
is('symbols.getSymbol("Person#sing").isStatic', false, 'Instance method is known to be not static.');
|
216
|
-
|
217
|
-
is('symbols.getSymbol("Person.getCount").name', "getCount", 'Static method name from second lend comment can be found.');
|
218
|
-
is('symbols.getSymbol("Person.getCount").isStatic', true, 'Static method from second lend comment is known to be static.');
|
219
|
-
|
220
|
-
is('LOG.warnings.filter(function($){if($.indexOf("notok") > -1) return $}).length', 1, 'A warning is emitted when lending to an undocumented parent.');
|
221
|
-
}
|
222
|
-
,
|
223
|
-
function() {
|
224
|
-
symbolize({a:true, _: [SYS.pwd+"test/param_inline.js"]});
|
225
|
-
|
226
|
-
is('symbols.getSymbol("Layout").params[0].type', "int", 'Inline param name is set.');
|
227
|
-
is('symbols.getSymbol("Layout").params[0].desc', "The number of columns.", 'Inline param desc is set from comment.');
|
228
|
-
is('symbols.getSymbol("Layout#getElement").params[0].name', "id", 'User defined param documentation takes precedence over parser defined.');
|
229
|
-
is('symbols.getSymbol("Layout#getElement").params[0].isOptional', true, 'Default for param is to not be optional.');
|
230
|
-
is('symbols.getSymbol("Layout#getElement").params[1].isOptional', false, 'Can mark a param as being optional.');
|
231
|
-
is('symbols.getSymbol("Layout#getElement").params[1].type', "number|string", 'Type of inline param doc can have multiple values.');
|
232
|
-
is('symbols.getSymbol("Layout#Canvas").params[0].type', "", 'Type can be not defined for some params.');
|
233
|
-
is('symbols.getSymbol("Layout#Canvas").params[2].type', "int", 'Type can be defined inline for only some params.');
|
234
|
-
is('symbols.getSymbol("Layout#rotate").params.length', 0, 'Docomments inside function sig is ignored without a param.');
|
235
|
-
is('symbols.getSymbol("Layout#init").params[2].type', "zoppler", 'Doc comment type overrides inline type for param with same name.');
|
236
|
-
}
|
237
|
-
,
|
238
|
-
function() {
|
239
|
-
symbolize({a: true, _: [SYS.pwd+"test/shared.js", SYS.pwd+"test/shared2.js"]});
|
240
|
-
|
241
|
-
is('symbols.getSymbol("Array#some").name', 'some', 'The name of a symbol in a shared section is found.');
|
242
|
-
is('symbols.getSymbol("Array#some").alias', 'Array#some', 'The alias of a symbol in a shared section is found.');
|
243
|
-
is('symbols.getSymbol("Array#some").desc', "Extension to builtin array.", 'A description can be shared.');
|
244
|
-
is('symbols.getSymbol("Array#filter").desc', "Extension to builtin array.\nChange every element of an array.", 'A shared description is appended.');
|
245
|
-
is('symbols.getSymbol("Queue").desc', "A first in, first out data structure.", 'A description is not shared when outside a shared section.');
|
246
|
-
is('symbols.getSymbol("Queue.rewind").alias', "Queue.rewind", 'Second shared tag can be started.');
|
247
|
-
is('symbols.getSymbol("startOver").alias', "startOver", 'Shared tag doesnt cross over files.');
|
248
|
-
}
|
249
|
-
,
|
250
|
-
function() {
|
251
|
-
symbolize({a: true, _: [SYS.pwd+"test/config.js"]});
|
252
|
-
is('symbols.getSymbol("Contact").params[0].name', 'person', 'The name of a param is found.');
|
253
|
-
is('symbols.getSymbol("Contact").params[1].name', 'person.name', 'The name of a param set with a dot name is found.');
|
254
|
-
is('symbols.getSymbol("Contact").params[2].name', 'person.age', 'The name of a param set with a dot name is found.');
|
255
|
-
is('symbols.getSymbol("Contact").params[4].name', 'connection', 'The name of a param after config is found.');
|
256
|
-
|
257
|
-
is('symbols.getSymbol("Family").params[0].name', 'persons', 'Another name of a param is found.');
|
258
|
-
is('symbols.getSymbol("Family").params[1].name', 'persons.Father', 'The name of a param+config is found.');
|
259
|
-
is('symbols.getSymbol("Family").params[2].name', 'persons.Mother', 'The name of a second param+config is found.');
|
260
|
-
is('symbols.getSymbol("Family").params[3].name', 'persons.Children', 'The name of a third param+config is found.');
|
261
|
-
|
262
|
-
}
|
263
|
-
,
|
264
|
-
function() {
|
265
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/ignore.js"]});
|
266
|
-
is('LOG.warnings.filter(function($){if($.indexOf("undocumented symbol Ignored") > -1) return $}).length', 1, 'A warning is emitted when documenting members of an ignored parent.');
|
267
|
-
|
268
|
-
}
|
269
|
-
,
|
270
|
-
function() {
|
271
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_anon.js"]});
|
272
|
-
is('symbols.getSymbol("a.b").alias', 'a.b', 'In anonymous constructor this is found to be the container object.');
|
273
|
-
is('symbols.getSymbol("a.f").alias', 'a.f', 'In anonymous constructor this can have a method.');
|
274
|
-
is('symbols.getSymbol("a.c").alias', 'a.c', 'In anonymous constructor method this is found to be the container object.');
|
275
|
-
is('symbols.getSymbol("g").alias', 'g', 'In anonymous function executed inline this is the global.');
|
276
|
-
is('symbols.getSymbol("bar2.p").alias', 'bar2.p', 'In named constructor executed inline this is the container object.');
|
277
|
-
is('symbols.getSymbol("module.pub").alias', 'module.pub', 'In parenthesized anonymous function executed inline function scoped variables arent documented.');
|
278
|
-
|
279
|
-
}
|
280
|
-
,
|
281
|
-
function() {
|
282
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/oblit_anon.js"]});
|
283
|
-
is('symbols.getSymbol("opt").name', 'opt', 'Anonymous object properties are assigned to $anonymous.');
|
284
|
-
is('symbols.getSymbol("opt.conf.keep").alias', 'opt.conf.keep', 'Anonymous object properties are assigned to $anonymous.');
|
285
|
-
is('symbols.getSymbol("opt.conf.base").alias', 'opt.conf.base', 'Anonymous object properties are assigned to $anonymous.');
|
286
|
-
|
287
|
-
}
|
288
|
-
,
|
289
|
-
function() {
|
290
|
-
symbolize({a:true, p:true, _: [SYS.pwd+"test/params_optional.js"]});
|
291
|
-
is('symbols.getSymbol("Document").params.length', 3, 'Correct number of params are found when optional param syntax is used.');
|
292
|
-
is('symbols.getSymbol("Document").params[1].name', "id", 'Name of optional param is found.');
|
293
|
-
is('symbols.getSymbol("Document").params[1].isOptional', true, 'Optional param is marked isOptional.');
|
294
|
-
is('symbols.getSymbol("Document").params[2].name', "title", 'Name of optional param with default value is found.');
|
295
|
-
is('symbols.getSymbol("Document").params[2].isOptional', true, 'Optional param with default value is marked isOptional.');
|
296
|
-
is('symbols.getSymbol("Document").params[2].defaultValue', " This is untitled.", 'Optional param default value is found.');
|
297
|
-
|
298
|
-
|
299
|
-
}
|
300
|
-
];
|
301
|
-
|
302
|
-
|
303
|
-
//// run and print results
|
304
|
-
print(testrun(testCases));
|