[Kst] extragear/graphics/kst/tests
Adam Treat
treat at kde.org
Fri Oct 13 19:13:07 CEST 2006
SVN commit 595240 by treat:
* countFromEOF doesn't mean what I think it means...
M +10 -11 testrvector.cpp
--- trunk/extragear/graphics/kst/tests/testrvector.cpp #595239:595240
@@ -374,21 +374,20 @@
}
{
//Skip FIVE frames and countFromEOF()...
- KstRVectorPtr rvp = new KstRVector(dsp, "INDEX", "RVTestDirfile", -1, 15, 5, true, false);
+ KstRVectorPtr rvp = new KstRVector(dsp, "INDEX", "RVTestDirfile", -1, 10, 5, true, false);
rvp->update(0);
- //We should have length equal to three... items {14, 9, 4}
- doTestV("length", 3, rvp->length());
- doTestV("item #0", 14, rvp->value(0));
- doTestV("item #1", 9, rvp->value(1));
- doTestV("item #2", 4, rvp->value(2));
+ //We should have length equal to two... items {5, 10}
+ doTestV("length", 2, rvp->length());
+ doTestV("item #0", 5, rvp->value(0));
+ doTestV("item #1", 10, rvp->value(1));
- //The numFrames should still report 11 as it lies on the skip boundary
- doTestV("numFrames", 11, rvp->numFrames());
- //The startFrame should still report 0 as it lies on the skip boundary
- doTestV("startFrame", 0, rvp->startFrame());
+ //The numFrames should report 6 as it lies on the skip boundary
+ doTestV("numFrames", 6, rvp->numFrames());
+ //The startFrame should report 5 as it lies on the skip boundary
+ doTestV("startFrame", 5, rvp->startFrame());
- doTestV("reqNumFrames", 15, rvp->reqNumFrames());
+ doTestV("reqNumFrames", 10, rvp->reqNumFrames());
doTestV("reqStartFrame", -1, rvp->reqStartFrame());
doTestV("readToEOF", false, rvp->readToEOF());
More information about the Kst
mailing list