diff options
Diffstat (limited to 'test/suite/intl402/ch13/13.2/13.2.js')
-rw-r--r-- | test/suite/intl402/ch13/13.2/13.2.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/test/suite/intl402/ch13/13.2/13.2.js b/test/suite/intl402/ch13/13.2/13.2.js index e58ac5dc4..59785479a 100644 --- a/test/suite/intl402/ch13/13.2/13.2.js +++ b/test/suite/intl402/ch13/13.2/13.2.js @@ -2,23 +2,16 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch13/13.2/13.2.js * @description Tests that the Intl.DateTimeFormat constructor has a length * property that equals 2. * @author: Roozbeh Pournader */ -var testcase = function() { - "use strict"; - - if (!Intl.DateTimeFormat.hasOwnProperty('length')) { +if (!Intl.DateTimeFormat.hasOwnProperty('length')) { $ERROR('Intl.DateTimeFormat has no length property'); - } +} - if (Intl.DateTimeFormat.length != 2) { +if (Intl.DateTimeFormat.length != 2) { $ERROR('Intl.DateTimeFormat.length is not 2.'); - } - - return true; } -runTestCase(testcase); + |