[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9934: Consisteny checking for NetSt
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9934: Consisteny checking for NetStream-SquareTest |
Date: |
Mon, 06 Oct 2008 15:30:57 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9934
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-10-06 15:30:57 +0200
message:
Consisteny checking for NetStream-SquareTest
modified:
testsuite/misc-ming.all/NetStream-SquareTest.c
testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp
=== modified file 'testsuite/misc-ming.all/NetStream-SquareTest.c'
--- a/testsuite/misc-ming.all/NetStream-SquareTest.c 2008-09-12 08:01:31
+0000
+++ b/testsuite/misc-ming.all/NetStream-SquareTest.c 2008-10-06 13:30:57
+0000
@@ -615,7 +615,7 @@
check_equals(mo, "metadataNotified", "1");
check_equals(mo, "stopNotified", "2");
check_equals(mo, "startNotified", "1");
- SWFMovie_add(mo, (SWFBlock)newSWFAction("totals(142); stop();"));
+ SWFMovie_add(mo, (SWFBlock)newSWFAction("totals(142); stop();
end_of_test=true;"));
SWFMovie_nextFrame(mo);
=== modified file 'testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp'
--- a/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 2008-06-29
20:17:35 +0000
+++ b/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 2008-10-06
13:30:57 +0000
@@ -71,8 +71,10 @@
{
tester.advance();
- // sleep to give the NetStream a chance to load data and
trigger notifications
+ // sleep to give the NetStream a chance to load
+ // data and trigger notifications
// needs more analisys to find a good way for doing this..
+ // TODO: sleep less ! GnashSleep !
sleep(1);
}
@@ -80,14 +82,20 @@
tester.pressKey(key::SPACE);
tester.releaseKey(key::SPACE);
- while (root->get_current_frame() < 2)
+ while (root->get_current_frame() < 2)
{
tester.advance();
// sleep to give the NetStream a chance to load data and
trigger notifications
// needs more analisys to find a good way for doing this..
+ // TODO: sleep less !!
sleep(1);
}
+ // Consistency check
+ as_value eot;
+ bool endOfTestFound = root->get_member(st.find("end_of_test"), &eot);
+ check(endOfTestFound);
+
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9934: Consisteny checking for NetStream-SquareTest,
Sandro Santilli <=