diff options
Diffstat (limited to 'test/suite/intl402/ch08/8.1/8.1.js')
-rw-r--r-- | test/suite/intl402/ch08/8.1/8.1.js | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/test/suite/intl402/ch08/8.1/8.1.js b/test/suite/intl402/ch08/8.1/8.1.js index 570f4e1fe..f9ee77111 100644 --- a/test/suite/intl402/ch08/8.1/8.1.js +++ b/test/suite/intl402/ch08/8.1/8.1.js @@ -2,37 +2,22 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch08/8.1/8.1.js * @description Tests that Intl object has proper constructors. */ -function testcase() { - "use strict"; - - var passed = false; - - if (Intl === undefined) { +if (Intl === undefined) { $ERROR('Intl object is undefined.'); - } - - if (typeof Intl.LocaleList !== 'function') { - $ERROR('Intl.LocaleList is not a function.') - } - - if (typeof Intl.Collator !== 'function') { - $ERROR('Intl.Collator is not a function.') - } +} - if (typeof Intl.NumberFormat !== 'function') { - $ERROR('Intl.NumberFormat is not a function.') - } +if (typeof Intl.Collator !== 'function') { + $ERROR('Intl.Collator is not a function.'); +} - if (typeof Intl.DateTimeFormat !== 'function') { - $ERROR('Intl.DateTimeFormat is not a function.') - } +if (typeof Intl.NumberFormat !== 'function') { + $ERROR('Intl.NumberFormat is not a function.'); +} - passed = true; - - return passed; +if (typeof Intl.DateTimeFormat !== 'function') { + $ERROR('Intl.DateTimeFormat is not a function.'); } -runTestCase(testcase);
\ No newline at end of file + |