summaryrefslogtreecommitdiffhomepage
path: root/test/swftests
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-11-17 05:03:46 +0100
committerPhilipp Hagemeister <[email protected]>2014-11-17 05:03:46 +0100
commit33a266f4bae7b53ad12bd79293bcc1f11ae6d407 (patch)
treeea91d78e28a75d037bc2f2700d266949700dbe5b /test/swftests
parent6b592d93a29163664d3125761fbf6d7c9fe5f56c (diff)
downloadyoutube-dl-33a266f4bae7b53ad12bd79293bcc1f11ae6d407.tar.gz
youtube-dl-33a266f4bae7b53ad12bd79293bcc1f11ae6d407.zip
[swfinterp] Implement charCodeAt
Diffstat (limited to 'test/swftests')
-rw-r--r--test/swftests/StringCharCodeAt.as11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/swftests/StringCharCodeAt.as b/test/swftests/StringCharCodeAt.as
new file mode 100644
index 000000000..c20d74d65
--- /dev/null
+++ b/test/swftests/StringCharCodeAt.as
@@ -0,0 +1,11 @@
+// input: []
+// output: 9897
+
+package {
+public class StringCharCodeAt {
+ public static function main():int{
+ var s:String = "abc";
+ return s.charCodeAt(1) * 100 + s.charCodeAt();
+ }
+}
+}