Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-03-01 19:10:25 -0500
committerCurtis D'Entremont2006-03-01 19:10:25 -0500
commit94ff6f30fee5393bf8c5563bbd4040068f357e3c (patch)
treeb3e990764296852127f7ce37e2d4b6aecc5858e3 /org.eclipse.ua.tests/data/help/search
parent488c04382d19f95121b443ec6d7972789c6082d3 (diff)
downloadeclipse.platform.ua-94ff6f30fee5393bf8c5563bbd4040068f357e3c.tar.gz
eclipse.platform.ua-94ff6f30fee5393bf8c5563bbd4040068f357e3c.tar.xz
eclipse.platform.ua-94ff6f30fee5393bf8c5563bbd4040068f357e3c.zip
130051 [Help] Search dynamic content properlyv20060301
Diffstat (limited to 'org.eclipse.ua.tests/data/help/search')
-rw-r--r--org.eclipse.ua.tests/data/help/search/extension.xml7
-rw-r--r--org.eclipse.ua.tests/data/help/search/extension2.xml7
-rw-r--r--org.eclipse.ua.tests/data/help/search/test1.xhtml22
-rw-r--r--org.eclipse.ua.tests/data/help/search/test2.xhtml24
-rw-r--r--org.eclipse.ua.tests/data/help/search/test3.xhtml16
-rw-r--r--org.eclipse.ua.tests/data/help/search/test4.xhtml17
-rw-r--r--org.eclipse.ua.tests/data/help/search/test5.xhtml18
-rw-r--r--org.eclipse.ua.tests/data/help/search/test6.xhtml20
-rw-r--r--org.eclipse.ua.tests/data/help/search/toc.xml11
9 files changed, 142 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/data/help/search/extension.xml b/org.eclipse.ua.tests/data/help/search/extension.xml
new file mode 100644
index 000000000..db66ffd16
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/extension.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<contentExtension>
+ <topicExtension
+ content="data/help/search/test3.xhtml"
+ path="org.eclipse.ua.tests/data/help/search/test5.xhtml/test5_anchor"/>
+</contentExtension>
diff --git a/org.eclipse.ua.tests/data/help/search/extension2.xml b/org.eclipse.ua.tests/data/help/search/extension2.xml
new file mode 100644
index 000000000..e5206dd6b
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/extension2.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<contentExtension>
+ <topicReplace
+ content="data/help/search/test3.xhtml"
+ path="org.eclipse.ua.tests/data/help/search/test6.xhtml/test6_paragraph_to_replace"/>
+</contentExtension>
diff --git a/org.eclipse.ua.tests/data/help/search/test1.xhtml b/org.eclipse.ua.tests/data/help/search/test1.xhtml
new file mode 100644
index 000000000..d52fe3277
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test1.xhtml
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test1.xhtml</title>
+</head>
+
+<body>
+<p>
+This paragraph is never filtered out, and is used as a sanity test. Here's a unique word
+to search for as part of this test: jehcyqpfjs vkrhjewiwh
+</p>
+
+<p filter="os=invalid">
+This paragraph is always filtered out, and is used to ensure that searching does not
+flag this document as a hit. Here is a unique word to search for: gsdduvfqnh
+vkrhjewiwh riehguanil
+</p>
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/test2.xhtml b/org.eclipse.ua.tests/data/help/search/test2.xhtml
new file mode 100644
index 000000000..6a3e40b3f
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test2.xhtml
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test2.xhtml</title>
+</head>
+
+<body>
+
+<p>
+This test is to ensure that searching properly reacts to changes in filters.
+It will turn the activity on and off and ensure that the search hit comes and goes
+depending on the activity enablement.
+rugnwjfyqj
+</p>
+
+<p filter="activity=org.eclipse.ua.tests.activity">
+This paragraph should only be filtered out when the "org.eclipse.ua.tests.activity"
+activity is not enabled. Here is a unique word to search for: qjfuhemaok
+</p>
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/test3.xhtml b/org.eclipse.ua.tests/data/help/search/test3.xhtml
new file mode 100644
index 000000000..b079596eb
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test3.xhtml
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test3.xhtml</title>
+</head>
+
+<body>
+
+<p id="test3_paragraph">
+This paragraph is to be included into other docs. fuejnghqjs
+</p>
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/test4.xhtml b/org.eclipse.ua.tests/data/help/search/test4.xhtml
new file mode 100644
index 000000000..9bc05e766
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test4.xhtml
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test4.xhtml</title>
+</head>
+
+<body>
+
+<p>
+There is an include below that includes a paragraph from test3.xhtml:
+</p>
+<include path="org.eclipse.ua.tests/data/help/search/test3.xhtml/test3_paragraph"/>
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/test5.xhtml b/org.eclipse.ua.tests/data/help/search/test5.xhtml
new file mode 100644
index 000000000..61e2de9ba
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test5.xhtml
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test5.xhtml</title>
+</head>
+
+<body>
+
+<p>
+There is an anchor below where an extension should contribute a paragraph
+from test3 to it:
+</p>
+<anchor id="test5_anchor" />
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/test6.xhtml b/org.eclipse.ua.tests/data/help/search/test6.xhtml
new file mode 100644
index 000000000..c0f521687
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/test6.xhtml
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>test6.xhtml</title>
+</head>
+
+<body>
+
+<p>
+There paragraph below should be replaced by another paragraph from test3.xhtml:
+</p>
+<p id="test6_paragraph_to_replace">
+This is the paragraph from test6.xhtml that should be replaced with one from
+test3.xhtml. If you're seeing this then it's not working. bheufnjefa
+</p>
+
+</body>
+</html>
diff --git a/org.eclipse.ua.tests/data/help/search/toc.xml b/org.eclipse.ua.tests/data/help/search/toc.xml
new file mode 100644
index 000000000..5e7591950
--- /dev/null
+++ b/org.eclipse.ua.tests/data/help/search/toc.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?NLS TYPE="org.eclipse.help.toc"?>
+
+<toc label="Search test TOC">
+ <topic label="test1.xhtml" href="data/help/search/test1.xhtml"/>
+ <topic label="test2.xhtml" href="data/help/search/test2.xhtml"/>
+ <topic label="test3.xhtml" href="data/help/search/test3.xhtml"/>
+ <topic label="test4.xhtml" href="data/help/search/test4.xhtml"/>
+ <topic label="test5.xhtml" href="data/help/search/test5.xhtml"/>
+ <topic label="test6.xhtml" href="data/help/search/test6.xhtml"/>
+</toc>

Back to the top