blob: ee6e12c37ffe9138a1da10d96f566b1bd21539d6 [file] [log] [blame]
var BUGNUMBER = 1145326;
var summary = 'String.prototype.normalize error when normalization form parameter is not an atom';
print(BUGNUMBER + ": " + summary);
function test() {
assertEq("abc".normalize("NFKC".split("").join("")), "abc");
assertEq("abc".normalize("NFKCabc".replace("abc", "")), "abc");
assertEq("abc".normalize("N" + "F" + "K" + "C"), "abc");
}
if ("normalize" in String.prototype) {
// String.prototype.normalize is not enabled in all builds.
test();
}
if (typeof reportCompare === "function")
reportCompare(true, true);