diff options
Diffstat (limited to 'test/suite/intl402/ch11/11.2/11.2.1.js')
-rw-r--r-- | test/suite/intl402/ch11/11.2/11.2.1.js | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/test/suite/intl402/ch11/11.2/11.2.1.js b/test/suite/intl402/ch11/11.2/11.2.1.js index e5ceb08fc..6583bed08 100644 --- a/test/suite/intl402/ch11/11.2/11.2.1.js +++ b/test/suite/intl402/ch11/11.2/11.2.1.js @@ -2,31 +2,24 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch11/11.2/11.2.1.js * @description Tests that the Intl.Collator prototype object exists and * is not writable, enumerable, or configurable. */ -var testcase = function() { - "use strict"; +var desc; - var desc; - - if (!Intl.Collator.hasOwnProperty('prototype')) { +if (!Intl.Collator.hasOwnProperty('prototype')) { $ERROR('Intl.Collator has no prototype property'); - } +} - desc = Object.getOwnPropertyDescriptor(Intl.Collator, 'prototype'); - if (desc.writable === true) { +desc = Object.getOwnPropertyDescriptor(Intl.Collator, 'prototype'); +if (desc.writable === true) { $ERROR('Intl.Collator.prototype is writable.'); - } - if (desc.enumerable === true) { +} +if (desc.enumerable === true) { $ERROR('Intl.Collator.prototype is enumerable.'); - } - if (desc.configurable === true) { +} +if (desc.configurable === true) { $ERROR('Intl.Collator.prototype is configurable.'); - } - - return true; } -runTestCase(testcase); + |