| <!-- --> |
| <!-- Copyright 2015 Google Inc. --> |
| <!-- Licensed under the Apache License, Version 2.0 (the "License"); you --> |
| <!-- may not use this file except in compliance with the License. You may --> |
| <!-- may obtain a copy of the License at --> |
| <!-- --> |
| <!-- http://www.apache.org/licenses/LICENSE-2.0 --> |
| <!-- --> |
| <!-- Unless required by applicable law or agreed to in writing, software --> |
| <!-- distributed under the License is distributed on an "AS IS" BASIS, --> |
| <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> |
| <!-- implied. License for the specific language governing permissions and --> |
| <!-- limitations under the License. --> |
| <module> |
| <inherits name="com.google.gwt.useragent.UserAgent" /> |
| <source path="test" /> |
| |
| <!-- One of the purposes of this test is to ensure that collapsed properties behave correctly. |
| Do not remove values, nor the collapsing of this property, as there should is no observable |
| difference from the test perspective if this property was not collapsed.--> |
| <define-property name="collapsedProperty" values="one,two"/> |
| <property-provider name="collapsedProperty"><![CDATA[ |
| return 'two'; |
| ]]></property-provider> |
| <collapse-property name="collapsedProperty" values="*" /> |
| <define-property name="someDynamicProperty" values="InSafari,NotInSafari"/> |
| <set-property name="someDynamicProperty" value="NotInSafari"/> |
| <set-property name="someDynamicProperty" value="InSafari"> |
| <when-property-is name="user.agent" value="safari"/> |
| </set-property> |
| <define-property name="someOtherDynamicProperty" values="red,blue"/> |
| <set-property name="someOtherDynamicProperty" value="red"/> |
| <set-property name="someOtherDynamicProperty" value="blue"> |
| <when-property-is name="collapsedProperty" value="two"/> |
| </set-property> |
| </module> |