Debian Codegraph @

rhino/testsrc/tests/e4x/browser.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var SUMMARY = '';
7 var DESCRIPTION = '';
8 var EXPECTED = '';
9 var ACTUAL = '';
10 var MSG = '';
11 var SECTION = '';
12
13 window.onerror = function (msg, page, line)
14 {
15 optionsPush();
16
17 if (typeof SUMMARY == 'undefined')
18 {
19 SUMMARY = 'Unknown';
20 }
21 if (typeof SECTION == 'undefined')
22 {
23 SECTION = 'Unknown';
24 }
25 if (typeof DESCRIPTION == 'undefined')
26 {
27 DESCRIPTION = 'Unknown';
28 }
29 if (typeof EXPECTED == 'undefined')
30 {
31 EXPECTED = 'Unknown';
32 }
33
34 var testcase = new TestCase(gTestfile, SUMMARY + DESCRIPTION +
35 ' Section ' + SECTION, EXPECTED, "error");
36
37 testcase.passed = false;
38
39 testcase.reason = page + ':' + line + ': ' + msg;
40
41 reportFailure(SECTION, msg);
42
43 gDelayTestDriverEnd = false;
44 jsTestDriverEnd();
45
46 optionsReset();
47 };
48
49 options('xml');
50