js/src/tests/test262/ch13/13.0/S13_A10.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Function is a data
     6  *
     7  * @path ch13/13.0/S13_A10.js
     8  * @description Using function as a property of an object
     9  */
    11 function __ziggy__func(){return "ziggy stardust"}
    13 var __music_box={};
    15 __music_box.ziggy = __ziggy__func;
    17 //////////////////////////////////////////////////////////////////////////////
    18 //CHECK#
    19 if (typeof __music_box.ziggy !== "function") {
    20 	$ERROR('#1: typeof __music_box.ziggy === "function". Actual: typeof __music_box.ziggy ==='+typeof __music_box.ziggy);
    21 }
    22 //
    23 //////////////////////////////////////////////////////////////////////////////
    25 //////////////////////////////////////////////////////////////////////////////
    26 //CHECK#2
    27 if (__music_box.ziggy() !== "ziggy stardust") {
    28 	$ERROR('#2: __music_box.ziggy() === "ziggy stardust". Actual: __music_box.ziggy() ==='+__music_box.ziggy());
    29 }
    30 //
    31 //////////////////////////////////////////////////////////////////////////////

mercurial