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