blob: 2a0b212a995a6baa7eca5d5c13db656d0546215a [file] [log] [blame]
<!-- -->
<!-- Copyright 2014 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" />
<!-- The purpose of this test is to ensure that collapsed properties behave correctly
under codesplitting. Do not remove values, nor the collapsing of this property,
as there should be 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>
<replace-with class="com.google.gwt.dev.jjs.test.CodeSplitterCollapsedPropertiesTest.Bar">
<when-type-is class="com.google.gwt.dev.jjs.test.CodeSplitterCollapsedPropertiesTest.Foo" />
<when-property-is name="collapsedProperty" value="two"/>
</replace-with>
<replace-with class="com.google.gwt.dev.jjs.test.CodeSplitterCollapsedPropertiesTest.Baz">
<when-type-is class="com.google.gwt.dev.jjs.test.CodeSplitterCollapsedPropertiesTest.Foo" />
<when-property-is name="collapsedProperty" value="one"/>
</replace-with>
<collapse-property name="collapsedProperty" values="*" />
</module>