| <!-- --> | |
| <!-- Copyright 2008 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. --> | |
| <!-- Deferred binding rules for browser selection. --> | |
| <!-- --> | |
| <!-- Do not inherit this module directly. Running GWTTestCase under JUnit --> | |
| <!-- will inherit this module automatically. --> | |
| <module> | |
| <inherits name="com.google.gwt.logging.Logging"/> | |
| <inherits name="com.google.gwt.user.User"/> | |
| <inherits name="com.google.gwt.junit.JUnit3"/> | |
| <set-property name="jre.debugMode" value="ENABLED" /> | |
| <set-property name="gwt.logging.developmentModeHandler" value="DISABLED" /> | |
| <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" /> | |
| <super-source path="translatable"/> | |
| <source path="client"/> | |
| <generate-with class="com.google.gwt.junit.rebind.GWTTestMetadataGenerator"> | |
| <when-type-is class="com.google.gwt.junit.client.impl.GWTTestMetadata"/> | |
| </generate-with> | |
| <!-- We want to provide consistent stack traces across all browsers. --> | |
| <set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" /> | |
| <set-property name="compiler.stackMode" value="emulated"> | |
| <none> | |
| <!-- Don't use stack trace emulation if source maps enabled --> | |
| <when-property-is name="compiler.useSourceMaps" value="true"/> | |
| </none> | |
| </set-property> | |
| <!-- Override the regular symbolMaps linker to put the data somewhere we can find it --> | |
| <define-linker name="symbolMaps" class="com.google.gwt.junit.linker.JUnitSymbolMapsLinker" /> | |
| <define-linker name="closureHelpers" | |
| class="com.google.gwt.junit.linker.ClosureHelpersLinker" /> | |
| <!-- | |
| Note that only one servlet will be instantiated for both following paths which makes it | |
| easy to share deobfuscator logic and state. | |
| --> | |
| <servlet path="/junithost/*" class="com.google.gwt.junit.server.JUnitHostImpl"/> | |
| <servlet path="/remote_logging" class="com.google.gwt.junit.server.JUnitHostImpl"/> | |
| <!-- | |
| gwt.cspTestingEnabled enables checking for CSP violations during unit tests. | |
| When this is turned on, a nonce-based policy employing 'strict-dynamic' will | |
| be enforced on the hosting page. If code run during a unit test violates | |
| this policy, an error will be signaled. | |
| --> | |
| <define-property name="gwt.strictCspTestingEnabled" values="true, false"/> | |
| <set-property name="gwt.strictCspTestingEnabled" value="false"/> | |
| </module> |