author | sundar |
Wed, 06 May 2015 20:04:42 +0530 | |
changeset 30394 | 72a59e4dffea |
parent 26058 | 17acdbe290b2 |
permissions | -rw-r--r-- |
26058
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
1 |
/* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
2 |
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
4 |
* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
8 |
* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
13 |
* accompanied this code). |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
14 |
* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
18 |
* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
21 |
* questions. |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
22 |
*/ |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
23 |
|
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
24 |
/** |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
25 |
* 8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
26 |
* |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
27 |
* @test |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
28 |
* @run |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
29 |
*/ |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
30 |
|
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
31 |
function MyFunc() {} |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
32 |
|
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
33 |
MyFunc.prototype.foo = 42; |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
34 |
var obj = new MyFunc(); |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
35 |
Object.defineProperty(obj, "foo", { |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
36 |
value: "hello", |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
37 |
enumerable: false |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
38 |
}); |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
39 |
|
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
40 |
for (var p in obj) { |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
41 |
if (p == "foo") { |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
42 |
fail("'foo' is not expected here!"); |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
43 |
} |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
44 |
} |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
45 |
|
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
46 |
for each (var p in obj) { |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
47 |
if (p == "hello" || p == 42) { |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
48 |
fail("'foo' value is not expected here"); |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
49 |
} |
17acdbe290b2
8054503: test/script/external/test262/test/suite/ch12/12.6/12.6.4/12.6.4-2.js fails with tip
sundar
parents:
diff
changeset
|
50 |
} |