aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/08_Types/8.4_The_String_Type/S8.4_A4.js
blob: 8d9f7c4645f7bdac65063f70a0964f8ef3dc1f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
* @name: S8.4_A4;
* @section: 8.4;
* @assertion: Empty string variable has a length property;
* @description: Try read length property of empty string variable;
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S8.4_A4",

path: "TestCases/08_Types/8.4_The_String_Type/S8.4_A4.js",

assertion: "Empty string variable has a length property",

description: "Try read length property of empty string variable",

test: function testcase() {
   var __str = "";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__str.length !== 0) {
  $ERROR('#1: var __str = ""; __str.length === 0. Actual: ' + (__str));
}
//
//////////////////////////////////////////////////////////////////////////////

 }
});