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

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

Issue 18687003: Import intl test suite from v8-i18n project (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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.js ('k') | test/intl/date-format/wellformed-unsupported-locale.js » ('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/compiler/minus-zero.js b/test/intl/date-format/utils.js
similarity index 85%
copy from test/mjsunit/compiler/minus-zero.js
copy to test/intl/date-format/utils.js
index 6efceb54e36834c217732a7974f0c5d2a2cca132..f53862b6e33d9fe84941611f1fd0f02f2e907974 100644
--- a/test/mjsunit/compiler/minus-zero.js
+++ b/test/intl/date-format/utils.js
@@ -24,14 +24,14 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// limitations under the License.
Jakob Kummerow 2013/07/10 09:31:51 accidental copy/paste?
-// Flags: --allow-natives-syntax
+// Utility methods for date testing.
-function add(x, y) {
- return x + y;
+/**
+ * Returns date with timezone info forced into PDT.
+ */
+function usePDT(dateString) {
+ var removedTZ = dateString.replace(/(\+|-)\d{4}/, '-0007');
+ return removedTZ.replace(/\(.*?\)/, '(PDT)');
}
-
-assertEquals(0, add(0, 0));
-assertEquals(0, add(0, 0));
-%OptimizeFunctionOnNextCall(add);
-assertEquals(-0, add(-0, -0));
« no previous file with comments | « test/intl/date-format/timezone.js ('k') | test/intl/date-format/wellformed-unsupported-locale.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698