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

Unified Diff: test/mjsunit/regress/regress-builtinbust-7.js

Issue 265513003: A new test needs to exit early on non-internationalization builds. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: slightly less verbose. Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-builtinbust-7.js
diff --git a/test/mjsunit/regress/regress-builtinbust-7.js b/test/mjsunit/regress/regress-builtinbust-7.js
index 7d883b86ceae37f5ed7db9b2f3074a37f2005782..a7c049e9086088f0825d06114a4557fce4efbb64 100644
--- a/test/mjsunit/regress/regress-builtinbust-7.js
+++ b/test/mjsunit/regress/regress-builtinbust-7.js
@@ -2,29 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function overflow() {
- return overflow() + 1;
-}
-Object.defineProperty = overflow;
-assertDoesNotThrow(function() { Intl.Collator.supportedLocalesOf("en"); });
+if ("Intl" in this) {
+ function overflow() {
+ return overflow() + 1;
+ }
+ Object.defineProperty = overflow;
+ assertDoesNotThrow(function() { Intl.Collator.supportedLocalesOf("en"); });
-var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0));
-var options = {
- weekday: "long",
- year: "numeric",
- month: "long",
- day: "numeric"
-};
+ var date = new Date(Date.UTC(2004, 12, 25, 3, 0, 0));
+ var options = {
+ weekday: "long",
+ year: "numeric",
+ month: "long",
+ day: "numeric"
+ };
-Object.apply = overflow;
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", options); });
+ Object.apply = overflow;
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", options); });
-var options_incomplete = {};
-assertDoesNotThrow(function() {
- date.toLocaleDateString("de-DE", options_incomplete);
-});
-assertTrue(options_incomplete.hasOwnProperty("year"));
+ var options_incomplete = {};
+ assertDoesNotThrow(function() {
+ date.toLocaleDateString("de-DE", options_incomplete);
+ });
+ assertTrue(options_incomplete.hasOwnProperty("year"));
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", undefined); });
-assertDoesNotThrow(function() { date.toLocaleDateString("de-DE"); });
-assertThrows(function() { date.toLocaleDateString("de-DE", null); }, TypeError);
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE", undefined); });
+ assertDoesNotThrow(function() { date.toLocaleDateString("de-DE"); });
+ assertThrows(function() { date.toLocaleDateString("de-DE", null); }, TypeError);
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698