repo.or.cz
/
swfdec.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add test for frames and bytes properties of empty movies
[swfdec.git]
/
test
/
trace
/
string-split-empty.as
blob
68b43909ca0f2ca9ec6ba92ed3361029c74fecfb
1
// makeswf -v 7 -s 200x150 -r 1 -o string-split-empty.swf string-split-empty.as
2
3
trace
(
"Check String.split() on empty string"
);
4
5
s
=
""
;
6
a
=
s
.
split
(
"x"
);
7
trace
(
typeof
(
a
));
8
trace
(
a
.
length
);
9
trace
(
a
);
10
for
(
i
= -
1
;
i
<
2
;
i
++) {
11
a
=
s
.
split
(
"x"
,
i
);
12
trace
(
typeof
(
a
));
13
trace
(
a
.
length
);
14
trace
(
a
);
15
}
16
17
loadMovie
(
"FSCommand:quit"
,
""
);