michael@0: // Copyright 2013 Mozilla Corporation. All rights reserved. michael@0: // This code is governed by the license found in the LICENSE file. michael@0: michael@0: /** michael@0: * @description Tests that Date.prototype.toLocaleString & Co. use the standard michael@0: * built-in Intl.DateTimeFormat constructor. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: $INCLUDE("testIntl.js"); michael@0: michael@0: taintDataProperty(Intl, "DateTimeFormat"); michael@0: new Date().toLocaleString(); michael@0: new Date().toLocaleDateString(); michael@0: new Date().toLocaleTimeString();