Cross Reference: datatable-scroll-tests.js
xref
: /
solaris-desktop
/
base-specs
/
gmime.spec
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
datatable-scroll-tests.js revision 6ed8155c20400990c7e65faa4b40aef98c5b5136
10139
N/A
YUI
.
add
(
'datatable-scroll-tests'
,
function
(Y) {
10139
N/A
10139
N/A
var
suite
=
new
Y.
Test
.
Suite
(
"datatable-scroll"
),
10139
N/A
keys
= Y.
Object
.
keys
;
10139
N/A
10139
N/A
suite
.
add
(
new
Y.
Test
.
Case
({
10139
N/A
name
:
"datatable-scroll"
,
10139
N/A
10139
N/A
setUp
:
function
() {
10139
N/A
var
data
= [], i;
10139
N/A
10139
N/A
for
(i =
0
; i <
10
; ++i) {
10139
N/A
data
.
push
({ a: i, b: i, c: i });
10139
N/A
}
10139
N/A
10139
N/A
this
.
shortData
=
data
.
slice
();
10139
N/A
10139
N/A
for
(; i <
100
; ++i) {
10139
N/A
data
.
push
({ a: i, b: i, c: i });
10139
N/A
}
10139
N/A
10139
N/A
this
.
longData
=
data
;
10139
N/A
},
10139
N/A
10139
N/A
"Y.DataTable should be augmented"
:
function
() {
10139
N/A
Y.
Assert
.
isTrue
(
10139
N/A
new
Y.
DataTable
().
hasImpl
(Y.
DataTable
.
Scrollable
));
10139
N/A
},
10139
N/A
10139
N/A
"Y.DataTable.Base should not be augmented"
:
function
() {
10139
N/A
Y.
Assert
.
isFalse
(
10139
N/A
new
Y.
DataTable
.
Base
().
hasImpl
(Y.
DataTable
.
Scrollable
));
10139
N/A
}
10139
N/A
10139
N/A
10139
N/A
}));
10139
N/A
10139
N/A
suite
.
add
(
new
Y.
Test
.
Case
({
10139
N/A
name
:
"y scroll"
,
10139
N/A
10139
N/A
""
:
function
() {
10139
N/A
}
10139
N/A
}));
10139
N/A
10139
N/A
suite
.
add
(
new
Y.
Test
.
Case
({
10139
N/A
name
:
"x scroll"
,
10139
N/A
10139
N/A
""
:
function
() {
10139
N/A
}
10139
N/A
}));
10139
N/A
10139
N/A
suite
.
add
(
new
Y.
Test
.
Case
({
10139
N/A
name
:
"xy scroll"
,
10139
N/A
10139
N/A
""
:
function
() {
10139
N/A
}
10139
N/A
}));
10139
N/A
10139
N/A
Y.
Test
.
Runner
.
add
(
suite
);
10139
N/A
10139
N/A
10139
N/A
},
'@VERSION@'
,{
requires
:[
'datatable-scroll'
,
'test'
]});
10139
N/A