diff options
author | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
---|---|---|
committer | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
commit | b8c591008f671c8675d46e60c39704d9098811a7 (patch) | |
tree | 2209cc34ae5caca04afaeadbf7483c7d2c2d8065 /test/suite/intl402/ch13/13.2/13.2.1.js | |
parent | ccbb3ad3c0433311c7d4032441dcd0f0c24d1025 (diff) | |
download | test262-b8c591008f671c8675d46e60c39704d9098811a7.tar.gz |
Updated existing tests for June 2012 spec changes; removed LocaleList tests; fixed minor issues.
- Removed LocaleList tests; updated other tests so they don't depend on LocaleList.
- Updated tests so they no longer assume that the prototype object of a constructor is an instance of that constructor.
- Updated tests so that jshint is happy.
- Removed @path attributes from test files; updated comment in packager.py explaining why they're unnecessary.
- Removed "use strict" statements, which interfere with strict/non-strict testing.
- Removed testcase functions, which are unnecessary.
Diffstat (limited to 'test/suite/intl402/ch13/13.2/13.2.1.js')
-rw-r--r-- | test/suite/intl402/ch13/13.2/13.2.1.js | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/test/suite/intl402/ch13/13.2/13.2.1.js b/test/suite/intl402/ch13/13.2/13.2.1.js index c5a7b1967..4ec28c5d3 100644 --- a/test/suite/intl402/ch13/13.2/13.2.1.js +++ b/test/suite/intl402/ch13/13.2/13.2.1.js @@ -2,32 +2,25 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch13/13.2/13.2.1.js * @description Tests that the Intl.DateTimeFormat prototype object exists and * is not writable, enumerable, or configurable. * @author: Roozbeh Pournader */ -var testcase = function() { - "use strict"; +var desc; - var desc; - - if (!Intl.DateTimeFormat.hasOwnProperty('prototype')) { +if (!Intl.DateTimeFormat.hasOwnProperty('prototype')) { $ERROR('Intl.DateTimeFormat has no prototype property'); - } +} - desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, 'prototype'); - if (desc.writable === true) { +desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, 'prototype'); +if (desc.writable === true) { $ERROR('Intl.DateTimeFormat.prototype is writable.'); - } - if (desc.enumerable === true) { +} +if (desc.enumerable === true) { $ERROR('Intl.DateTimeFormat.prototype is enumerable.'); - } - if (desc.configurable === true) { +} +if (desc.configurable === true) { $ERROR('Intl.DateTimeFormat.prototype is configurable.'); - } - - return true; } -runTestCase(testcase); + |