dojo_src 1.4.3 → 1.4.102
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +3 -2
- data/bin/dojofy +1 -3
- data/dojo/dijit/Calendar.js +1 -1
- data/dojo/dijit/_editor/RichText.js +1 -1
- data/dojo/dijit/layout/ScrollingTabController.js +1 -3
- data/dojo/dijit/tests/editor/robot/Editor_misc.html +0 -32
- data/dojo/dijit/tests/editor/test_Editor.html +0 -8
- data/dojo/dijit/tests/layout/robot/TabContainer_mouse.html +5 -12
- data/dojo/dojo/_base/_loader/bootstrap.js +2 -2
- data/lib/dojo_src.rb +5 -2
- metadata +3 -4
- data/dojo/DOJO_VERSION +0 -1
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'lib/dojo_src.rb'
|
3
2
|
require 'rake'
|
4
3
|
require 'rake/testtask'
|
5
4
|
require 'rake/rdoctask'
|
@@ -8,10 +7,12 @@ require 'rake/gempackagetask'
|
|
8
7
|
|
9
8
|
PKG_FILES = FileList[ '[a-zA-Z]*', 'dojo/**/*', 'lib/**/*']
|
10
9
|
|
10
|
+
$:.unshift(File.join(File.dirname(__FILE__),'lib'))
|
11
|
+
require 'dojo_src'
|
11
12
|
|
12
13
|
spec = Gem::Specification.new do |s|
|
13
14
|
s.name = "dojo_src"
|
14
|
-
s.version = DojoSrc
|
15
|
+
s.version = DojoSrc.version
|
15
16
|
s.author = "niquola"
|
16
17
|
s.email = "niquola@gmail.com"
|
17
18
|
s.executables << 'dojofy'
|
data/bin/dojofy
CHANGED
@@ -17,12 +17,10 @@ if File.exists?(version_file)
|
|
17
17
|
end
|
18
18
|
|
19
19
|
require 'dojo_src'
|
20
|
-
version = DojoSrc
|
20
|
+
version = DojoSrc.version
|
21
21
|
if version && installed_version && installed_version == version
|
22
22
|
puts 'dojo installed and dojo version is up to date'
|
23
23
|
exit
|
24
24
|
end
|
25
25
|
puts "Installed version of dojo: #{installed_version}"
|
26
26
|
DojoSrc.dojofy(place)
|
27
|
-
|
28
|
-
|
data/dojo/dijit/Calendar.js
CHANGED
@@ -1251,7 +1251,7 @@ dojo.declare("dijit._editor.RichText", dijit._Widget, {
|
|
1251
1251
|
isvalid=true;
|
1252
1252
|
var tg = first.tagName ? first.tagName.toLowerCase() : "";
|
1253
1253
|
// Collapse before childless tags.
|
1254
|
-
if(/br|input|img|base|meta|area|basefont
|
1254
|
+
if(/br|input|img|base|meta|area|basefont/.test(tg)){
|
1255
1255
|
this._sCall("selectElement", [ first ]);
|
1256
1256
|
}else{
|
1257
1257
|
// Collapse inside tags with children.
|
@@ -74,12 +74,10 @@ dojo.declare("dijit.layout.ScrollingTabController",
|
|
74
74
|
this.inherited(arguments);
|
75
75
|
var menuItem;
|
76
76
|
if(this.useMenu){
|
77
|
-
var containerId = this.containerId;
|
78
77
|
menuItem = new dijit.MenuItem({
|
79
78
|
label: page.title,
|
80
79
|
onClick: dojo.hitch(this, function(){
|
81
|
-
|
82
|
-
container.selectChild(page);
|
80
|
+
this.onSelectChild(page);
|
83
81
|
})
|
84
82
|
});
|
85
83
|
this._menuChildren[page.id] = menuItem;
|
@@ -61,38 +61,6 @@
|
|
61
61
|
tearDown: function(){
|
62
62
|
if(editor0){editor0.attr("value", value);}
|
63
63
|
}
|
64
|
-
},
|
65
|
-
{
|
66
|
-
name: "Test placeCurorAtStart (br tag) moves input before br, not inside.",
|
67
|
-
timeout: 20000,
|
68
|
-
setUp: function(){
|
69
|
-
editor0 = dijit.byId("brEditor");
|
70
|
-
value = editor0.attr("value");
|
71
|
-
},
|
72
|
-
runTest: function(){
|
73
|
-
var d = new doh.Deferred();
|
74
|
-
try{
|
75
|
-
//Focus on the editor window
|
76
|
-
dijit.scrollIntoView(editor0.domNode);
|
77
|
-
doh.robot.mouseMoveAt(editor0.iframe, 500, null, 10, 10);
|
78
|
-
doh.robot.mouseClick({left:true}, 500);
|
79
|
-
doh.robot.sequence(function(){
|
80
|
-
editor0.placeCursorAtStart();
|
81
|
-
}, 500);
|
82
|
-
doh.robot.typeKeys("abc", 500);
|
83
|
-
doh.robot.sequence(d.getTestCallback(function(){
|
84
|
-
//Now check the state!
|
85
|
-
var content = editor0.attr("value");
|
86
|
-
doh.assertTrue(content.indexOf("abc<br") >= 0);
|
87
|
-
}), 1000);
|
88
|
-
}catch(e){
|
89
|
-
d.errback(e);
|
90
|
-
}
|
91
|
-
return d;
|
92
|
-
},
|
93
|
-
tearDown: function(){
|
94
|
-
if(editor0){editor0.attr("value", value);}
|
95
|
-
}
|
96
64
|
}
|
97
65
|
]);
|
98
66
|
doh.run();
|
@@ -158,14 +158,6 @@
|
|
158
158
|
</div>
|
159
159
|
<hr/>
|
160
160
|
|
161
|
-
<h2>Checking editor starting with br</h2>
|
162
|
-
<div dojoType="dijit.Editor" id="brEditor">
|
163
|
-
<br>
|
164
|
-
some stuff
|
165
|
-
<br>
|
166
|
-
some other stuff.
|
167
|
-
</div>
|
168
|
-
|
169
161
|
<h2>Programmatic creation</h2>
|
170
162
|
<div id="programmatic">This div will become an editor.</div>
|
171
163
|
<button
|
@@ -13,7 +13,7 @@
|
|
13
13
|
djConfig="isDebug: true"></script>
|
14
14
|
|
15
15
|
<!-- functions to help test -->
|
16
|
-
<script type="text/javascript" src="
|
16
|
+
<script type="text/javascript" src="../helpers.js"></script>
|
17
17
|
|
18
18
|
<script type="text/javascript">
|
19
19
|
dojo.require("dijit.dijit"); // optimize: load dijit layer
|
@@ -55,13 +55,8 @@
|
|
55
55
|
var tc = dijit.byId("mainTabContainer");
|
56
56
|
|
57
57
|
doh.robot.sequence(d.getTestCallback(function(){
|
58
|
-
// verify tab button is selected
|
59
58
|
doh.is('mainTabContainer_tablist_tab3', dojo.global.dijit._curFocus.id, "verify chosen tab is in its chosen state and focused");
|
60
|
-
|
61
|
-
// verify pane is shown
|
62
59
|
doh.is("tab3", tc.selectedChildWidget.id, "verify that the appropiate contentpane is displayed");
|
63
|
-
doh.t(isVisible(dijit.byId("tab3")), "tab3 shown");
|
64
|
-
doh.t(isHidden(dijit.byId("tab2")), "tab2 hidden");
|
65
60
|
}), 500);
|
66
61
|
|
67
62
|
return d;
|
@@ -112,8 +107,11 @@
|
|
112
107
|
doh.robot.mouseMoveAt("dijit_MenuItem_8", 500);
|
113
108
|
doh.robot.mouseClick({left: true}, 1000);
|
114
109
|
|
115
|
-
// verify SplitContainer tab is
|
110
|
+
// verify SplitContainer tab is chosen and displayed
|
116
111
|
doh.robot.sequence(d.getTestCallback(function(){
|
112
|
+
doh.is('mainTabContainer_tablist_tab4href', dojo.global.dijit._curFocus.id,
|
113
|
+
"verify the chosen tab is displayed and focused");
|
114
|
+
|
117
115
|
// Check that tab button is scrolled correctly into view
|
118
116
|
// TODO: this check won't work in RTL mode
|
119
117
|
var tc = dijit.byId("mainTabContainer");
|
@@ -132,11 +130,6 @@
|
|
132
130
|
var isTabVisible = (tablistLeft < tabLeft && tablistRight > tabRight);
|
133
131
|
|
134
132
|
doh.t(isTabVisible, "verify tab is in display area")
|
135
|
-
|
136
|
-
// And verify that pane is shown
|
137
|
-
doh.is("tab4href", tc.selectedChildWidget.id, "verify that the appropiate contentpane is displayed");
|
138
|
-
doh.t(isVisible(dijit.byId("tab4href")), "tab4 shown");
|
139
|
-
doh.t(isHidden(dijit.byId("tab1")), "tab1 hidden");
|
140
133
|
}), 1000);
|
141
134
|
|
142
135
|
return d;
|
@@ -218,7 +218,7 @@ dojo.global = {
|
|
218
218
|
=====*/
|
219
219
|
dojo.locale = d.config.locale;
|
220
220
|
|
221
|
-
var rev = "$Rev:
|
221
|
+
var rev = "$Rev: 21516 $".match(/\d+/);
|
222
222
|
|
223
223
|
/*=====
|
224
224
|
dojo.version = function(){
|
@@ -242,7 +242,7 @@ dojo.global = {
|
|
242
242
|
}
|
243
243
|
=====*/
|
244
244
|
dojo.version = {
|
245
|
-
major: 1, minor: 4, patch:
|
245
|
+
major: 1, minor: 4, patch: 2, flag: "",
|
246
246
|
revision: rev ? +rev[0] : NaN,
|
247
247
|
toString: function(){
|
248
248
|
with(d.version){
|
data/lib/dojo_src.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 1.4.
|
8
|
+
- 102
|
9
|
+
version: 1.4.102
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- niquola
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-06 00:00:00 +04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -4442,7 +4442,6 @@ files:
|
|
4442
4442
|
- dojo/dijit/DialogUnderlay.js
|
4443
4443
|
- dojo/dijit/ColorPalette.js
|
4444
4444
|
- dojo/dijit/Editor.js
|
4445
|
-
- dojo/DOJO_VERSION
|
4446
4445
|
- lib/dojo_src.rb
|
4447
4446
|
has_rdoc: true
|
4448
4447
|
homepage:
|
data/dojo/DOJO_VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.4.3
|