Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: test/intl/date-format/utils.js

Issue 26467005: Revert "Fixing timezone issues with date-time/parse-* tests." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/intl/date-format/timezone-name.js ('k') | test/intl/testcfg.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)');
+}
« no previous file with comments | « test/intl/date-format/timezone-name.js ('k') | test/intl/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698