Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F886054
Container.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
Container.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<
html
>
<
head
>
<
title
>
Container
</
title
>
<
script
type
=
"text/javascript"
src
=
"../../dojo/dojo.js"
djConfig
=
"isDebug: true, parseOnLoad: true"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
require
(
"doh.runner"
);
dojo
.
require
(
"dijit._Widget"
);
dojo
.
require
(
"dijit._Container"
);
dojo
.
declare
(
"dijit.TestContainer"
,
[
dijit
.
_Widget
,
dijit
.
_Container
],
{
}
);
dojo
.
require
(
"dojo.parser"
);
dojo
.
addOnLoad
(
function
(){
doh
.
register
(
"t"
,
[
{
name
:
"getChildren"
,
runTest
:
function
(
t
){
var
c
=
dijit
.
byId
(
"container"
);
var
children
=
c
.
getChildren
();
t
.
is
(
3
,
children
.
length
);
t
.
is
(
"zero"
,
children
[
0
].
id
);
t
.
is
(
"one"
,
children
[
1
].
id
);
t
.
is
(
"two"
,
children
[
2
].
id
);
}
},
{
name
:
"_getSiblingOfChild"
,
runTest
:
function
(
t
){
var
c
=
dijit
.
byId
(
"container"
);
var
children
=
c
.
getChildren
();
t
.
is
(
"one"
,
c
.
_getSiblingOfChild
(
children
[
0
],
1
).
id
);
t
.
is
(
"two"
,
c
.
_getSiblingOfChild
(
children
[
1
],
1
).
id
);
t
.
is
(
null
,
c
.
_getSiblingOfChild
(
children
[
2
],
1
));
t
.
is
(
null
,
c
.
_getSiblingOfChild
(
children
[
0
],
-
1
));
t
.
is
(
"zero"
,
c
.
_getSiblingOfChild
(
children
[
1
],
-
1
).
id
);
t
.
is
(
"one"
,
c
.
_getSiblingOfChild
(
children
[
2
],
-
1
).
id
);
}
}
]
);
doh
.
run
();
});
</
script
>
</
head
>
<
body
class
=
"tundra"
>
<
div
id
=
"container"
dojoType
=
"dijit.TestContainer"
>
<
div
id
=
"zero"
dojoType
=
"dijit._Widget"
></
div
>
<
div
id
=
"one"
dojoType
=
"dijit._Widget"
></
div
>
<
div
id
=
"two"
dojoType
=
"dijit._Widget"
></
div
>
</
div
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sun, Apr 6, 21:59 (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22684
Default Alt Text
Container.html (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment