michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var BUGNUMBER = 614608; michael@0: var summary = "String.prototype.split tests"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: function assertEqArr(a1, a2) { michael@0: assertEq(a1.length, a2.length); michael@0: michael@0: for(var i=0; iboldandcoded".split(/<(\/)?([^<>]+)>/), michael@0: ["A", undefined, "B", "bold", "/", "B", "and", undefined, michael@0: "CODE", "coded", "/", "CODE", ""]); michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("All tests passed!");