summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-12-12 16:02:19 +0000
committerUwe Steinmann <steinm@php.net>2000-12-12 16:02:19 +0000
commit25e3740bcc03c594971262225dc2b0835a7f50ed (patch)
treef6a0b64b183d8dd248ea7ec19c5e16dd8511dbaf /tests
parentba862cc06dc40a3c04d788d1d6d64a565bf368ab (diff)
downloadphp-git-25e3740bcc03c594971262225dc2b0835a7f50ed.tar.gz
- add test for hw_insertanchors()
Diffstat (limited to 'tests')
-rw-r--r--tests/testhyperwave17
1 files changed, 15 insertions, 2 deletions
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);
?>