xultestrunner 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/.document +5 -0
  2. data/.gitignore +4 -1
  3. data/LICENSE +17 -18
  4. data/README.rdoc +18 -0
  5. data/Rakefile +65 -40
  6. data/VERSION +1 -1
  7. data/bin/xultest +1 -12
  8. data/lib/xultestrunner.rb +1 -1
  9. data/test/test_helper.rb +9 -0
  10. data/test/xultestrunner_test.rb +7 -0
  11. data/xpcomcore/app/application.ini +12 -0
  12. data/xpcomcore/app/chrome/chrome.manifest +1 -0
  13. data/xpcomcore/app/chrome/content/xul/main_window.xul +6 -0
  14. data/xpcomcore/app/components/bootstrapper.js +70 -0
  15. data/xpcomcore/app/defaults/preferences/prefs.js +7 -0
  16. data/xultestrunner.gemspec +21 -150
  17. metadata +27 -153
  18. data/.gitmodules +0 -3
  19. data/README +0 -17
  20. data/xulapp/application.ini +0 -9
  21. data/xulapp/chrome/chrome.manifest +0 -2
  22. data/xulapp/chrome/content/interface/boot.xul +0 -20
  23. data/xulapp/chrome/content/interface/testharness.html +0 -30
  24. data/xulapp/chrome/content/lib/xultestcase.js +0 -140
  25. data/xulapp/chrome/content/lib/xultestrunner.js +0 -120
  26. data/xulapp/chrome/content/vendor/prototype/LICENSE +0 -16
  27. data/xulapp/chrome/content/vendor/prototype/prototype.js +0 -4874
  28. data/xulapp/chrome/content/vendor/scriptaculous/LICENSE +0 -20
  29. data/xulapp/chrome/content/vendor/scriptaculous/test.css +0 -90
  30. data/xulapp/chrome/content/vendor/scriptaculous/unittest.js +0 -566
  31. data/xulapp/chrome/content/vendor/xpcomcore/LICENSE +0 -21
  32. data/xulapp/chrome/content/vendor/xpcomcore/README +0 -27
  33. data/xulapp/chrome/content/vendor/xpcomcore/Rakefile +0 -83
  34. data/xulapp/chrome/content/vendor/xpcomcore/VERSION.yml +0 -5
  35. data/xulapp/chrome/content/vendor/xpcomcore/bootstrapper.js +0 -32
  36. data/xulapp/chrome/content/vendor/xpcomcore/components/XPCOMCore.js +0 -120
  37. data/xulapp/chrome/content/vendor/xpcomcore/doc/files.html +0 -241
  38. data/xulapp/chrome/content/vendor/xpcomcore/doc/index.html +0 -243
  39. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/Error.html +0 -256
  40. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/Kernel.html +0 -1030
  41. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/LoadError.html +0 -319
  42. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/SelfConceptError.html +0 -319
  43. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/_global_.html +0 -316
  44. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/src/lib_file.js.html +0 -53
  45. data/xulapp/chrome/content/vendor/xpcomcore/doc/symbols/src/lib_kernel.js.html +0 -251
  46. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/README.txt +0 -186
  47. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Chain.js +0 -102
  48. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Dumper.js +0 -144
  49. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Hash.js +0 -84
  50. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Link.js +0 -153
  51. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Namespace.js +0 -10
  52. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Opt.js +0 -134
  53. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Reflection.js +0 -26
  54. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/String.js +0 -93
  55. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame/Testrun.js +0 -129
  56. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/frame.js +0 -33
  57. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/FOODOC.js +0 -26
  58. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +0 -159
  59. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +0 -16
  60. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +0 -292
  61. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC.js +0 -26
  62. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +0 -200
  63. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +0 -294
  64. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +0 -126
  65. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +0 -109
  66. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Lang.js +0 -144
  67. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Parser.js +0 -145
  68. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +0 -33
  69. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +0 -645
  70. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +0 -241
  71. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +0 -41
  72. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Token.js +0 -18
  73. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +0 -332
  74. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +0 -133
  75. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Util.js +0 -32
  76. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Walker.js +0 -474
  77. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC.js +0 -104
  78. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/main.js +0 -111
  79. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/commentSrcJson.js +0 -20
  80. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/frameworkPrototype.js +0 -16
  81. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/functionCall.js +0 -10
  82. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/publishSrcHilite.js +0 -62
  83. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/symbolLink.js +0 -10
  84. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagParamConfig.js +0 -31
  85. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagSynonyms.js +0 -43
  86. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/run.js +0 -348
  87. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/t/TestDoc.js +0 -144
  88. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/t/runner.js +0 -13
  89. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/addon.js +0 -24
  90. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/anon_inner.js +0 -14
  91. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/augments.js +0 -31
  92. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/augments2.js +0 -26
  93. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/borrows.js +0 -46
  94. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/borrows2.js +0 -23
  95. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/config.js +0 -22
  96. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/constructs.js +0 -18
  97. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/encoding.js +0 -10
  98. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/encoding_other.js +0 -12
  99. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/event.js +0 -54
  100. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/exports.js +0 -14
  101. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/functions_anon.js +0 -39
  102. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/functions_nested.js +0 -33
  103. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/global.js +0 -13
  104. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/globals.js +0 -25
  105. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/ignore.js +0 -10
  106. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/inner.js +0 -16
  107. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/jsdoc_test.js +0 -477
  108. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/lend.js +0 -33
  109. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/memberof.js +0 -19
  110. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/memberof_constructor.js +0 -17
  111. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/module.js +0 -17
  112. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/name.js +0 -19
  113. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/namespace_nested.js +0 -23
  114. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/nocode.js +0 -13
  115. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/oblit_anon.js +0 -20
  116. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/overview.js +0 -20
  117. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/param_inline.js +0 -37
  118. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/params_optional.js +0 -8
  119. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype.js +0 -17
  120. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_nested.js +0 -9
  121. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit.js +0 -13
  122. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +0 -24
  123. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/public.js +0 -10
  124. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/code.js +0 -5
  125. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/notcode.txt +0 -5
  126. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shared.js +0 -42
  127. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shared2.js +0 -2
  128. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/shortcuts.js +0 -22
  129. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/static_this.js +0 -13
  130. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/synonyms.js +0 -31
  131. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/tosource.js +0 -23
  132. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test/variable_redefine.js +0 -14
  133. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/app/test.js +0 -325
  134. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/changes.txt +0 -96
  135. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/conf/sample.conf +0 -31
  136. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/build.xml +0 -36
  137. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/build_1.4.xml +0 -36
  138. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/classes/js.jar +0 -0
  139. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/src/JsDebugRun.java +0 -21
  140. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/java/src/JsRun.java +0 -21
  141. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsdebug.jar +0 -0
  142. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsrun.jar +0 -0
  143. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/jsrun.sh +0 -52
  144. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +0 -17
  145. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +0 -56
  146. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/class.tmpl +0 -646
  147. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/index.tmpl +0 -39
  148. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/publish.js +0 -200
  149. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css +0 -162
  150. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/header.html +0 -2
  151. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html +0 -19
  152. data/xulapp/chrome/content/vendor/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +0 -35
  153. data/xulapp/chrome/content/vendor/xpcomcore/lib/file.js +0 -46
  154. data/xulapp/chrome/content/vendor/xpcomcore/lib/kernel.js +0 -244
  155. data/xulapp/chrome/content/vendor/xpcomcore/test/file_test.js +0 -16
  156. data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/love.js +0 -1
  157. data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/mad_love.js +0 -1
  158. data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/mad_world.js +0 -1
  159. data/xulapp/chrome/content/vendor/xpcomcore/test/fixtures/syntax_error.js +0 -1
  160. data/xulapp/chrome/content/vendor/xpcomcore/test/kernel_test.js +0 -88
  161. data/xulapp/components/bootstrap.js +0 -93
  162. data/xulapp/defaults/preferences/prefs.js +0 -14
