xultestrunner 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +4 -1
- data/LICENSE +17 -18
- data/README.rdoc +18 -0
- data/Rakefile +65 -40
- data/VERSION +1 -1
- data/bin/xultest +1 -12
- data/lib/xultestrunner.rb +1 -1
- data/test/test_helper.rb +9 -0
- data/test/xultestrunner_test.rb +7 -0
- data/xpcomcore/app/application.ini +12 -0
- data/xpcomcore/app/chrome/chrome.manifest +1 -0
- data/xpcomcore/app/chrome/content/xul/main_window.xul +6 -0
- data/xpcomcore/app/components/bootstrapper.js +70 -0
- data/xpcomcore/app/defaults/preferences/prefs.js +7 -0
- data/xultestrunner.gemspec +21 -150
- metadata +27 -153
- data/.gitmodules +0 -3
- data/README +0 -17
- data/xulapp/application.ini +0 -9
- data/xulapp/chrome/chrome.manifest +0 -2
- data/xulapp/chrome/content/interface/boot.xul +0 -20
- data/xulapp/chrome/content/interface/testharness.html +0 -30
- data/xulapp/chrome/content/lib/xultestcase.js +0 -140
- data/xulapp/chrome/content/lib/xultestrunner.js +0 -120
- data/xulapp/chrome/content/vendor/prototype/LICENSE +0 -16
- data/xulapp/chrome/content/vendor/prototype/prototype.js +0 -4874
- data/xulapp/chrome/content/vendor/scriptaculous/LICENSE +0 -20
- data/xulapp/chrome/content/vendor/scriptaculous/test.css +0 -90
- data/xulapp/chrome/content/vendor/scriptaculous/unittest.js +0 -566
- data/xulapp/chrome/content/vendor/xpcomcore/LICENSE +0 -21
- data/xulapp/chrome/content/vendor/xpcomcore/README +0 -27
- data/xulapp/chrome/content/vendor/xpcomcore/Rakefile +0 -83
- data/xulapp/chrome/content/vendor/xpcomcore/VERSION.yml +0 -5
- data/xulapp/chrome/content/vendor/xpcomcore/bootstrapper.js +0 -32
- data/xulapp/chrome/content/vendor/xpcomcore/components/XPCOMCore.js +0 -120
- data/xulapp/chrome/content/vendor/xpcomcore/doc/files.html +0 -241
- data/xulapp/chrome/content/vendor/xpcomcore/doc/index.html +0 -243
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/Error.html +0 -256
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/Kernel.html +0 -1030
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/LoadError.html +0 -319
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/SelfConceptError.html +0 -319
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/_global_.html +0 -316
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/src/lib_file.js.html +0 -53
- data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/src/lib_kernel.js.html +0 -251
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/README.txt +0 -186
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Chain.js +0 -102
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Dumper.js +0 -144
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Hash.js +0 -84
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Link.js +0 -153
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Namespace.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Opt.js +0 -134
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Reflection.js +0 -26
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/String.js +0 -93
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Testrun.js +0 -129
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame.js +0 -33
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/FOODOC.js +0 -26
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +0 -159
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +0 -16
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +0 -292
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC.js +0 -26
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +0 -200
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +0 -294
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +0 -126
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +0 -109
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Lang.js +0 -144
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Parser.js +0 -145
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +0 -33
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +0 -645
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +0 -241
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +0 -41
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Token.js +0 -18
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +0 -332
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +0 -133
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Util.js +0 -32
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Walker.js +0 -474
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC.js +0 -104
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/main.js +0 -111
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/commentSrcJson.js +0 -20
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/frameworkPrototype.js +0 -16
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/functionCall.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/publishSrcHilite.js +0 -62
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/symbolLink.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagParamConfig.js +0 -31
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagSynonyms.js +0 -43
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/run.js +0 -348
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/t/TestDoc.js +0 -144
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/t/runner.js +0 -13
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/addon.js +0 -24
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/anon_inner.js +0 -14
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/augments.js +0 -31
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/augments2.js +0 -26
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/borrows.js +0 -46
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/borrows2.js +0 -23
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/config.js +0 -22
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/constructs.js +0 -18
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/encoding.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/encoding_other.js +0 -12
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/event.js +0 -54
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/exports.js +0 -14
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/functions_anon.js +0 -39
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/functions_nested.js +0 -33
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/global.js +0 -13
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/globals.js +0 -25
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/ignore.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/inner.js +0 -16
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/jsdoc_test.js +0 -477
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/lend.js +0 -33
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/memberof.js +0 -19
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/memberof_constructor.js +0 -17
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/module.js +0 -17
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/name.js +0 -19
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/namespace_nested.js +0 -23
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/nocode.js +0 -13
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/oblit_anon.js +0 -20
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/overview.js +0 -20
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/param_inline.js +0 -37
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/params_optional.js +0 -8
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype.js +0 -17
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_nested.js +0 -9
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit.js +0 -13
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +0 -24
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/public.js +0 -10
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/code.js +0 -5
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/notcode.txt +0 -5
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shared.js +0 -42
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shared2.js +0 -2
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shortcuts.js +0 -22
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/static_this.js +0 -13
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/synonyms.js +0 -31
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/tosource.js +0 -23
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/variable_redefine.js +0 -14
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test.js +0 -325
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/changes.txt +0 -96
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/conf/sample.conf +0 -31
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/build.xml +0 -36
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/build_1.4.xml +0 -36
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/classes/js.jar +0 -0
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/src/JsDebugRun.java +0 -21
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/src/JsRun.java +0 -21
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsdebug.jar +0 -0
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsrun.jar +0 -0
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsrun.sh +0 -52
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +0 -17
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +0 -56
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/class.tmpl +0 -646
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/index.tmpl +0 -39
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/publish.js +0 -200
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css +0 -162
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/header.html +0 -2
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html +0 -19
- data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +0 -35
- data/xulapp/chrome/content/vendor/xpcomcore/lib/file.js +0 -46
- data/xulapp/chrome/content/vendor/xpcomcore/lib/kernel.js +0 -244
- data/xulapp/chrome/content/vendor/xpcomcore/test/file_test.js +0 -16
- data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/love.js +0 -1
- data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/mad_love.js +0 -1
- data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/mad_world.js +0 -1
- data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/syntax_error.js +0 -1
- data/xulapp/chrome/content/vendor/xpcomcore/test/kernel_test.js +0 -88
- data/xulapp/components/bootstrap.js +0 -93
- data/xulapp/defaults/preferences/prefs.js +0 -14
@@ -1,200 +0,0 @@
|
|
1
|
-
/** Called automatically by JsDoc Toolkit. */
|
2
|
-
function publish(symbolSet) {
|
3
|
-
publish.conf = { // trailing slash expected for dirs
|
4
|
-
ext: ".html",
|
5
|
-
outDir: JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
|
6
|
-
templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
|
7
|
-
symbolsDir: "symbols/",
|
8
|
-
srcDir: "symbols/src/"
|
9
|
-
};
|
10
|
-
|
11
|
-
// is source output is suppressed, just display the links to the source file
|
12
|
-
if (JSDOC.opt.s && defined(Link) && Link.prototype._makeSrcLink) {
|
13
|
-
Link.prototype._makeSrcLink = function(srcFilePath) {
|
14
|
-
return "<"+srcFilePath+">";
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
// create the folders and subfolders to hold the output
|
19
|
-
IO.mkPath((publish.conf.outDir+"symbols/src").split("/"));
|
20
|
-
|
21
|
-
// used to allow Link to check the details of things being linked to
|
22
|
-
Link.symbolSet = symbolSet;
|
23
|
-
|
24
|
-
// create the required templates
|
25
|
-
try {
|
26
|
-
var classTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"class.tmpl");
|
27
|
-
var classesTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allclasses.tmpl");
|
28
|
-
}
|
29
|
-
catch(e) {
|
30
|
-
print("Couldn't create the required templates: "+e);
|
31
|
-
quit();
|
32
|
-
}
|
33
|
-
|
34
|
-
// some ustility filters
|
35
|
-
function hasNoParent($) {return ($.memberOf == "")}
|
36
|
-
function isaFile($) {return ($.is("FILE"))}
|
37
|
-
function isaClass($) {return ($.is("CONSTRUCTOR") || $.isNamespace)}
|
38
|
-
|
39
|
-
// get an array version of the symbolset, useful for filtering
|
40
|
-
var symbols = symbolSet.toArray();
|
41
|
-
|
42
|
-
// create the hilited source code files
|
43
|
-
var files = JSDOC.opt.srcFiles;
|
44
|
-
for (var i = 0, l = files.length; i < l; i++) {
|
45
|
-
var file = files[i];
|
46
|
-
var srcDir = publish.conf.outDir + "symbols/src/";
|
47
|
-
makeSrcFile(file, srcDir);
|
48
|
-
}
|
49
|
-
|
50
|
-
// get a list of all the classes in the symbolset
|
51
|
-
var classes = symbols.filter(isaClass).sort(makeSortby("alias"));
|
52
|
-
|
53
|
-
// create a filemap in which outfiles must be to be named uniquely, ignoring case
|
54
|
-
if (JSDOC.opt.u) {
|
55
|
-
var filemapCounts = {};
|
56
|
-
Link.filemap = {};
|
57
|
-
for (var i = 0, l = classes.length; i < l; i++) {
|
58
|
-
var lcAlias = classes[i].alias.toLowerCase();
|
59
|
-
|
60
|
-
if (!filemapCounts[lcAlias]) filemapCounts[lcAlias] = 1;
|
61
|
-
else filemapCounts[lcAlias]++;
|
62
|
-
|
63
|
-
Link.filemap[classes[i].alias] =
|
64
|
-
(filemapCounts[lcAlias] > 1)?
|
65
|
-
lcAlias+"_"+filemapCounts[lcAlias] : lcAlias;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
// create a class index, displayed in the left-hand column of every class page
|
70
|
-
Link.base = "../";
|
71
|
-
publish.classesIndex = classesTemplate.process(classes); // kept in memory
|
72
|
-
|
73
|
-
// create each of the class pages
|
74
|
-
for (var i = 0, l = classes.length; i < l; i++) {
|
75
|
-
var symbol = classes[i];
|
76
|
-
|
77
|
-
symbol.events = symbol.getEvents(); // 1 order matters
|
78
|
-
symbol.methods = symbol.getMethods(); // 2
|
79
|
-
|
80
|
-
var output = "";
|
81
|
-
output = classTemplate.process(symbol);
|
82
|
-
|
83
|
-
IO.saveFile(publish.conf.outDir+"symbols/", ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias) + publish.conf.ext, output);
|
84
|
-
}
|
85
|
-
|
86
|
-
// regenerate the index with different relative links, used in the index pages
|
87
|
-
Link.base = "";
|
88
|
-
publish.classesIndex = classesTemplate.process(classes);
|
89
|
-
|
90
|
-
// create the class index page
|
91
|
-
try {
|
92
|
-
var classesindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"index.tmpl");
|
93
|
-
}
|
94
|
-
catch(e) { print(e.message); quit(); }
|
95
|
-
|
96
|
-
var classesIndex = classesindexTemplate.process(classes);
|
97
|
-
IO.saveFile(publish.conf.outDir, "index"+publish.conf.ext, classesIndex);
|
98
|
-
classesindexTemplate = classesIndex = classes = null;
|
99
|
-
|
100
|
-
// create the file index page
|
101
|
-
try {
|
102
|
-
var fileindexTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"allfiles.tmpl");
|
103
|
-
}
|
104
|
-
catch(e) { print(e.message); quit(); }
|
105
|
-
|
106
|
-
var documentedFiles = symbols.filter(isaFile); // files that have file-level docs
|
107
|
-
var allFiles = []; // not all files have file-level docs, but we need to list every one
|
108
|
-
|
109
|
-
for (var i = 0; i < files.length; i++) {
|
110
|
-
allFiles.push(new JSDOC.Symbol(files[i], [], "FILE", new JSDOC.DocComment("/** */")));
|
111
|
-
}
|
112
|
-
|
113
|
-
for (var i = 0; i < documentedFiles.length; i++) {
|
114
|
-
var offset = files.indexOf(documentedFiles[i].alias);
|
115
|
-
allFiles[offset] = documentedFiles[i];
|
116
|
-
}
|
117
|
-
|
118
|
-
allFiles = allFiles.sort(makeSortby("name"));
|
119
|
-
|
120
|
-
// output the file index page
|
121
|
-
var filesIndex = fileindexTemplate.process(allFiles);
|
122
|
-
IO.saveFile(publish.conf.outDir, "files"+publish.conf.ext, filesIndex);
|
123
|
-
fileindexTemplate = filesIndex = files = null;
|
124
|
-
}
|
125
|
-
|
126
|
-
|
127
|
-
/** Just the first sentence (up to a full stop). Should not break on dotted variable names. */
|
128
|
-
function summarize(desc) {
|
129
|
-
if (typeof desc != "undefined")
|
130
|
-
return desc.match(/([\w\W]+?\.)[^a-z0-9_$]/i)? RegExp.$1 : desc;
|
131
|
-
}
|
132
|
-
|
133
|
-
/** Make a symbol sorter by some attribute. */
|
134
|
-
function makeSortby(attribute) {
|
135
|
-
return function(a, b) {
|
136
|
-
if (a[attribute] != undefined && b[attribute] != undefined) {
|
137
|
-
a = a[attribute].toLowerCase();
|
138
|
-
b = b[attribute].toLowerCase();
|
139
|
-
if (a < b) return -1;
|
140
|
-
if (a > b) return 1;
|
141
|
-
return 0;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
|
-
/** Pull in the contents of an external file at the given path. */
|
147
|
-
function include(path) {
|
148
|
-
var path = publish.conf.templatesDir+path;
|
149
|
-
return IO.readFile(path);
|
150
|
-
}
|
151
|
-
|
152
|
-
/** Turn a raw source file into a code-hilited page in the docs. */
|
153
|
-
function makeSrcFile(path, srcDir, name) {
|
154
|
-
if (JSDOC.opt.s) return;
|
155
|
-
|
156
|
-
if (!name) {
|
157
|
-
name = path.replace(/\.\.?[\\\/]/g, "").replace(/[\\\/]/g, "_");
|
158
|
-
name = name.replace(/\:/g, "_");
|
159
|
-
}
|
160
|
-
|
161
|
-
var src = {path: path, name:name, charset: IO.encoding, hilited: ""};
|
162
|
-
|
163
|
-
if (defined(JSDOC.PluginManager)) {
|
164
|
-
JSDOC.PluginManager.run("onPublishSrc", src);
|
165
|
-
}
|
166
|
-
|
167
|
-
if (src.hilited) {
|
168
|
-
IO.saveFile(srcDir, name+publish.conf.ext, src.hilited);
|
169
|
-
}
|
170
|
-
}
|
171
|
-
|
172
|
-
/** Build output for displaying function parameters. */
|
173
|
-
function makeSignature(params) {
|
174
|
-
if (!params) return "()";
|
175
|
-
var signature = "("
|
176
|
-
+
|
177
|
-
params.filter(
|
178
|
-
function($) {
|
179
|
-
return $.name.indexOf(".") == -1; // don't show config params in signature
|
180
|
-
}
|
181
|
-
).map(
|
182
|
-
function($) {
|
183
|
-
return $.name;
|
184
|
-
}
|
185
|
-
).join(", ")
|
186
|
-
+
|
187
|
-
")";
|
188
|
-
return signature;
|
189
|
-
}
|
190
|
-
|
191
|
-
/** Find symbol {@link ...} strings in text and turn into html links */
|
192
|
-
function resolveLinks(str, from) {
|
193
|
-
str = str.replace(/\{@link ([^} ]+) ?\}/gi,
|
194
|
-
function(match, symbolName) {
|
195
|
-
return new Link().toSymbol(symbolName);
|
196
|
-
}
|
197
|
-
);
|
198
|
-
|
199
|
-
return str;
|
200
|
-
}
|
data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css
DELETED
@@ -1,162 +0,0 @@
|
|
1
|
-
/* default.css */
|
2
|
-
body
|
3
|
-
{
|
4
|
-
font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
|
5
|
-
width: 800px;
|
6
|
-
}
|
7
|
-
|
8
|
-
.header
|
9
|
-
{
|
10
|
-
clear: both;
|
11
|
-
background-color: #ccc;
|
12
|
-
padding: 8px;
|
13
|
-
}
|
14
|
-
|
15
|
-
h1
|
16
|
-
{
|
17
|
-
font-size: 150%;
|
18
|
-
font-weight: bold;
|
19
|
-
padding: 0;
|
20
|
-
margin: 1em 0 0 .3em;
|
21
|
-
}
|
22
|
-
|
23
|
-
hr
|
24
|
-
{
|
25
|
-
border: none 0;
|
26
|
-
border-top: 1px solid #7F8FB1;
|
27
|
-
height: 1px;
|
28
|
-
}
|
29
|
-
|
30
|
-
pre.code
|
31
|
-
{
|
32
|
-
display: block;
|
33
|
-
padding: 8px;
|
34
|
-
border: 1px dashed #ccc;
|
35
|
-
}
|
36
|
-
|
37
|
-
#index
|
38
|
-
{
|
39
|
-
margin-top: 24px;
|
40
|
-
float: left;
|
41
|
-
width: 160px;
|
42
|
-
position: absolute;
|
43
|
-
left: 8px;
|
44
|
-
background-color: #F3F3F3;
|
45
|
-
padding: 8px;
|
46
|
-
}
|
47
|
-
|
48
|
-
#content
|
49
|
-
{
|
50
|
-
margin-left: 190px;
|
51
|
-
width: 600px;
|
52
|
-
}
|
53
|
-
|
54
|
-
.classList
|
55
|
-
{
|
56
|
-
list-style-type: none;
|
57
|
-
padding: 0;
|
58
|
-
margin: 0 0 0 8px;
|
59
|
-
font-family: arial, sans-serif;
|
60
|
-
font-size: 1em;
|
61
|
-
overflow: auto;
|
62
|
-
}
|
63
|
-
|
64
|
-
.classList li
|
65
|
-
{
|
66
|
-
padding: 0;
|
67
|
-
margin: 0 0 8px 0;
|
68
|
-
}
|
69
|
-
|
70
|
-
.summaryTable { width: 100%; }
|
71
|
-
|
72
|
-
h1.classTitle
|
73
|
-
{
|
74
|
-
font-size:170%;
|
75
|
-
line-height:130%;
|
76
|
-
}
|
77
|
-
|
78
|
-
h2 { font-size: 110%; }
|
79
|
-
caption, div.sectionTitle
|
80
|
-
{
|
81
|
-
background-color: #7F8FB1;
|
82
|
-
color: #fff;
|
83
|
-
font-size:130%;
|
84
|
-
text-align: left;
|
85
|
-
padding: 2px 6px 2px 6px;
|
86
|
-
border: 1px #7F8FB1 solid;
|
87
|
-
}
|
88
|
-
|
89
|
-
div.sectionTitle { margin-bottom: 8px; }
|
90
|
-
.summaryTable thead { display: none; }
|
91
|
-
|
92
|
-
.summaryTable td
|
93
|
-
{
|
94
|
-
vertical-align: top;
|
95
|
-
padding: 4px;
|
96
|
-
border-bottom: 1px #7F8FB1 solid;
|
97
|
-
border-right: 1px #7F8FB1 solid;
|
98
|
-
}
|
99
|
-
|
100
|
-
/*col#summaryAttributes {}*/
|
101
|
-
.summaryTable td.attributes
|
102
|
-
{
|
103
|
-
border-left: 1px #7F8FB1 solid;
|
104
|
-
width: 140px;
|
105
|
-
text-align: right;
|
106
|
-
}
|
107
|
-
|
108
|
-
td.attributes, .fixedFont
|
109
|
-
{
|
110
|
-
line-height: 15px;
|
111
|
-
color: #002EBE;
|
112
|
-
font-family: "Courier New",Courier,monospace;
|
113
|
-
font-size: 13px;
|
114
|
-
}
|
115
|
-
|
116
|
-
.summaryTable td.nameDescription
|
117
|
-
{
|
118
|
-
text-align: left;
|
119
|
-
font-size: 13px;
|
120
|
-
line-height: 15px;
|
121
|
-
}
|
122
|
-
|
123
|
-
.summaryTable td.nameDescription, .description
|
124
|
-
{
|
125
|
-
line-height: 15px;
|
126
|
-
padding: 4px;
|
127
|
-
padding-left: 4px;
|
128
|
-
}
|
129
|
-
|
130
|
-
.summaryTable { margin-bottom: 8px; }
|
131
|
-
|
132
|
-
ul.inheritsList
|
133
|
-
{
|
134
|
-
list-style: square;
|
135
|
-
margin-left: 20px;
|
136
|
-
padding-left: 0;
|
137
|
-
}
|
138
|
-
|
139
|
-
.detailList {
|
140
|
-
margin-left: 20px;
|
141
|
-
line-height: 15px;
|
142
|
-
}
|
143
|
-
.detailList dt { margin-left: 20px; }
|
144
|
-
|
145
|
-
.detailList .heading
|
146
|
-
{
|
147
|
-
font-weight: bold;
|
148
|
-
padding-bottom: 6px;
|
149
|
-
margin-left: 0;
|
150
|
-
}
|
151
|
-
|
152
|
-
.light, td.attributes, .light a:link, .light a:visited
|
153
|
-
{
|
154
|
-
color: #777;
|
155
|
-
font-style: italic;
|
156
|
-
}
|
157
|
-
|
158
|
-
.fineprint
|
159
|
-
{
|
160
|
-
text-align: right;
|
161
|
-
font-size: 10px;
|
162
|
-
}
|
data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Generated Javascript Documentation</title>
|
7
|
-
</head>
|
8
|
-
<frameset cols="20%,80%">
|
9
|
-
<frame src="allclasses-frame.html" name="packageFrame" />
|
10
|
-
<frame src="splash.html" name="classFrame" />
|
11
|
-
<noframes>
|
12
|
-
<body>
|
13
|
-
<p>
|
14
|
-
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
|
15
|
-
</p>
|
16
|
-
</body>
|
17
|
-
</noframes>
|
18
|
-
</frameset>
|
19
|
-
</html>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<symbol alias="{+data.alias+}">
|
2
|
-
<name>{+data.name+}</name>
|
3
|
-
<memberOf>{+data.memberOf+}</memberOf>
|
4
|
-
<isStatic>{+data.isStatic+}</isStatic>
|
5
|
-
<isa>{+data.isa+}</isa>
|
6
|
-
<desc>{+data.desc+}</desc>
|
7
|
-
<classDesc>{+data.classDesc+}</classDesc>
|
8
|
-
|
9
|
-
<methods><for each="method" in="data.methods">
|
10
|
-
<method>
|
11
|
-
<name>{+method.name+}</name>
|
12
|
-
<memberOf>{+method.memberOf+}</memberOf>
|
13
|
-
<isStatic>{+method.isStatic+}</isStatic>
|
14
|
-
<desc>{+method.desc+}</desc>
|
15
|
-
<params><for each="param" in="method.params">
|
16
|
-
<param>
|
17
|
-
<type>{+param.type+}</type>
|
18
|
-
<name>{+param.name+}</name>
|
19
|
-
<desc>{+param.desc+}</desc>
|
20
|
-
<defaultValue>{+param.defaultValue+}</defaultValue>
|
21
|
-
</param></for>
|
22
|
-
</params>
|
23
|
-
</method></for>
|
24
|
-
</methods>
|
25
|
-
|
26
|
-
<properties><for each="property" in="data.properties">
|
27
|
-
<property>
|
28
|
-
<name>{+property.name+}</name>
|
29
|
-
<memberOf>{+property.memberOf+}</memberOf>
|
30
|
-
<isStatic>{+property.isStatic+}</isStatic>
|
31
|
-
<desc>{+property.desc+}</desc>
|
32
|
-
<type>{+property.type+}</type>
|
33
|
-
</property></for>
|
34
|
-
</properties>
|
35
|
-
</symbol>
|
@@ -1,46 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview This file defines the implementation of our File object.
|
3
|
-
*/
|
4
|
-
|
5
|
-
/**
|
6
|
-
* This will have docs when it actually does something
|
7
|
-
*/
|
8
|
-
function File() {};
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Joins the given string arguments together using the operating system's native path
|
12
|
-
* separator.
|
13
|
-
* @param {String} Set of strings to join together.
|
14
|
-
* @type String
|
15
|
-
*/
|
16
|
-
File.join = function() {
|
17
|
-
var file = $Cc["@mozilla.org/file/local;1"].createInstance($Ci.nsILocalFile);
|
18
|
-
file.initWithPath(arguments[0]);
|
19
|
-
|
20
|
-
for(var i = 1; i < arguments.length; i++) {
|
21
|
-
file.append(arguments[i]);
|
22
|
-
}
|
23
|
-
|
24
|
-
return file.path;
|
25
|
-
};
|
26
|
-
|
27
|
-
/**
|
28
|
-
* Reads the given number of bytes (or the entire contents if the argument is ommitted)
|
29
|
-
* from the specified file
|
30
|
-
* @param {String} Path to a file.
|
31
|
-
* @param {int} Optional - number of bytes to read from the file.
|
32
|
-
* @type String
|
33
|
-
*/
|
34
|
-
File.read = function(filePath, maxBytes) {
|
35
|
-
var file = $Cc["@mozilla.org/file/local;1"].createInstance($Ci.nsILocalFile);
|
36
|
-
file.initWithPath(filePath);
|
37
|
-
var fileInputStream = $Cc["@mozilla.org/network/file-input-stream;1"].createInstance($Ci.nsIFileInputStream);
|
38
|
-
var scriptableStream = $Cc["@mozilla.org/scriptableinputstream;1"].createInstance($Ci.nsIScriptableInputStream);
|
39
|
-
fileInputStream.init(file, -1, -1, 0);
|
40
|
-
scriptableStream.init(fileInputStream);
|
41
|
-
try {
|
42
|
-
return scriptableStream.read(maxBytes || scriptableStream.available());
|
43
|
-
} finally {
|
44
|
-
scriptableStream.close();
|
45
|
-
}
|
46
|
-
};
|