Closed Bug 715533 Opened 12 years ago Closed 6 years ago

AMF Float/Float4 testing

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: brbaker, Unassigned)

References

Details

Need to add some additional testing of the AMF protocol that is not simple round tripping of reading and writing. There should be some testing that is actually validating the bits being written. See bug# 704073 comments #7 and #13.
Flags: in-testsuite?
Something like:


var f:float = 12.375f;
var ba_test_Obj:ByteArray = new ByteArray();
ba_test_Obj.writeObject(f);
ba_test_Obj.position = 0;
print(ba_test_Obj.readByte()); // should be: kFloatAtomType = 21
print(ba_test_Obj.readInt());  // 0-10000010-10001100000000000000000 binary rep
                               // should be: 1095106560 as int


ba_test_Obj.position = 0;
ba_test_Obj.writeByte(21);
ba_test_Obj.writeInt(1095106560);
ba_test_Obj.position = 0;
print(ba_test_Obj.readObject()); // should be 12.375
ba_test_Obj.position = 0;
print(typeof ba_test_Obj.readObject()); // should be float
See Also: → 704073
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.