@@ -1,1030 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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
- <meta name="generator" content="JsDoc Toolkit" />
7
-
8
- <title>JsDoc Reference - Kernel</title>
9
-
10
- <style type="text/css">
11
- /* default.css */
12
- body
13
- {
14
- font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
15
- width: 800px;
16
- }
17
-
18
- .header
19
- {
20
- clear: both;
21
- background-color: #ccc;
22
- padding: 8px;
23
- }
24
-
25
- h1
26
- {
27
- font-size: 150%;
28
- font-weight: bold;
29
- padding: 0;
30
- margin: 1em 0 0 .3em;
31
- }
32
-
33
- hr
34
- {
35
- border: none 0;
36
- border-top: 1px solid #7F8FB1;
37
- height: 1px;
38
- }
39
-
40
- pre.code
41
- {
42
- display: block;
43
- padding: 8px;
44
- border: 1px dashed #ccc;
45
- }
46
-
47
- #index
48
- {
49
- margin-top: 24px;
50
- float: left;
51
- width: 160px;
52
- position: absolute;
53
- left: 8px;
54
- background-color: #F3F3F3;
55
- padding: 8px;
56
- }
57
-
58
- #content
59
- {
60
- margin-left: 190px;
61
- width: 600px;
62
- }
63
-
64
- .classList
65
- {
66
- list-style-type: none;
67
- padding: 0;
68
- margin: 0 0 0 8px;
69
- font-family: arial, sans-serif;
70
- font-size: 1em;
71
- overflow: auto;
72
- }
73
-
74
- .classList li
75
- {
76
- padding: 0;
77
- margin: 0 0 8px 0;
78
- }
79
-
80
- .summaryTable { width: 100%; }
81
-
82
- h1.classTitle
83
- {
84
- font-size:170%;
85
- line-height:130%;
86
- }
87
-
88
- h2 { font-size: 110%; }
89
- caption, div.sectionTitle
90
- {
91
- background-color: #7F8FB1;
92
- color: #fff;
93
- font-size:130%;
94
- text-align: left;
95
- padding: 2px 6px 2px 6px;
96
- border: 1px #7F8FB1 solid;
97
- }
98
-
99
- div.sectionTitle { margin-bottom: 8px; }
100
- .summaryTable thead { display: none; }
101
-
102
- .summaryTable td
103
- {
104
- vertical-align: top;
105
- padding: 4px;
106
- border-bottom: 1px #7F8FB1 solid;
107
- border-right: 1px #7F8FB1 solid;
108
- }
109
-
110
- /*col#summaryAttributes {}*/
111
- .summaryTable td.attributes
112
- {
113
- border-left: 1px #7F8FB1 solid;
114
- width: 140px;
115
- text-align: right;
116
- }
117
-
118
- td.attributes, .fixedFont
119
- {
120
- line-height: 15px;
121
- color: #002EBE;
122
- font-family: "Courier New",Courier,monospace;
123
- font-size: 13px;
124
- }
125
-
126
- .summaryTable td.nameDescription
127
- {
128
- text-align: left;
129
- font-size: 13px;
130
- line-height: 15px;
131
- }
132
-
133
- .summaryTable td.nameDescription, .description
134
- {
135
- line-height: 15px;
136
- padding: 4px;
137
- padding-left: 4px;
138
- }
139
-
140
- .summaryTable { margin-bottom: 8px; }
141
-
142
- ul.inheritsList
143
- {
144
- list-style: square;
145
- margin-left: 20px;
146
- padding-left: 0;
147
- }
148
-
149
- .detailList {
150
- margin-left: 20px;
151
- line-height: 15px;
152
- }
153
- .detailList dt { margin-left: 20px; }
154
-
155
- .detailList .heading
156
- {
157
- font-weight: bold;
158
- padding-bottom: 6px;
159
- margin-left: 0;
160
- }
161
-
162
- .light, td.attributes, .light a:link, .light a:visited
163
- {
164
- color: #777;
165
- font-style: italic;
166
- }
167
-
168
- .fineprint
169
- {
170
- text-align: right;
171
- font-size: 10px;
172
- }
173
- </style>
174
- </head>
175
-
176
- <body>
177
- <!-- ============================== header ================================= -->
178
- <!-- begin static/header.html -->
179
- <div id="header">
180
- </div>
181
- <!-- end static/header.html -->
182
-
183
- <!-- ============================== classes index ============================ -->
184
- <div id="index">
185
- <!-- begin publish.classesIndex -->
186
- <div align="center"><a href="../index.html">Class Index</a>
187
- | <a href="../files.html">File Index</a></div>
188
- <hr />
189
- <h2>Classes</h2>
190
- <ul class="classList">
191
-
192
- <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
193
-
194
- <li><a href="../symbols/Error.html">Error</a></li>
195
-
196
- <li><a href="../symbols/Kernel.html">Kernel</a></li>
197
-
198
- <li><a href="../symbols/LoadError.html">LoadError</a></li>
199
-
200
- <li><a href="../symbols/SelfConceptError.html">SelfConceptError</a></li>
201
-
202
- </ul>
203
- <hr />
204
- <!-- end publish.classesIndex -->
205
- </div>
206
-
207
- <div id="content">
208
- <!-- ============================== class title ============================ -->
209
- <h1 class="classTitle">
210
-
211
- Class Kernel
212
- </h1>
213
-
214
- <!-- ============================== class summary ========================== -->
215
- <p class="description">
216
-
217
-
218
- Our central 'class' containing a lot of properties and methods we need to
219
- build the rest of XPCOMCore on top of.
220
-
221
-
222
- <br /><i>Defined in: </i> <a href="../symbols/src/lib_kernel.js.html">kernel.js</a>.
223
-
224
- </p>
225
-
226
- <!-- ============================== constructor summary ==================== -->
227
-
228
- <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class Kernel.">
229
- <caption>Class Summary</caption>
230
- <thead>
231
- <tr>
232
- <th scope="col">Constructor Attributes</th>
233
- <th scope="col">Constructor Name and Description</th>
234
- </tr>
235
- </thead>
236
- <tbody>
237
- <tr>
238
- <td class="attributes">&nbsp;</td>
239
- <td class="nameDescription" >
240
- <div class="fixedFont">
241
- <b><a href="../symbols/Kernel.html#constructor">Kernel</a></b>(mixinScope)
242
- </div>
243
- <div class="description">A pseudo-constructor to make JSDoc happy and actually document things in <a href="../symbols/Kernel.html">Kernel</a>.</div>
244
- </td>
245
- </tr>
246
- </tbody>
247
- </table>
248
-
249
-
250
- <!-- ============================== properties summary ===================== -->
251
-
252
-
253
-
254
- <table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class Kernel.">
255
- <caption>Field Summary</caption>
256
- <thead>
257
- <tr>
258
- <th scope="col">Field Attributes</th>
259
- <th scope="col">Field Name and Description</th>
260
- </tr>
261
- </thead>
262
- <tbody>
263
-
264
- <tr>
265
- <td class="attributes">&nbsp;</td>
266
- <td class="nameDescription">
267
- <div class="fixedFont">
268
- <b><a href="../symbols/Kernel.html#$Cc">$Cc</a></b>
269
- </div>
270
- <div class="description">A shortcut constant to Components.classes.</div>
271
- </td>
272
- </tr>
273
-
274
- <tr>
275
- <td class="attributes">&nbsp;</td>
276
- <td class="nameDescription">
277
- <div class="fixedFont">
278
- <b><a href="../symbols/Kernel.html#$Ci">$Ci</a></b>
279
- </div>
280
- <div class="description">A shortcut constant to Components.interfaces.</div>
281
- </td>
282
- </tr>
283
-
284
- <tr>
285
- <td class="attributes">&nbsp;</td>
286
- <td class="nameDescription">
287
- <div class="fixedFont">
288
- <b><a href="../symbols/Kernel.html#$Cr">$Cr</a></b>
289
- </div>
290
- <div class="description">A shortcut constant to Components.results.</div>
291
- </td>
292
- </tr>
293
-
294
- <tr>
295
- <td class="attributes">&nbsp;</td>
296
- <td class="nameDescription">
297
- <div class="fixedFont">
298
- <b><a href="../symbols/Kernel.html#$Cu">$Cu</a></b>
299
- </div>
300
- <div class="description">A shortcut constant to Components.utils.</div>
301
- </td>
302
- </tr>
303
-
304
- <tr>
305
- <td class="attributes">&nbsp;</td>
306
- <td class="nameDescription">
307
- <div class="fixedFont">
308
- <b><a href="../symbols/Kernel.html#$LOAD_PATH">$LOAD_PATH</a></b>
309
- </div>
310
- <div class="description">Taking inspiration from Ruby, this defines the set of paths to check when
311
- trying to load a file via either <a href="../symbols/Kernel.html#load">Kernel#load</a> or <a href="../symbols/Kernel.html#require">Kernel#require</a>.</div>
312
- </td>
313
- </tr>
314
-
315
- <tr>
316
- <td class="attributes">&nbsp;</td>
317
- <td class="nameDescription">
318
- <div class="fixedFont">
319
- <b><a href="../symbols/Kernel.html#$LOADED_FEATURES">$LOADED_FEATURES</a></b>
320
- </div>
321
- <div class="description">Taking inspiration from Ruby, this defines the currently loaded files that
322
- have been loaded through <a href="../symbols/Kernel.html#require">Kernel#require</a>.</div>
323
- </td>
324
- </tr>
325
-
326
- </tbody>
327
- </table>
328
-
329
-
330
-
331
-
332
-
333
- <!-- ============================== methods summary ======================== -->
334
-
335
-
336
-
337
- <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class Kernel.">
338
- <caption>Method Summary</caption>
339
- <thead>
340
- <tr>
341
- <th scope="col">Method Attributes</th>
342
- <th scope="col">Method Name and Description</th>
343
- </tr>
344
- </thead>
345
- <tbody>
346
-
347
- <tr>
348
- <td class="attributes">&nbsp;</td>
349
- <td class="nameDescription">
350
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#$CURRENT_DIRECTORY">$CURRENT_DIRECTORY</a></b>(stackTraversalDepth)
351
- </div>
352
- <div class="description">This method tries to determine the filesystem path to parent directory of the caller
353
- code of this method NOTE - see the note on $CURRENT_FILE, as the same applies here.</div>
354
- </td>
355
- </tr>
356
-
357
- <tr>
358
- <td class="attributes">&nbsp;</td>
359
- <td class="nameDescription">
360
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#$CURRENT_FILE">$CURRENT_FILE</a></b>(stackTraversalDepth)
361
- </div>
362
- <div class="description">Taking inspiration from Ruby, this method tries to determine the filesystem path to
363
- the caller code of this method.</div>
364
- </td>
365
- </tr>
366
-
367
- <tr>
368
- <td class="attributes">&nbsp;</td>
369
- <td class="nameDescription">
370
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#load">load</a></b>(featurePath)
371
- </div>
372
- <div class="description">Searches {@link Kernel#$LOAD_PATH $LOAD_PATH} for files to load into the current global scope.</div>
373
- </td>
374
- </tr>
375
-
376
- <tr>
377
- <td class="attributes">&lt;inner&gt; &nbsp;</td>
378
- <td class="nameDescription">
379
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#-makeCallingGetter">makeCallingGetter</a></b>(attr, argsArray)
380
- </div>
381
- <div class="description"></div>
382
- </td>
383
- </tr>
384
-
385
- <tr>
386
- <td class="attributes">&lt;inner&gt; &nbsp;</td>
387
- <td class="nameDescription">
388
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#-makeGetter">makeGetter</a></b>(attr)
389
- </div>
390
- <div class="description"></div>
391
- </td>
392
- </tr>
393
-
394
- <tr>
395
- <td class="attributes">&nbsp;</td>
396
- <td class="nameDescription">
397
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#print">print</a></b>(str)
398
- </div>
399
- <div class="description">Prints a string to standard out, without a trailing newline.</div>
400
- </td>
401
- </tr>
402
-
403
- <tr>
404
- <td class="attributes">&nbsp;</td>
405
- <td class="nameDescription">
406
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#puts">puts</a></b>(str)
407
- </div>
408
- <div class="description">Prints a string to standard out, with a trailing newline.</div>
409
- </td>
410
- </tr>
411
-
412
- <tr>
413
- <td class="attributes">&nbsp;</td>
414
- <td class="nameDescription">
415
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#require">require</a></b>(featurePath)
416
- </div>
417
- <div class="description">Searches {@link Kernel#$LOAD_PATH $LOAD_PATH} for features to load into the current global scope.</div>
418
- </td>
419
- </tr>
420
-
421
- <tr>
422
- <td class="attributes">&lt;inner&gt; &nbsp;</td>
423
- <td class="nameDescription">
424
- <div class="fixedFont"><b><a href="../symbols/Kernel.html#-standardLibraryLoader">standardLibraryLoader</a></b>()
425
- </div>
426
- <div class="description"></div>
427
- </td>
428
- </tr>
429
-
430
- </tbody>
431
- </table>
432
-
433
-
434
-
435
-
436
- <!-- ============================== events summary ======================== -->
437
-
438
-
439
- <!-- ============================== constructor details ==================== -->
440
-
441
- <div class="details"><a name="constructor"> </a>
442
- <div class="sectionTitle">
443
- Class Detail
444
- </div>
445
-
446
- <div class="fixedFont">
447
- <b>Kernel</b>(mixinScope)
448
- </div>
449
-
450
- <div class="description">
451
- A pseudo-constructor to make JSDoc happy and actually document things in <a href="../symbols/Kernel.html">Kernel</a>.
452
- If this method is called with an argument, all properties from <a href="../symbols/Kernel.html">Kernel</a> are taken
453
- and defined as the return value of getter methods set on the given object.
454
-
455
- </div>
456
-
457
-
458
-
459
-
460
-
461
- <dl class="detailList">
462
- <dt class="heading">Parameters:</dt>
463
-
464
- <dt>
465
- <span class="light fixedFont">{Object}</span> <b>mixinScope</b>
466
-
467
- </dt>
468
- <dd>Optional argument, any object to mix <a href="../symbols/Kernel.html">Kernel</a>'s properties
469
- into.</dd>
470
-
471
- </dl>
472
-
473
-
474
-
475
-
476
-
477
- <dl class="detailList">
478
- <dt class="heading">Returns:</dt>
479
-
480
- <dd>The prototype object of the Kernel function.</dd>
481
-
482
- </dl>
483
-
484
-
485
-
486
-
487
- </div>
488
-
489
-
490
- <!-- ============================== field details ========================== -->
491
-
492
- <div class="sectionTitle">
493
- Field Detail
494
- </div>
495
-
496
- <a name="$Cc"> </a>
497
- <div class="fixedFont">
498
-
499
-
500
- <b>$Cc</b>
501
-
502
- </div>
503
- <div class="description">
504
- A shortcut constant to Components.classes.
505
-
506
-
507
- </div>
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
- <hr />
517
-
518
- <a name="$Ci"> </a>
519
- <div class="fixedFont">
520
-
521
-
522
- <b>$Ci</b>
523
-
524
- </div>
525
- <div class="description">
526
- A shortcut constant to Components.interfaces.
527
-
528
-
529
- </div>
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
- <hr />
539
-
540
- <a name="$Cr"> </a>
541
- <div class="fixedFont">
542
-
543
-
544
- <b>$Cr</b>
545
-
546
- </div>
547
- <div class="description">
548
- A shortcut constant to Components.results.
549
-
550
-
551
- </div>
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
- <hr />
561
-
562
- <a name="$Cu"> </a>
563
- <div class="fixedFont">
564
-
565
-
566
- <b>$Cu</b>
567
-
568
- </div>
569
- <div class="description">
570
- A shortcut constant to Components.utils.
571
-
572
-
573
- </div>
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
- <hr />
583
-
584
- <a name="$LOAD_PATH"> </a>
585
- <div class="fixedFont">
586
-
587
- <span class="light">{Array}</span>
588
- <b>$LOAD_PATH</b>
589
-
590
- </div>
591
- <div class="description">
592
- Taking inspiration from Ruby, this defines the set of paths to check when
593
- trying to load a file via either <a href="../symbols/Kernel.html#load">Kernel#load</a> or <a href="../symbols/Kernel.html#require">Kernel#require</a>.
594
-
595
-
596
- </div>
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- <hr />
606
-
607
- <a name="$LOADED_FEATURES"> </a>
608
- <div class="fixedFont">
609
-
610
- <span class="light">{Array}</span>
611
- <b>$LOADED_FEATURES</b>
612
-
613
- </div>
614
- <div class="description">
615
- Taking inspiration from Ruby, this defines the currently loaded files that
616
- have been loaded through <a href="../symbols/Kernel.html#require">Kernel#require</a>.
617
-
618
-
619
- </div>
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
- <!-- ============================== method details ========================= -->
633
-
634
- <div class="sectionTitle">
635
- Method Detail
636
- </div>
637
-
638
- <a name="$CURRENT_DIRECTORY"> </a>
639
- <div class="fixedFont">
640
-
641
- <span class="light">{String}</span>
642
- <b>$CURRENT_DIRECTORY</b>(stackTraversalDepth)
643
-
644
- </div>
645
- <div class="description">
646
- This method tries to determine the filesystem path to parent directory of the caller
647
- code of this method NOTE - see the note on $CURRENT_FILE, as the same applies here.
648
-
649
-
650
- </div>
651
-
652
-
653
-
654
-
655
- <dl class="detailList">
656
- <dt class="heading">Parameters:</dt>
657
-
658
- <dt>
659
- <span class="light fixedFont">{int}</span> <b>stackTraversalDepth</b>
660
-
661
- </dt>
662
- <dd>Optional argument, how far to look up the stack to
663
- figure out who called us. The default is usually safe.</dd>
664
-
665
- </dl>
666
-
667
-
668
-
669
-
670
- <dl class="detailList">
671
- <dt class="heading">Throws:</dt>
672
-
673
- <dt>
674
- <span class="light fixedFont">{@link SelfConceptError}</span> <b></b>
675
- </dt>
676
- <dd>Thrown when we can't figure out what the filesystem
677
- path to the parent directory of the current file is.</dd>
678
-
679
- </dl>
680
-
681
-
682
-
683
-
684
-
685
- <hr />
686
-
687
- <a name="$CURRENT_FILE"> </a>
688
- <div class="fixedFont">
689
-
690
- <span class="light">{String}</span>
691
- <b>$CURRENT_FILE</b>(stackTraversalDepth)
692
-
693
- </div>
694
- <div class="description">
695
- Taking inspiration from Ruby, this method tries to determine the filesystem path to
696
- the caller code of this method.
697
- NOTE - when <a href="../symbols/Kernel.html">Kernel</a> is mixed into an object, this function gets mixed in via
698
- a special case behaviour that makes it a getter that actually calls the function
699
- rather than returning the function object itself. This is to facilitate being able
700
- to call '$CURRENT_FILE' in your code rather than '$CURRENT_FILE()'. The stackTraversalDepth
701
- parameter is there for this reason, since we need to traverse the stack further than
702
- normal to find the calling scope than we normally would.
703
-
704
-
705
- </div>
706
-
707
-
708
-
709
-
710
- <dl class="detailList">
711
- <dt class="heading">Parameters:</dt>
712
-
713
- <dt>
714
- <span class="light fixedFont">{int}</span> <b>stackTraversalDepth</b>
715
-
716
- </dt>
717
- <dd>Optional argument, how far to look up the stack to
718
- figure out who called us. The default is usually safe.</dd>
719
-
720
- </dl>
721
-
722
-
723
-
724
-
725
- <dl class="detailList">
726
- <dt class="heading">Throws:</dt>
727
-
728
- <dt>
729
- <span class="light fixedFont">{@link SelfConceptError}</span> <b></b>
730
- </dt>
731
- <dd>Thrown when we can't figure out what the filesystem
732
- path to the current file is.</dd>
733
-
734
- </dl>
735
-
736
-
737
-
738
-
739
-
740
- <hr />
741
-
742
- <a name="load"> </a>
743
- <div class="fixedFont">
744
-
745
- <span class="light">{Boolean}</span>
746
- <b>load</b>(featurePath)
747
-
748
- </div>
749
- <div class="description">
750
- Searches {@link Kernel#$LOAD_PATH $LOAD_PATH} for files to load into the current global scope.
751
- Files loaded via this method will not be added to <a href="../symbols/Kernel.html#$LOADED_FEATURES">Kernel#$LOADED_FEATURES</a> and hence
752
- can be repeatedly loaded and executed.
753
-
754
-
755
- </div>
756
-
757
-
758
-
759
-
760
- <dl class="detailList">
761
- <dt class="heading">Parameters:</dt>
762
-
763
- <dt>
764
- <span class="light fixedFont">{String}</span> <b>featurePath</b>
765
-
766
- </dt>
767
- <dd>Full or relative path including file extension to try and load.</dd>
768
-
769
- </dl>
770
-
771
-
772
-
773
-
774
- <dl class="detailList">
775
- <dt class="heading">Throws:</dt>
776
-
777
- <dt>
778
- <span class="light fixedFont">{@link LoadError}</span> <b></b>
779
- </dt>
780
- <dd>Thrown when we can't find the specified file in any directories specified
781
- in {@link Kernel#$LOAD_PATH $LOAD_PATH}.</dd>
782
-
783
- </dl>
784
-
785
-
786
-
787
-
788
-
789
- <hr />
790
-
791
- <a name="-makeCallingGetter"> </a>
792
- <div class="fixedFont">&lt;inner&gt;
793
-
794
-
795
- <b>makeCallingGetter</b>(attr, argsArray)
796
-
797
- </div>
798
- <div class="description">
799
-
800
-
801
-
802
- </div>
803
-
804
-
805
-
806
-
807
- <dl class="detailList">
808
- <dt class="heading">Parameters:</dt>
809
-
810
- <dt>
811
- <b>attr</b>
812
-
813
- </dt>
814
- <dd></dd>
815
-
816
- <dt>
817
- <b>argsArray</b>
818
-
819
- </dt>
820
- <dd></dd>
821
-
822
- </dl>
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
- <hr />
832
-
833
- <a name="-makeGetter"> </a>
834
- <div class="fixedFont">&lt;inner&gt;
835
-
836
-
837
- <b>makeGetter</b>(attr)
838
-
839
- </div>
840
- <div class="description">
841
-
842
-
843
-
844
- </div>
845
-
846
-
847
-
848
-
849
- <dl class="detailList">
850
- <dt class="heading">Parameters:</dt>
851
-
852
- <dt>
853
- <b>attr</b>
854
-
855
- </dt>
856
- <dd></dd>
857
-
858
- </dl>
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
- <hr />
868
-
869
- <a name="print"> </a>
870
- <div class="fixedFont">
871
-
872
-
873
- <b>print</b>(str)
874
-
875
- </div>
876
- <div class="description">
877
- Prints a string to standard out, without a trailing newline.
878
-
879
-
880
- </div>
881
-
882
-
883
-
884
-
885
- <dl class="detailList">
886
- <dt class="heading">Parameters:</dt>
887
-
888
- <dt>
889
- <span class="light fixedFont">{String}</span> <b>str</b>
890
-
891
- </dt>
892
- <dd>String to print to standard out.</dd>
893
-
894
- </dl>
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
- <hr />
904
-
905
- <a name="puts"> </a>
906
- <div class="fixedFont">
907
-
908
-
909
- <b>puts</b>(str)
910
-
911
- </div>
912
- <div class="description">
913
- Prints a string to standard out, with a trailing newline.
914
-
915
-
916
- </div>
917
-
918
-
919
-
920
-
921
- <dl class="detailList">
922
- <dt class="heading">Parameters:</dt>
923
-
924
- <dt>
925
- <span class="light fixedFont">{String}</span> <b>str</b>
926
-
927
- </dt>
928
- <dd>String to print to standard out.</dd>
929
-
930
- </dl>
931
-
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
- <hr />
940
-
941
- <a name="require"> </a>
942
- <div class="fixedFont">
943
-
944
- <span class="light">{Boolean True if successful, false if the specified feature has already been required.}</span>
945
- <b>require</b>(featurePath)
946
-
947
- </div>
948
- <div class="description">
949
- Searches {@link Kernel#$LOAD_PATH $LOAD_PATH} for features to load into the current global scope.
950
- Files loaded via this method will be added to <a href="../symbols/Kernel.html#$LOADED_FEATURES">Kernel#$LOADED_FEATURES</a> and hence two
951
- consecutive calls to this method will not load and execute the code twice.
952
-
953
-
954
- </div>
955
-
956
-
957
-
958
-
959
- <dl class="detailList">
960
- <dt class="heading">Parameters:</dt>
961
-
962
- <dt>
963
- <span class="light fixedFont">{String}</span> <b>featurePath</b>
964
-
965
- </dt>
966
- <dd>Full or relative path without the file extension to try and require.</dd>
967
-
968
- </dl>
969
-
970
-
971
-
972
-
973
- <dl class="detailList">
974
- <dt class="heading">Throws:</dt>
975
-
976
- <dt>
977
- <span class="light fixedFont">{@link LoadError}</span> <b></b>
978
- </dt>
979
- <dd>Thrown when we can't find the specified feature in any directories specified
980
- in {@link Kernel#$LOAD_PATH $LOAD_PATH}.</dd>
981
-
982
- </dl>
983
-
984
-
985
-
986
-
987
-
988
- <hr />
989
-
990
- <a name="-standardLibraryLoader"> </a>
991
- <div class="fixedFont">&lt;inner&gt;
992
-
993
-
994
- <b>standardLibraryLoader</b>()
995
-
996
- </div>
997
- <div class="description">
998
-
999
-
1000
-
1001
- </div>
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
- <!-- ============================== event details ========================= -->
1018
-
1019
-
1020
- <hr />
1021
- </div>
1022
-
1023
-
1024
- <!-- ============================== footer ================================= -->
1025
- <div class="fineprint" style="clear:both">
1026
-
1027
- Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.0 on Sat Oct 03 2009 19:31:42 GMT-0500 (CDT)
1028
- </div>
1029
- </body>
1030
- </html>