| 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 = 'JavaObjectFieldOrMethod-001.js'; |
| 7 | |
| 8 | var SECTION = "JavaObject Field or method access"; |
| 9 | var VERSION = "1_4"; |
| 10 | var TITLE = "LiveConnect 3.0 JavaScript to Java Data Type Conversion " + |
| 11 | SECTION; |
| 12 | startTest(); |
| 13 | |
| 14 | var dt = new DT(); |
| 15 | |
| 16 | new TestCase( |
| 17 | "dt.amIAFieldOrAMethod", |
| 18 | String(dt.amIAFieldOrAMethod), |
| 19 | "FIELD!" ); |
| 20 | |
| 21 | new TestCase( |
| 22 | "dt.amIAFieldOrAMethod()", |
| 23 | String(dt.amIAFieldOrAMethod()), |
| 24 | "METHOD!" ); |
| 25 | |
| 26 | test(); |
| 27 |