michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommonn.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var BUGNUMBER = 738511; michael@0: var summary = michael@0: "new Date(value) should call ToPrimitive on value before testing for " + michael@0: "string-ness"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: assertEq(new Date(new String("2012-01-31T00:00:00.000Z")).valueOf(), michael@0: 1327968000000, michael@0: "Date constructor passed a String object should parse it"); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");