| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: The decodeURIComponent property has the attribute DontEnum |
| 6 |
es5id: 15.1.3.2_A5.5 |
| 7 |
es6id: 18.2.6.3 |
| 8 |
esid: sec-decodeuricomponent-encodeduricomponent |
| 9 |
description: Checking use propertyIsEnumerable, for-in |
| 10 |
---*/ |
| 11 |
|
| 12 |
//CHECK#1 |
| 13 |
if (this.propertyIsEnumerable('decodeURIComponent') !== false) { |
| 14 |
$ERROR('#1: this.propertyIsEnumerable(\'decodeURIComponent\') === false. Actual: ' + (this.propertyIsEnumerable('decodeURIComponent'))); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#2 |
| 18 |
var result = true; |
| 19 |
for (var p in this) { |
| 20 |
if (p === "decodeURIComponent") { |
| 21 |
result = false; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
if (result !== true) { |
| 26 |
$ERROR('#2: result = true; for (p in this) { if (p === "decodeURIComponent") result = false; } result === true;'); |
| 27 |
} |