[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11130: Call clearInterval() and cle
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11130: Call clearInterval() and clearTimeout() with no args and check return type. Gnash used to crash on clearInterval()... |
Date: |
Tue, 16 Jun 2009 12:07:54 +0200 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11130
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Tue 2009-06-16 12:07:54 +0200
message:
Call clearInterval() and clearTimeout() with no args and check return type.
Gnash used to crash on clearInterval()...
modified:
testsuite/actionscript.all/Global.as
=== modified file 'testsuite/actionscript.all/Global.as'
--- a/testsuite/actionscript.all/Global.as 2009-01-22 20:10:39 +0000
+++ b/testsuite/actionscript.all/Global.as 2009-06-16 10:07:54 +0000
@@ -171,9 +171,16 @@
check_equals(typeof(setInterval), 'function');
check_equals(typeof(clearInterval), 'function');
+ret = clearInterval(); // gnash used to crash on this...
+check_equals(typeof(ret), 'undefined');
+
check_equals(typeof(setTimeout), 'function');
check_equals(typeof(clearTimeout), 'function');
+ret = clearTimeout();
+check_equals(typeof(ret), 'undefined');
+
+
//------------------------------------------------------------
// Test ASSetPropFlags
@@ -465,15 +472,15 @@
//------------------------------------------------------------
#if OUTPUT_VERSION == 5
- check_totals(153); // SWF5
+ check_totals(155); // SWF5
#else
# if OUTPUT_VERSION == 6
- check_totals(187); // SWF6
+ check_totals(189); // SWF6
# else
# if OUTPUT_VERSION == 7
- check_totals(169); // SWF7
+ check_totals(171); // SWF7
# else
- check_totals(156); // SWF8+
+ check_totals(158); // SWF8+
# endif
# endif
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11130: Call clearInterval() and clearTimeout() with no args and check return type. Gnash used to crash on clearInterval()...,
Sandro Santilli <=