Created
March 19, 2017 21:09
-
-
Save ivmarkp/4ea897a67fce208f3153f6a4fbac9caf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checksum@inspiron:~/Documents/xapian/build/xapian-applications/omega$ git diff | |
diff --git a/xapian-applications/omega/omegatest b/xapian-applications/omega/omegatest | |
index b8505e2cf040..d6c9d78814e4 100755 | |
--- a/xapian-applications/omega/omegatest | |
+++ b/xapian-applications/omega/omegatest | |
@@ -302,6 +302,18 @@ testcase '.~~D' DOCIDORDER=D | |
testcase '.~~' DOCIDORDER=X # Buggy, but kept for compatibility. | |
testcase '.~~' DOCIDORDER=x # Buggy, but kept for compatibility. | |
+# Feature tests for $highlight{}. | |
+printf '$highlight{$cgi{text},$cgi{list}}' > "$TEST_TEMPLATE" | |
+testcase 'A <b style="color:black;background-color:#ffff66">list</b> of <b style="color:black;background-color:#99ff99">words</b>' P=text list="list${tab}words" text="A list of words" open="<b>" close="</b>" | |
+ | |
+printf '$highlight{$cgi{text},$cgi{list},$cgi{open}}' > "$TEST_TEMPLATE" | |
+testcase 'A list of <b>words</b>' P=text list="words" text="A list of words" open="<b>" | |
+testcase 'A list of <span>words</span>' P=text list="words" text="A list of words" open="<span>" | |
+ | |
+printf '$highlight{$cgi{text},$cgi{list},$cgi{open},$cgi{close}}' > "$TEST_TEMPLATE" | |
+testcase 'A list of <b>words</b>' P=text list="words" text="A list of words" open="<b>" close="</b>" | |
+testcase 'A *list* of *words*' P=text list="words${tab}list" text="A list of words" open="*" close="*" | |
+ | |
rm "$OMEGA_CONFIG_FILE" "$TEST_INDEXSCRIPT" "$TEST_TEMPLATE" | |
rm -rf "$TEST_DB" | |
if [ "$failed" = 0 ] ; then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment