Index: test/intl/date-format/utils.js |
diff --git a/test/mjsunit/array-push-non-smi-value.js b/test/intl/date-format/utils.js |
similarity index 87% |
copy from test/mjsunit/array-push-non-smi-value.js |
copy to test/intl/date-format/utils.js |
index 460dd2a911e88a592c221f9d3426ff69b14e0e9d..535de15e9a2b4298cfc13d080b9fe620588f5b8e 100644 |
--- a/test/mjsunit/array-push-non-smi-value.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. |
-// Check pushes of non-SMI values. |
-var a = []; |
-function func() { |
- return a.push(0x40000000) > 60; |
-} |
+// Utility methods for date testing. |
-assertFalse(func()); |
-assertFalse(func()); |
-assertFalse(func()); |
+/** |
+ * Returns date with timezone info forced into PDT. |
+ */ |
+function usePDT(dateString) { |
+ var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007'); |
+ return removedTZ.replace(/\(.*?\)/, '(PDT)'); |
+} |