aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/htmlTextPartTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-07-11 16:06:26 +0000
committerVincent Richard <[email protected]>2013-07-11 16:06:26 +0000
commitb886cd48649c09561417b378b9c1f932d6e72dd8 (patch)
tree8417a5de917a1b82a5ce7b67bb6e5abbb4bb8207 /tests/parser/htmlTextPartTest.cpp
parentUpdate example to test STATUS command. (diff)
downloadvmime-b886cd48649c09561417b378b9c1f932d6e72dd8.tar.gz
vmime-b886cd48649c09561417b378b9c1f932d6e72dd8.zip
Refactored the way embedded objects are referenced in MHTML.
Diffstat (limited to '')
-rw-r--r--tests/parser/htmlTextPartTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/parser/htmlTextPartTest.cpp b/tests/parser/htmlTextPartTest.cpp
index 732fcd8c..0eb7bbaf 100644
--- a/tests/parser/htmlTextPartTest.cpp
+++ b/tests/parser/htmlTextPartTest.cpp
@@ -157,12 +157,14 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
obj = htmlPart.findObject("image1@test");
+ VASSERT_EQ("ref-type1", vmime::htmlTextPart::embeddedObject::REFERENCED_BY_ID, obj->getReferenceType());
VASSERT_EQ("id-obj1", "image1@test", obj->getId());
VASSERT_EQ("data-obj1", "Image1", extractContent(obj->getData()));
VASSERT_EQ("type-obj1", "image/png", obj->getType().generate());
obj = htmlPart.findObject("image2@test");
+ VASSERT_EQ("ref-type2", vmime::htmlTextPart::embeddedObject::REFERENCED_BY_ID, obj->getReferenceType());
VASSERT_EQ("id-obj2", "image2@test", obj->getId());
VASSERT_EQ("data-obj2", "Image2", extractContent(obj->getData()));
VASSERT_EQ("type-obj2", "image/jpeg", obj->getType().generate());
@@ -223,6 +225,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
obj = htmlPart.findObject("http://www.vmime.org/test/image1.png");
+ VASSERT_EQ("ref-type", vmime::htmlTextPart::embeddedObject::REFERENCED_BY_LOCATION, obj->getReferenceType());
VASSERT_EQ("id-obj", "http://www.vmime.org/test/image1.png", obj->getId());
VASSERT_EQ("data-obj", "Image1", extractContent(obj->getData()));
VASSERT_EQ("type-obj", "image/png", obj->getType().generate());