| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| The length property of encodeURIComponent does not have the attribute |
| description: Checking use hasOwnProperty, delete |
| if (encodeURIComponent.hasOwnProperty('length') !== true) { |
| $ERROR('#1: encodeURIComponent.hasOwnProperty(\'length\') === true. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); |
| delete encodeURIComponent.length; |
| if (encodeURIComponent.hasOwnProperty('length') !== false) { |
| $ERROR('#2: delete encodeURIComponent.length; encodeURIComponent.hasOwnProperty(\'length\') === false. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); |
| if (encodeURIComponent.length === undefined) { |
| $ERROR('#3: delete encodeURIComponent.length; encodeURIComponent.length !== undefined'); |