envjs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +113 -0
- data/bin/envjsrb +239 -0
- data/bin/jquery-1.2.6-test.js +33 -0
- data/bin/jquery-1.3.1-test.js +33 -0
- data/bin/jquery-1.3.2-test.js +106 -0
- data/bin/prototype-1.6.0.3-test.js +82 -0
- data/bin/prototype_1.6.0.3_tmpl.txt +27 -0
- data/bin/test-jquery.sh +58 -0
- data/bin/test-prototype.sh +54 -0
- data/bin/tidy +0 -0
- data/lib/envjs/env.js +21549 -0
- data/lib/envjs/net/cgi.rb +94 -0
- data/lib/envjs/net/file.rb +75 -0
- data/lib/envjs/net.rb +3 -0
- data/lib/envjs/options.rb +11 -0
- data/lib/envjs/runtime.rb +280 -0
- data/lib/envjs/tempfile.rb +24 -0
- data/lib/envjs.rb +23 -0
- data/test/call-load-test.js +15 -0
- data/test/debug.js +53 -0
- data/test/firebug/errorIcon.png +0 -0
- data/test/firebug/firebug.css +209 -0
- data/test/firebug/firebug.html +23 -0
- data/test/firebug/firebug.js +672 -0
- data/test/firebug/firebugx.js +10 -0
- data/test/firebug/infoIcon.png +0 -0
- data/test/firebug/warningIcon.png +0 -0
- data/test/fixtures/html/events.html +171 -0
- data/test/fixtures/html/iframe1.html +46 -0
- data/test/fixtures/html/iframe1a.html +46 -0
- data/test/fixtures/html/iframe2.html +45 -0
- data/test/fixtures/html/iframe3.html +28 -0
- data/test/fixtures/html/iframeN.html +57 -0
- data/test/fixtures/html/malformed.html +181 -0
- data/test/fixtures/html/scope.html +81 -0
- data/test/fixtures/html/trivial.html +19 -0
- data/test/fixtures/html/with_js.html +26 -0
- data/test/fixtures/images/icon-blue.png +0 -0
- data/test/fixtures/js/external_script.js +1 -0
- data/test/fixtures/js/script.js +1 -0
- data/test/fixtures/js/script_error.js +2 -0
- data/test/html/events.html +171 -0
- data/test/html/iframe1.html +46 -0
- data/test/html/iframe1a.html +46 -0
- data/test/html/iframe2.html +45 -0
- data/test/html/iframe3.html +30 -0
- data/test/html/iframeN.html +57 -0
- data/test/html/malformed.html +181 -0
- data/test/html/scope.html +87 -0
- data/test/html/script.js +1 -0
- data/test/html/trivial.html +19 -0
- data/test/html/with_js.html +26 -0
- data/test/index.html +328 -0
- data/test/java-prototype.js +9 -0
- data/test/primary-tests.js +24 -0
- data/test/prototype-test.js +13 -0
- data/test/qunit/qunit/qunit.css +17 -0
- data/test/qunit/qunit/qunit.js +997 -0
- data/test/qunit.js +61 -0
- data/test/specs/dist/env.spec.js +1534 -0
- data/test/specs/envjs.spec.css +46 -0
- data/test/specs/parser/html.js +31 -0
- data/test/specs/parser/spec.html +40 -0
- data/test/specs/parser/xml.js +31 -0
- data/test/specs/qunit.bdd.js +210 -0
- data/test/specs/qunit.css +17 -0
- data/test/specs/qunit.js +997 -0
- data/test/specs/template/spec-0.js +31 -0
- data/test/specs/template/spec-1.js +31 -0
- data/test/specs/template/spec.html +40 -0
- data/test/specs/window/css.js +23 -0
- data/test/specs/window/dialog.js +25 -0
- data/test/specs/window/document.js +23 -0
- data/test/specs/window/event.js +25 -0
- data/test/specs/window/history.js +34 -0
- data/test/specs/window/location.js +34 -0
- data/test/specs/window/navigator.js +71 -0
- data/test/specs/window/screen.js +42 -0
- data/test/specs/window/spec.html +48 -0
- data/test/specs/window/timer.js +26 -0
- data/test/specs/window/window.js +53 -0
- data/test/specs/xhr/spec.html +47 -0
- data/test/specs/xhr/xhr.js +31 -0
- data/test/test.js +10 -0
- data/test/unit/dom.js +44 -0
- data/test/unit/elementmembers.js +60 -0
- data/test/unit/events.js +195 -0
- data/test/unit/fixtures/external_script.js +1 -0
- data/test/unit/iframe.js +234 -0
- data/test/unit/multi-window.js +212 -0
- data/test/unit/nu.validator.js +34 -0
- data/test/unit/onload.js +90 -0
- data/test/unit/parser.js +121 -0
- data/test/unit/prototypecompat.js +22 -0
- data/test/unit/proxy.js +6 -0
- data/test/unit/scope.js +209 -0
- data/test/unit/timer.js +115 -0
- data/test/unit/window.js +41 -0
- data/test/vendor/jQuery/README +2 -0
- data/test/vendor/prototype-1.6.0.3.js +4320 -0
- metadata +164 -0
@@ -0,0 +1,209 @@
|
|
1
|
+
|
2
|
+
html, body {
|
3
|
+
margin: 0;
|
4
|
+
background: #FFFFFF;
|
5
|
+
font-family: Lucida Grande, Tahoma, sans-serif;
|
6
|
+
font-size: 11px;
|
7
|
+
overflow: hidden;
|
8
|
+
}
|
9
|
+
|
10
|
+
a {
|
11
|
+
text-decoration: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
a:hover {
|
15
|
+
text-decoration: underline;
|
16
|
+
}
|
17
|
+
|
18
|
+
.toolbar {
|
19
|
+
height: 14px;
|
20
|
+
border-top: 1px solid ThreeDHighlight;
|
21
|
+
border-bottom: 1px solid ThreeDShadow;
|
22
|
+
padding: 2px 6px;
|
23
|
+
background: ThreeDFace;
|
24
|
+
}
|
25
|
+
|
26
|
+
.toolbarRight {
|
27
|
+
position: absolute;
|
28
|
+
top: 4px;
|
29
|
+
right: 6px;
|
30
|
+
}
|
31
|
+
|
32
|
+
#log {
|
33
|
+
overflow: auto;
|
34
|
+
position: absolute;
|
35
|
+
left: 0;
|
36
|
+
width: 100%;
|
37
|
+
}
|
38
|
+
|
39
|
+
#commandLine {
|
40
|
+
position: absolute;
|
41
|
+
bottom: 0;
|
42
|
+
left: 0;
|
43
|
+
width: 100%;
|
44
|
+
height: 18px;
|
45
|
+
border: none;
|
46
|
+
border-top: 1px solid ThreeDShadow;
|
47
|
+
}
|
48
|
+
|
49
|
+
/************************************************************************************************/
|
50
|
+
|
51
|
+
.logRow {
|
52
|
+
position: relative;
|
53
|
+
border-bottom: 1px solid #D7D7D7;
|
54
|
+
padding: 2px 4px 1px 6px;
|
55
|
+
background-color: #FFFFFF;
|
56
|
+
}
|
57
|
+
|
58
|
+
.logRow-command {
|
59
|
+
font-family: Monaco, monospace;
|
60
|
+
color: blue;
|
61
|
+
}
|
62
|
+
|
63
|
+
.objectBox-null {
|
64
|
+
padding: 0 2px;
|
65
|
+
border: 1px solid #666666;
|
66
|
+
background-color: #888888;
|
67
|
+
color: #FFFFFF;
|
68
|
+
}
|
69
|
+
|
70
|
+
.objectBox-string {
|
71
|
+
font-family: Monaco, monospace;
|
72
|
+
color: red;
|
73
|
+
white-space: pre;
|
74
|
+
}
|
75
|
+
|
76
|
+
.objectBox-number {
|
77
|
+
color: #000088;
|
78
|
+
}
|
79
|
+
|
80
|
+
.objectBox-function {
|
81
|
+
font-family: Monaco, monospace;
|
82
|
+
color: DarkGreen;
|
83
|
+
}
|
84
|
+
|
85
|
+
.objectBox-object {
|
86
|
+
color: DarkGreen;
|
87
|
+
font-weight: bold;
|
88
|
+
}
|
89
|
+
|
90
|
+
/************************************************************************************************/
|
91
|
+
|
92
|
+
.logRow-info,
|
93
|
+
.logRow-error,
|
94
|
+
.logRow-warning {
|
95
|
+
background: #FFFFFF no-repeat 2px 2px;
|
96
|
+
padding-left: 20px;
|
97
|
+
padding-bottom: 3px;
|
98
|
+
}
|
99
|
+
|
100
|
+
.logRow-info {
|
101
|
+
background-image: url(infoIcon.png);
|
102
|
+
}
|
103
|
+
|
104
|
+
.logRow-warning {
|
105
|
+
background-color: cyan;
|
106
|
+
background-image: url(warningIcon.png);
|
107
|
+
}
|
108
|
+
|
109
|
+
.logRow-error {
|
110
|
+
background-color: LightYellow;
|
111
|
+
background-image: url(errorIcon.png);
|
112
|
+
}
|
113
|
+
|
114
|
+
.errorMessage {
|
115
|
+
vertical-align: top;
|
116
|
+
color: #FF0000;
|
117
|
+
}
|
118
|
+
|
119
|
+
.objectBox-sourceLink {
|
120
|
+
position: absolute;
|
121
|
+
right: 4px;
|
122
|
+
top: 2px;
|
123
|
+
padding-left: 8px;
|
124
|
+
font-family: Lucida Grande, sans-serif;
|
125
|
+
font-weight: bold;
|
126
|
+
color: #0000FF;
|
127
|
+
}
|
128
|
+
|
129
|
+
/************************************************************************************************/
|
130
|
+
|
131
|
+
.logRow-group {
|
132
|
+
background: #EEEEEE;
|
133
|
+
border-bottom: none;
|
134
|
+
}
|
135
|
+
|
136
|
+
.logGroup {
|
137
|
+
background: #EEEEEE;
|
138
|
+
}
|
139
|
+
|
140
|
+
.logGroupBox {
|
141
|
+
margin-left: 24px;
|
142
|
+
border-top: 1px solid #D7D7D7;
|
143
|
+
border-left: 1px solid #D7D7D7;
|
144
|
+
}
|
145
|
+
|
146
|
+
/************************************************************************************************/
|
147
|
+
|
148
|
+
.selectorTag,
|
149
|
+
.selectorId,
|
150
|
+
.selectorClass {
|
151
|
+
font-family: Monaco, monospace;
|
152
|
+
font-weight: normal;
|
153
|
+
}
|
154
|
+
|
155
|
+
.selectorTag {
|
156
|
+
color: #0000FF;
|
157
|
+
}
|
158
|
+
|
159
|
+
.selectorId {
|
160
|
+
color: DarkBlue;
|
161
|
+
}
|
162
|
+
|
163
|
+
.selectorClass {
|
164
|
+
color: red;
|
165
|
+
}
|
166
|
+
|
167
|
+
/************************************************************************************************/
|
168
|
+
|
169
|
+
.objectBox-element {
|
170
|
+
font-family: Monaco, monospace;
|
171
|
+
color: #000088;
|
172
|
+
}
|
173
|
+
|
174
|
+
.nodeChildren {
|
175
|
+
margin-left: 16px;
|
176
|
+
}
|
177
|
+
|
178
|
+
.nodeTag {
|
179
|
+
color: blue;
|
180
|
+
}
|
181
|
+
|
182
|
+
.nodeValue {
|
183
|
+
color: #FF0000;
|
184
|
+
font-weight: normal;
|
185
|
+
}
|
186
|
+
|
187
|
+
.nodeText,
|
188
|
+
.nodeComment {
|
189
|
+
margin: 0 2px;
|
190
|
+
vertical-align: top;
|
191
|
+
}
|
192
|
+
|
193
|
+
.nodeText {
|
194
|
+
color: #333333;
|
195
|
+
}
|
196
|
+
|
197
|
+
.nodeComment {
|
198
|
+
color: DarkGreen;
|
199
|
+
}
|
200
|
+
|
201
|
+
/************************************************************************************************/
|
202
|
+
|
203
|
+
.propertyNameCell {
|
204
|
+
vertical-align: top;
|
205
|
+
}
|
206
|
+
|
207
|
+
.propertyName {
|
208
|
+
font-weight: bold;
|
209
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
+
|
6
|
+
<head>
|
7
|
+
<title>Firebug</title>
|
8
|
+
<link rel="stylesheet" type="text/css" href="firebug.css">
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<div id="toolbar" class="toolbar">
|
13
|
+
<a href="#" onclick="parent.console.clear()">Clear</a>
|
14
|
+
<span class="toolbarRight">
|
15
|
+
<a href="#" onclick="parent.console.close()">Close</a>
|
16
|
+
</span>
|
17
|
+
</div>
|
18
|
+
<div id="log"></div>
|
19
|
+
<input type="text" id="commandLine">
|
20
|
+
|
21
|
+
<script>parent.onFirebugReady(document);</script>
|
22
|
+
</body>
|
23
|
+
</html>
|