diff -r 000000000000 -r 6474c204b198 js/src/tests/js1_5/Regress/regress-464862.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/js1_5/Regress/regress-464862.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,123 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +//----------------------------------------------------------------------------- +var BUGNUMBER = 464862; +var summary = 'Do not assert: ( int32_t(delta) == uint8_t(delta) )'; +var actual = ''; +var expect = ''; + +printBugNumber(BUGNUMBER); +printStatus (summary); + +function ygTreeView(id) { + this.init(id); +} + +ygTreeView.prototype.init = function (id) {this.root = new ygRootNode(this);}; + +function ygNode() {} + +ygNode.prototype.nextSibling = null; + +ygNode.prototype.init = function (_32, _33, _34) { + this.children = []; + this.expanded = _34; + if (_33) { + this.tree = _33.tree; + this.depth = _33.depth + 1; + _33.appendChild(this); + } +}; + +ygNode.prototype.appendChild = function (_35) { + if (this.hasChildren()) { + var sib = this.children[this.children.length - 1]; + } + this.children[this.children.length] = _35; +}; + +ygNode.prototype.getElId = function () {}; + +ygNode.prototype.getNodeHtml = function () {}; + +ygNode.prototype.getToggleElId = function () {}; + +ygNode.prototype.getStyle = function () { + var loc = this.nextSibling ? "t" : "l"; + var _39 = "n"; + if (this.hasChildren(true)) {} +}; + +ygNode.prototype.hasChildren = function () {return this.children.length > 0;}; + +ygNode.prototype.getHtml = function () { + var sb = []; + sb[sb.length] = "