| Index: test/intl/date-format/utils.js
|
| diff --git a/test/mjsunit/compare-nil.js b/test/intl/date-format/utils.js
|
| similarity index 87%
|
| copy from test/mjsunit/compare-nil.js
|
| copy to test/intl/date-format/utils.js
|
| index 0895a31fb80cbe697b678eaa1005926d7d65829f..535de15e9a2b4298cfc13d080b9fe620588f5b8e 100644
|
| --- a/test/mjsunit/compare-nil.js
|
| +++ b/test/intl/date-format/utils.js
|
| @@ -25,12 +25,12 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Flags: --allow-natives-syntax
|
| +// Utility methods for date testing.
|
|
|
| -function test(v) {
|
| - return (v == null);
|
| +/**
|
| + * Returns date with timezone info forced into PDT.
|
| + */
|
| +function usePDT(dateString) {
|
| + var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007');
|
| + return removedTZ.replace(/\(.*?\)/, '(PDT)');
|
| }
|
| -assertFalse(test(true));
|
| -assertFalse(test(true));
|
| -assertTrue(test(null));
|
| -assertTrue(test(null));
|
|
|