From: Uwe Steinmann Date: Tue, 12 Dec 2000 16:02:19 +0000 (+0000) Subject: - add test for hw_insertanchors() X-Git-Tag: php-4.0.5RC1~924 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25e3740bcc03c594971262225dc2b0835a7f50ed;p=php - add test for hw_insertanchors() --- diff --git a/tests/testhyperwave b/tests/testhyperwave index 9dc8c5210b..28bc19d2f9 100644 --- a/tests/testhyperwave +++ b/tests/testhyperwave @@ -13,7 +13,7 @@ } // Set all test to 'yes' if they shall be executed - $test_1 = "yes"; // Get the text document with id $id and output it + $test_1 = "no"; // Get the text document with id $id and output it $test_2 = "no"; // Check if id $id is in $collid $test_3 = "no"; // Convert object record to object array and back $test_4 = "no"; // Get object record of object with id $id @@ -22,7 +22,9 @@ $test_7 = "no"; // Insert a new text document $test_8 = "no"; // Remove the just inserted text document $test_9 = "no"; // Searching for objects with Name $query - $test_10= "yes"; // Listing all anchors of a document + $test_10= "no"; // Listing all anchors of a document + $test_11= "no"; // Creates document from file and outputs it. + $test_12= "yes"; // Creates document from file and outputs it. /* Lists an object array */ @@ -218,5 +220,16 @@ } } + if($test_11 == "yes") { + $doc = hw_new_document_from_file("ObjectRecord", "hw_document.txt"); + hw_output_document($doc); + } + + if($test_12 == "yes") { + $doc = hw_new_document_from_file("ObjectRecord", "hw_document.txt"); + hw_insertanchors($doc, array("Position=0x2 0x7\nObjectID=0x3\nTAnchor=Src\nDest=0x5"), array("ObjectID=0x5\nName=DestDoc")); + hw_output_document($doc); + } + hw_close($connect); ?>