[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9502: Correct MovieClip depth tests
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9502: Correct MovieClip depth tests. |
Date: |
Sat, 19 Jul 2008 09:22:56 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9502
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Sat 2008-07-19 09:22:56 +0200
message:
Correct MovieClip depth tests.
modified:
testsuite/actionscript.all/MovieClip.as
------------------------------------------------------------
revno: 9498.1.10
committer: Benjamin Wolsey <address@hidden>
branch nick: workingcopy
timestamp: Sat 2008-07-19 09:20:09 +0200
message:
Don't test createEmptyMovieClip depths for SWF5 or below, as it wasn't
there.
modified:
testsuite/actionscript.all/MovieClip.as
=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as 2008-07-18 11:02:56 +0000
+++ b/testsuite/actionscript.all/MovieClip.as 2008-07-19 07:20:09 +0000
@@ -27,7 +27,7 @@
endOfTest = function()
{
#if OUTPUT_VERSION <= 5
- check_totals(236); // SWF5
+ check_totals(231); // SWF5
#endif
#if OUTPUT_VERSION == 6
@@ -1594,41 +1594,26 @@
dataLoadInterval = setInterval(onDataCheck, 1000);
#endif
-/// Depth tests.
-
+/// Depth tests for createEmptyMovieClip, which was introduced
+/// in SWF6.
+
+
+#if OUTPUT_VERSION > 5
createEmptyMovieClip("d1", -200000000);
-#if OUTPUT_VERSION > 5
check_equals(d1.getDepth(), -200000000);
-#else
-xcheck_equals(d1.getDepth(), -200000000);
-#endif
createEmptyMovieClip("d2", -0xffffffff);
-#if OUTPUT_VERSION > 5
check_equals(d2.getDepth(), 1);
-#else
-xcheck_equals(d2.getDepth(), 1);
-#endif
createEmptyMovieClip("d3", 0xffffffff);
-#if OUTPUT_VERSION > 5
check_equals(d3.getDepth(), -1);
-#else
-xcheck_equals(d3.getDepth(), -1);
-#endif
createEmptyMovieClip("d4", 0x80000000);
-#if OUTPUT_VERSION > 5
check_equals(d4.getDepth(), -2147483648);
-#else
-xcheck_equals(d4.getDepth(), -2147483648);
-#endif
createEmptyMovieClip("d5", 0x79999999);
-#if OUTPUT_VERSION > 5
check_equals(d5.getDepth(), 2040109465);
-#else
-xcheck_equals(d5.getDepth(), 2040109465);
+
#endif
//_root.loadVariables(MEDIA(vars.txt), "GET");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9502: Correct MovieClip depth tests.,
Benjamin Wolsey <=