Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-464862.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 gTestfile = 'regress-464862.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 464862;
9 var summary = 'Do not assert: ( int32_t(delta) == uint8_t(delta) )';
10 var actual = '';
11 var expect = '';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 function ygTreeView(id) {
17 this.init(id);
18 }
19
20 ygTreeView.prototype.init = function (id) {this.root = new ygRootNode(this);};
21
22 function ygNode() {}
23
24 ygNode.prototype.nextSibling = null;
25
26 ygNode.prototype.init = function (_32, _33, _34) {
27 this.children = [];
28 this.expanded = _34;
29 if (_33) {
30 this.tree = _33.tree;
31 this.depth = _33.depth + 1;
32 _33.appendChild(this);
33 }
34 };
35
36 ygNode.prototype.appendChild = function (_35) {
37 if (this.hasChildren()) {
38 var sib = this.children[this.children.length - 1];
39 }
40 this.children[this.children.length] = _35;
41 };
42
43 ygNode.prototype.getElId = function () {};
44
45 ygNode.prototype.getNodeHtml = function () {};
46
47 ygNode.prototype.getToggleElId = function () {};
48
49 ygNode.prototype.getStyle = function () {
50 var loc = this.nextSibling ? "t" : "l";
51 var _39 = "n";
52 if (this.hasChildren(true)) {}
53 };
54
55 ygNode.prototype.hasChildren = function () {return this.children.length > 0;};
56
57 ygNode.prototype.getHtml = function () {
58 var sb = [];
59 sb[sb.length] = "<div class=\"ygtvitem\" id=\"" + this.getElId() + "\">";
60 sb[sb.length] = this.getNodeHtml();
61 sb[sb.length] = this.getChildrenHtml();
62 };
63
64 ygNode.prototype.getChildrenHtml = function () {
65 var sb = [];
66 if (this.hasChildren(true) && this.expanded) {
67 sb[sb.length] = this.renderChildren();
68 }
69 };
70
71 ygNode.prototype.renderChildren = function () {return this.completeRender();};
72
73 ygNode.prototype.completeRender = function () {
74 var sb = [];
75 for (var i = 0; i < this.children.length; ++i) {
76 sb[sb.length] = this.children[i].getHtml();
77 }
78 };
79
80 ygRootNode.prototype = new ygNode;
81
82 function ygRootNode(_48) {
83 this.init(null, null, true);
84 }
85
86 ygTextNode.prototype = new ygNode;
87
88 function ygTextNode(_49, _50, _51) {
89 this.init(_49, _50, _51);
90 this.setUpLabel(_49);
91 }
92
93 ygTextNode.prototype.setUpLabel = function (_52) {
94 if (typeof _52 == "string") {}
95 if (_52.target) {}
96 this.labelElId = "ygtvlabelel" + this.index;
97 };
98
99 ygTextNode.prototype.getNodeHtml = function () {
100 var sb = new Array;
101 sb[sb.length] = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
102 sb[sb.length] = "<tr>";
103 for (i = 0; i < this.depth; ++i) {}
104 sb[sb.length] = " id=\"" + this.getToggleElId() + "\"";
105 sb[sb.length] = " class=\"" + this.getStyle() + "\"";
106 if (this.hasChildren(true)) {}
107 sb[sb.length] = " id=\"" + this.labelElId + "\"";
108 };
109
110 function buildUserTree() {
111 userTree = new ygTreeView("userTree");
112 addMenuNode(userTree, "N", "navheader");
113 addMenuNode(userTree, "R", "navheader");
114 addMenuNode(userTree, "S", "navheader");
115 }
116
117 function addMenuNode(tree, label, styleClass) {
118 new ygTextNode({}, tree.root, false);
119 }
120
121 buildUserTree();
122 userTree.root.getHtml();
123
124 reportCompare(expect, actual, summary);