aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js
diff options
context:
space:
mode:
authorBrian Terlson <brian.terlson@microsoft.com>2014-12-05 15:50:00 -0800
committerBrian Terlson <brian.terlson@microsoft.com>2014-12-07 15:33:09 -0800
commit2a74f0ec1b671f15fc7df3e1e294a65abc8ebac8 (patch)
tree7315f60ffd86513bf163c05e4252fab0810bfbe8 /test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js
parentda465e7399bcecd3c78fa1f5e898c9d52b4c7096 (diff)
Reorganize ./test
Diffstat (limited to 'test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js')
-rw-r--r--test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js b/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js
deleted file mode 100644
index f395a23fc..000000000
--- a/test/suite/intl402/ch12/12.3/12.3.2_FDT_1.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2012 Mozilla Corporation. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-es5id: 12.3.2_FDT_1
-description: Tests that format handles non-finite values correctly.
-author: Norbert Lindenberg
----*/
-
-var invalidValues = [NaN, Infinity, -Infinity];
-
-var format = new Intl.DateTimeFormat();
-
-invalidValues.forEach(function (value) {
- var error;
- try {
- var result = format.format(value);
- } catch (e) {
- error = e;
- }
- if (error === undefined) {
- $ERROR("Invalid value " + value + " was not rejected.");
- } else if (error.name !== "RangeError") {
- $ERROR("Invalid value " + value + " was rejected with wrong error " + error.name + ".");
- }
-});