| 1 | <!-- |
|---|
| 2 | Copyright 2008 Google Inc. |
|---|
| 3 | |
|---|
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|---|
| 5 | use this file except in compliance with the License. You may obtain a copy of |
|---|
| 6 | the License at |
|---|
| 7 | |
|---|
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 9 | |
|---|
| 10 | Unless required by applicable law or agreed to in writing, software |
|---|
| 11 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|---|
| 12 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|---|
| 13 | License for the specific language governing permissions and limitations under |
|---|
| 14 | the License. |
|---|
| 15 | --> |
|---|
| 16 | <html> |
|---|
| 17 | <head> |
|---|
| 18 | <meta name='gwt:onLoadErrorFn' content='junitOnLoadErrorFn'> |
|---|
| 19 | <meta name='gwt:onPropertyErrorFn' content='junitOnPropertyErrorFn'> |
|---|
| 20 | </head> |
|---|
| 21 | <body> |
|---|
| 22 | <script language='javascript'> |
|---|
| 23 | <!-- |
|---|
| 24 | function junitOnLoadErrorFn(moduleName) { |
|---|
| 25 | junitError('Failed to load module "' + moduleName + |
|---|
| 26 | '".\nPlease see the log for details.'); |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | function junitOnPropertyErrorFn(propName, allowedValues, badValue) { |
|---|
| 30 | var msg = 'While attempting to load the module, property "' + propName; |
|---|
| 31 | if (badValue != null) { |
|---|
| 32 | msg += '" was set to the unexpected value "' + badValue + '"'; |
|---|
| 33 | } else { |
|---|
| 34 | msg += '" was not specified'; |
|---|
| 35 | } |
|---|
| 36 | msg += 'Allowed values: ' + allowedValues; |
|---|
| 37 | junitError(msg); |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | function junitError(msg) { |
|---|
| 41 | var xmlHttpRequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); |
|---|
| 42 | xmlHttpRequest.open('POST', 'junithost/loadError', true); |
|---|
| 43 | xmlHttpRequest.setRequestHeader('Content-Type', 'text/x-gwt-rpc; charset=utf-8'); |
|---|
| 44 | xmlHttpRequest.send(msg); |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | function loadSelectionScript() { |
|---|
| 48 | var moduleName = document.location.href; |
|---|
| 49 | var pos = moduleName.lastIndexOf('/'); |
|---|
| 50 | moduleName = moduleName.substr(0, pos); |
|---|
| 51 | pos = moduleName.lastIndexOf('/'); |
|---|
| 52 | moduleName = moduleName.substr(pos + 1); |
|---|
| 53 | document.write("<script language='javascript' src='" + moduleName + ".nocache.js'></script>"); |
|---|
| 54 | } |
|---|
| 55 | loadSelectionScript(); |
|---|
| 56 | --> |
|---|
| 57 | </script> |
|---|
| 58 | <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe> |
|---|
| 59 | <noscript> |
|---|
| 60 | <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif"> |
|---|
| 61 | Your web browser must have JavaScript enabled |
|---|
| 62 | in order for this application to display correctly. |
|---|
| 63 | </div> |
|---|
| 64 | </noscript> |
|---|
| 65 | </body> |
|---|
| 66 | </html> |
|---|