| 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | |
| 6 | gTestfile = 'in-001.js'; |
| 7 | |
| 8 | /** |
| 9 | File Name: in-001.js |
| 10 | Section: |
| 11 | Description: |
| 12 | |
| 13 | http://scopus.mcom.com/bugsplat/show_bug.cgi?id=196109 |
| 14 | |
| 15 | |
| 16 | Author: [email protected] |
| 17 | Date: 12 november 1997 |
| 18 | */ |
| 19 | var SECTION = "in-001"; |
| 20 | var VERSION = "JS1_3"; |
| 21 | var TITLE = "Regression test for 196109"; |
| 22 | var BUGNUMBER="196109"; |
| 23 | |
| 24 | startTest(); |
| 25 | writeHeaderToLog( SECTION + " "+ TITLE); |
| 26 | |
| 27 | o = {}; |
| 28 | o.foo = 'sil'; |
| 29 | |
| 30 | new TestCase( |
| 31 | SECTION, |
| 32 | "\"foo\" in o", |
| 33 | true, |
| 34 | "foo" in o ); |
| 35 | |
| 36 | test(); |