Commit 95ba1af3 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[i18n] Make regression test work without i18n.

TBR=machenbach@chromium.org
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.chromium.org/2144263002
Cr-Commit-Position: refs/heads/master@{#37759}
parent 6530a16e
......@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: 0})", RangeError);
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: true})", RangeError);
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: null})", RangeError);
if (this.Intl) {
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: 0})", RangeError);
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: true})", RangeError);
assertThrows("Intl.DateTimeFormat('en-US', {timeZone: null})", RangeError);
var object = { toString: function() { return "UTC" } };
assertDoesNotThrow("Intl.DateTimeFormat('en-US', {timeZone: object})");
var object = { toString: function() { return "UTC" } };
assertDoesNotThrow("Intl.DateTimeFormat('en-US', {timeZone: object})");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment