Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-12-08 15:58:33 -0500
committerCurtis D'Entremont2006-12-08 15:58:33 -0500
commit6c8438c708f168fc010c0d51b2e406fea03f238e (patch)
tree1ab00b11a3158ec8c60475a3a9b0adadb16783f2 /org.eclipse.ua.tests/data/help/dynamic
parent2e4821a10bd18fca34b18703c190df2a419383b0 (diff)
downloadeclipse.platform.ua-6c8438c708f168fc010c0d51b2e406fea03f238e.tar.gz
eclipse.platform.ua-6c8438c708f168fc010c0d51b2e406fea03f238e.tar.xz
eclipse.platform.ua-6c8438c708f168fc010c0d51b2e406fea03f238e.zip
142526 [Help] Allow if/else conditionals (filters) for dynamic contentv20061208
Diffstat (limited to 'org.eclipse.ua.tests/data/help/dynamic')
-rw-r--r--org.eclipse.ua.tests/data/help/dynamic/filter.xml101
-rw-r--r--org.eclipse.ua.tests/data/help/dynamic/filter_expected.txt67
2 files changed, 168 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/data/help/dynamic/filter.xml b/org.eclipse.ua.tests/data/help/dynamic/filter.xml
index ac0513dab..da2ca691c 100644
--- a/org.eclipse.ua.tests/data/help/dynamic/filter.xml
+++ b/org.eclipse.ua.tests/data/help/dynamic/filter.xml
@@ -124,6 +124,107 @@
<include path="/org.eclipse.ua.tests/data/help/dynamic/shared/doc1.xml#doc.1"/>
</element>
+ <!-- enablement expressions; should not filter -->
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.os" value="invalid"/>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.ws" value="invalid"/>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.arch" value="invalid"/>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="eclipse.product" value="org.eclipse.ua.invalid"/>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="platform">
+ <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.help"/>
+ <not>
+ <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.ua.invalid"/>
+ </not>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <not>
+ <test property="org.eclipse.ui.isActivityEnabled" args="invalid"/>
+ </not>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <not>
+ <test property="org.eclipse.ui.isCategoryEnabled" args="invalid"/>
+ </not>
+ </with>
+ </enablement>
+ </element>
+
+ <!-- enablement expressions; should filter -->
+ <element>
+ <enablement>
+ <systemTest property="osgi.os" value="invalid"/>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <systemTest property="osgi.ws" value="invalid"/>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <systemTest property="osgi.arch" value="invalid"/>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <systemTest property="eclipse.product" value="invalid"/>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="platform">
+ <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.ua.invalid"/>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <test property="org.eclipse.ui.isActivityEnabled" args="invalid"/>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <test property="org.eclipse.ui.isCategoryEnabled" args="invalid"/>
+ </with>
+ </enablement>
+ </element>
+
<!--
Invalid cases
-->
diff --git a/org.eclipse.ua.tests/data/help/dynamic/filter_expected.txt b/org.eclipse.ua.tests/data/help/dynamic/filter_expected.txt
index 428e09f24..d05b0857c 100644
--- a/org.eclipse.ua.tests/data/help/dynamic/filter_expected.txt
+++ b/org.eclipse.ua.tests/data/help/dynamic/filter_expected.txt
@@ -139,6 +139,73 @@
</element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.os" value="invalid"></systemTest>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.ws" value="invalid"></systemTest>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="osgi.arch" value="invalid"></systemTest>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <not>
+ <systemTest property="eclipse.product" value="org.eclipse.ua.invalid"></systemTest>
+ </not>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="platform">
+ <test args="org.eclipse.help" property="org.eclipse.core.runtime.isBundleInstalled"></test>
+ <not>
+ <test args="org.eclipse.ua.invalid" property="org.eclipse.core.runtime.isBundleInstalled"></test>
+ </not>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <not>
+ <test args="invalid" property="org.eclipse.ui.isActivityEnabled"></test>
+ </not>
+ </with>
+ </enablement>
+ </element>
+ <element>
+ <enablement>
+ <with variable="workbench">
+ <not>
+ <test args="invalid" property="org.eclipse.ui.isCategoryEnabled"></test>
+ </not>
+ </with>
+ </enablement>
+ </element>
+
+
+
+
+
+
+
+
+
+
+
<element filter=""></element>

Back to the top