[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2274-g29199b4 |
Date: |
Tue, 29 Mar 2016 10:29:34 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 29199b445b4a9315a1ae1006695f93a562592311 (commit)
from c98c271596356118b074a4023c7816623a5514ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=29199b445b4a9315a1ae1006695f93a562592311
commit 29199b445b4a9315a1ae1006695f93a562592311
Author: Nutchanon Wetchasit <address@hidden>
Date: Tue Mar 29 12:28:19 2016 +0200
Add automated property-assignment tests on fallback ExternalInterface
callback context.
See bug #37223 <https://savannah.gnu.org/bugs/?37223>
diff --git a/testsuite/misc-mtasc.all/extcomm.as
b/testsuite/misc-mtasc.all/extcomm.as
index df80226..0f76c15 100644
--- a/testsuite/misc-mtasc.all/extcomm.as
+++ b/testsuite/misc-mtasc.all/extcomm.as
@@ -96,6 +96,7 @@ class ExternalCommTest
check(this !== null);
check_equals("" + this, "undefined");
check(this === _global);
+ this.nothis1_value = "script_nothis1";
}
)
);
@@ -112,6 +113,18 @@ class ExternalCommTest
check(this !== null);
check_equals("" + this, "undefined");
check(this === _global);
+ this.nothis2_value = "script_nothis2";
+ }
+ )
+ );
+
+ // Registering callback for checking _global properties
shouldn't fail
+ check(
+ ExternalInterface.addCallback("script_globalcheck", mc,
+ function():Void
+ {
+ check_equals(_global.nothis1_value,
"script_nothis1");
+ check_equals(_global.nothis2_value,
"script_nothis2");
}
)
);
diff --git a/testsuite/misc-mtasc.all/extcommtests-runner.sh
b/testsuite/misc-mtasc.all/extcommtests-runner.sh
index 2ac31a4..b165630 100644
--- a/testsuite/misc-mtasc.all/extcommtests-runner.sh
+++ b/testsuite/misc-mtasc.all/extcommtests-runner.sh
@@ -180,6 +180,13 @@ check_equals \
'<invoke name="addMethod"
returntype="xml"><arguments><string>script_nothis2</string></arguments></invoke>'
\
"Gnash should properly register script_nothis2 ExternalInterface
callback"
+# Read for script_globalcheck callback registration statement
+read_timeout LINE \$READTIMEOUT <&3
+check_equals \
+ "\$LINE" \
+ '<invoke name="addMethod"
returntype="xml"><arguments><string>script_globalcheck</string></arguments></invoke>'
\
+ "Gnash should properly register script_globalcheck ExternalInterface
callback"
+
# Read for script_longarglist callback registration statement
read_timeout LINE \$READTIMEOUT <&3
check_equals \
@@ -241,6 +248,13 @@ echo '<invoke name="script_nothis2"
returntype="xml"><arguments></arguments></in
read_timeout LINE \$READTIMEOUT <&3
check_equals "\$LINE" '<void/>' "Gnash should return a correct value from
script_nothis2 ExternalInterface callback"
+# Call the script_globalcheck callback
+echo '<invoke name="script_globalcheck"
returntype="xml"><arguments></arguments></invoke>' >&4
+
+# Read for callback return value statement
+read_timeout LINE \$READTIMEOUT <&3
+check_equals "\$LINE" '<void/>' "Gnash should return a correct value from
script_globalcheck ExternalInterface callback"
+
# Call the script_longarglist callback
echo '<invoke name="script_longarglist"
returntype="xml"><arguments><string>The</string><string>quick</string><string>brown</string><string>fox</string><string>jumps</string><string>over</string><string>the</string><string>lazy</string><string>dog</string></arguments></invoke>'
>&4
@@ -281,7 +295,7 @@ XFAILED=\`expr "\$XFAILED" + "\$PLAYERXFAILED"\`
TESTED=\`expr "\$TESTED" + "\$PLAYERPASSED" + "\$PLAYERXPASSED" +
"\$PLAYERFAILED" + "\$PLAYERXFAILED"\`
# Check for total number of test run
-check_totals "89" "There should be 89 tests run"
+check_totals "94" "There should be 94 tests run"
# Remove temporary files
rm "\$LOGFILE"
-----------------------------------------------------------------------
Summary of changes:
testsuite/misc-mtasc.all/extcomm.as | 13 +++++++++++++
testsuite/misc-mtasc.all/extcommtests-runner.sh | 16 +++++++++++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2274-g29199b4,
Sandro Santilli <=