diff --git a/tests/test-suite-compact-profile/06/06-002.js b/tests/test-suite-compact-profile/06/06-002.js new file mode 100644 index 000000000..053889190 --- /dev/null +++ b/tests/test-suite-compact-profile/06/06-002.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function c(arg) +{ + var obj = new Object(); + obj.print = function () { + f = arg; + }; + return obj; +} + +a = c(5); +b = c(6); + +a.print.toString = 7; + +assert(typeof a.print.toString !== typeof b.print.toString); diff --git a/tests/test-suite-compact-profile/06/06-003.js b/tests/test-suite-compact-profile/06/06-003.js new file mode 100644 index 000000000..9d57688a0 --- /dev/null +++ b/tests/test-suite-compact-profile/06/06-003.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = new Object(); + +function c(arg) +{ + var obj = new Object(); + obj.par = arg; + obj.print = function () { + return arg; + }; + return obj; +} + +var a = c(5); +var b = c(6); +assert(a.print() + b.par === 11); + diff --git a/tests/test-suite-compact-profile/06/06-004.js b/tests/test-suite-compact-profile/06/06-004.js new file mode 100644 index 000000000..715c28faf --- /dev/null +++ b/tests/test-suite-compact-profile/06/06-004.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var arg = 3; +function a() { + return 5 + arg; +} + +arg = 4; +var b = function () { + return 6 + arg; +}; + +arg = 5; +c = function e() { + return 7 + arg; +}; + +assert(a() + b() + c() === 33); diff --git a/tests/test-suite-compact-profile/06/06-005.js b/tests/test-suite-compact-profile/06/06-005.js new file mode 100644 index 000000000..43ff7c7d0 --- /dev/null +++ b/tests/test-suite-compact-profile/06/06-005.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "\u0410\u0411"; +var b = "\u0509\u0413"; + +assert(a < b); diff --git a/tests/test-suite-compact-profile/07/07.06/07.06.01/07.06.01-001.js b/tests/test-suite-compact-profile/07/07.06/07.06.01/07.06.01-001.js new file mode 100644 index 000000000..9a5942666 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.06/07.06.01/07.06.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var let = 1; diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-001.js b/tests/test-suite-compact-profile/07/07.09/07.09-001.js new file mode 100644 index 000000000..dda651d7e --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{ 1 +2 } 3 \ No newline at end of file diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-002.js b/tests/test-suite-compact-profile/07/07.09/07.09-002.js new file mode 100644 index 000000000..23d611c06 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-002.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + var a = 1, b = 2; + + return + a + b +} + +var v = test(); + +assert(v !== 3); + +assert(typeof v === "undefined") diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-003.js b/tests/test-suite-compact-profile/07/07.09/07.09-003.js new file mode 100644 index 000000000..5ddb05186 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-003.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = 4, c = 5; + +a = b +++c + +assert(a === 4 && c === 6); diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-004.js b/tests/test-suite-compact-profile/07/07.09/07.09-004.js new file mode 100644 index 000000000..8c8650258 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-004.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = new Object(); + +function c(arg) +{ + var obj = new Object(); + obj.par = arg; + obj.print = function () { + return arg; + } + return obj; +} + +var a, b = 1, d = 2, e = 3; + +a = b + c + (d + e).print() + +assert(a === 6); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-005.js b/tests/test-suite-compact-profile/07/07.09/07.09-005.js new file mode 100644 index 000000000..7e706a273 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = 4, c = 5; + +a = b +--c + +assert(a === 4 && c === 4); diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-006.js b/tests/test-suite-compact-profile/07/07.09/07.09-006.js new file mode 100644 index 000000000..8b4b8cd66 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-006.js @@ -0,0 +1,31 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mainloop = 1, cnt = 0; + +for (var i = 0; i < 10; ++i) +{ + for (var j = 0; j < 10; ++j) + { + if (j == 6) + { + continue + mainloop + } + + ++cnt; + } +} + +assert(cnt == 90); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-007.js b/tests/test-suite-compact-profile/07/07.09/07.09-007.js new file mode 100644 index 000000000..1993a4f11 --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-007.js @@ -0,0 +1,31 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mainloop = 1, cnt = 0; + +for (var i = 0; i < 10; ++i) +{ + for (var j = 0; j < 10; ++j) + { + if (j == 6) + { + break + mainloop + } + + ++cnt; + } +} + +assert(cnt == 60); diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-008.js b/tests/test-suite-compact-profile/07/07.09/07.09-008.js new file mode 100644 index 000000000..9c8991bca --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-008.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + var a = 10, b = 5; + var c = a + b + + return c; +} + +assert(test() == 15); diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-009.js b/tests/test-suite-compact-profile/07/07.09/07.09-009.js new file mode 100644 index 000000000..84c6c795a --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-009.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{ + var a, b = 3, c = 30; + a = b + c} + +assert (a == 33); diff --git a/tests/test-suite-compact-profile/07/07.09/07.09-010.js b/tests/test-suite-compact-profile/07/07.09/07.09-010.js new file mode 100644 index 000000000..ff79f83ad --- /dev/null +++ b/tests/test-suite-compact-profile/07/07.09/07.09-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (glob === 34); + +var glob = 34 diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-001.js b/tests/test-suite-compact-profile/08/08.01/08.01-001.js new file mode 100644 index 000000000..eb7fd64d3 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +assert(typeof (a) === "undefined"); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-002.js b/tests/test-suite-compact-profile/08/08.01/08.01-002.js new file mode 100644 index 000000000..1e046d84f --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {}; + +asssert(typeof (o.empty) === "undefined"); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-003.js b/tests/test-suite-compact-profile/08/08.01/08.01-003.js new file mode 100644 index 000000000..262266d29 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = null; + +assert(a == b); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-004.js b/tests/test-suite-compact-profile/08/08.01/08.01-004.js new file mode 100644 index 000000000..ec014e7d9 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +assert(!a); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-005.js b/tests/test-suite-compact-profile/08/08.01/08.01-005.js new file mode 100644 index 000000000..8b11b47c2 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = foo(); + +assert(typeof (a) === "undefined"); + +function foo() { +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-006.js b/tests/test-suite-compact-profile/08/08.01/08.01-006.js new file mode 100644 index 000000000..d44565515 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof (void 0) === "undefined"); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-007.js b/tests/test-suite-compact-profile/08/08.01/08.01-007.js new file mode 100644 index 000000000..2dcfb5bc5 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(undefined === void 0); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-008.js b/tests/test-suite-compact-profile/08/08.01/08.01-008.js new file mode 100644 index 000000000..3b9458e74 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x; +assert(x === void 0); diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-009.js b/tests/test-suite-compact-profile/08/08.01/08.01-009.js new file mode 100644 index 000000000..81a52d6b2 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-009.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x; +assert(test1() === void 0); + +function test1(x) { + return x; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/08/08.01/08.01-010.js b/tests/test-suite-compact-profile/08/08.01/08.01-010.js new file mode 100644 index 000000000..5495fa118 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.01/08.01-010.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(test()); + +function test(arg) +{ + if (typeof (arg) === "undefined") + return 1; + else + return 0; +} diff --git a/tests/test-suite-compact-profile/08/08.02/08.02-001.js b/tests/test-suite-compact-profile/08/08.02/08.02-001.js new file mode 100644 index 000000000..0e0e39527 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.02/08.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null; diff --git a/tests/test-suite-compact-profile/08/08.02/08.02-002.js b/tests/test-suite-compact-profile/08/08.02/08.02-002.js new file mode 100644 index 000000000..947aeea06 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.02/08.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof null == 'object'); diff --git a/tests/test-suite-compact-profile/08/08.03/08.03-001.js b/tests/test-suite-compact-profile/08/08.03/08.03-001.js new file mode 100644 index 000000000..836c6e0a2 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.03/08.03-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +assert(a); + diff --git a/tests/test-suite-compact-profile/08/08.03/08.03-002.js b/tests/test-suite-compact-profile/08/08.03/08.03-002.js new file mode 100644 index 000000000..23278d40c --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.03/08.03-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(!a); + diff --git a/tests/test-suite-compact-profile/08/08.03/08.03-003.js b/tests/test-suite-compact-profile/08/08.03/08.03-003.js new file mode 100644 index 000000000..75c73dc22 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.03/08.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(false == true)); diff --git a/tests/test-suite-compact-profile/08/08.03/08.03-004.js b/tests/test-suite-compact-profile/08/08.03/08.03-004.js new file mode 100644 index 000000000..5da277901 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.03/08.03-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(false === true)); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-001.js b/tests/test-suite-compact-profile/08/08.04/08.04-001.js new file mode 100644 index 000000000..4601c43fe --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = ''; +assert(typeof a == "string"); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-003.js b/tests/test-suite-compact-profile/08/08.04/08.04-003.js new file mode 100644 index 000000000..5802ee9ec --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = "test"; +assert(str.constructor === String); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-004.js b/tests/test-suite-compact-profile/08/08.04/08.04-004.js new file mode 100644 index 000000000..dfec7ef3c --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var s = 'hello'; +assert(s[0] == 'h'); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-005.js b/tests/test-suite-compact-profile/08/08.04/08.04-005.js new file mode 100644 index 000000000..4d6f714a0 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var s = 'hello'; +assert(s[5] == undefined); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-006.js b/tests/test-suite-compact-profile/08/08.04/08.04-006.js new file mode 100644 index 000000000..ed8e83338 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = 'ABC'; +var strObj = new String('ABC'); +assert(str.constructor === strObj.constructor); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-007.js b/tests/test-suite-compact-profile/08/08.04/08.04-007.js new file mode 100644 index 000000000..288c70d11 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = 'ABC'; +var strObj = new String('ABC'); +assert(str == strObj); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-008.js b/tests/test-suite-compact-profile/08/08.04/08.04-008.js new file mode 100644 index 000000000..6af48e971 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-008.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = 'ABC'; +var strObj = new String('ABC'); + +assert(str !== strObj); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-009.js b/tests/test-suite-compact-profile/08/08.04/08.04-009.js new file mode 100644 index 000000000..bebf1bf19 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-009.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String(""); +var strObj_ = new String(); + +assert(str.constructor === strObj.constructor); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-010.js b/tests/test-suite-compact-profile/08/08.04/08.04-010.js new file mode 100644 index 000000000..4aee58390 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-010.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String(""); +var strObj_ = new String(); + +assert(str.constructor === strObj_.constructor); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-011.js b/tests/test-suite-compact-profile/08/08.04/08.04-011.js new file mode 100644 index 000000000..ad4b0b9b4 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-011.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String(""); +var strObj_ = new String(); + +assert(str == strObj); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-012.js b/tests/test-suite-compact-profile/08/08.04/08.04-012.js new file mode 100644 index 000000000..ecea17f44 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-012.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String(""); +var strObj_ = new String(); + +assert(str !== strObj); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-013.js b/tests/test-suite-compact-profile/08/08.04/08.04-013.js new file mode 100644 index 000000000..2c77d7828 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-013.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String; + +assert(str.constructor === strObj.constructor); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-014.js b/tests/test-suite-compact-profile/08/08.04/08.04-014.js new file mode 100644 index 000000000..1eee8c7ed --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-014.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String; + +assert(str == strObj); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-015.js b/tests/test-suite-compact-profile/08/08.04/08.04-015.js new file mode 100644 index 000000000..62d37e9a1 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-015.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String; + +assert(str !== strObj); diff --git a/tests/test-suite-compact-profile/08/08.04/08.04-016.js b/tests/test-suite-compact-profile/08/08.04/08.04-016.js new file mode 100644 index 000000000..07856c56e --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.04/08.04-016.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var str = ""; +var strObj = new String; + +assert(typeof str != typeof strObj); diff --git a/tests/test-suite-compact-profile/08/08.05/08.05-001.js b/tests/test-suite-compact-profile/08/08.05/08.05-001.js new file mode 100644 index 000000000..3d11a7596 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.05/08.05-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = 0x3e7; +assert(a == 999); diff --git a/tests/test-suite-compact-profile/08/08.05/08.05-002.js b/tests/test-suite-compact-profile/08/08.05/08.05-002.js new file mode 100644 index 000000000..a70cd2fae --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.05/08.05-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof -Infinity == 'number'); diff --git a/tests/test-suite-compact-profile/08/08.05/08.05-003.js b/tests/test-suite-compact-profile/08/08.05/08.05-003.js new file mode 100644 index 000000000..2ef484aad --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.05/08.05-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0 > -Infinity); diff --git a/tests/test-suite-compact-profile/08/08.12/08.12.02/08.12.02-001.js b/tests/test-suite-compact-profile/08/08.12/08.12.02/08.12.02-001.js new file mode 100644 index 000000000..c2e888ba2 --- /dev/null +++ b/tests/test-suite-compact-profile/08/08.12/08.12.02/08.12.02-001.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var prot = { + b: 3 +}; + +function Custom() { +} + +Custom.prototype = prot; + +var obj = new Custom(); + +assert(obj.b === 3); diff --git a/tests/test-suite-compact-profile/10/10.03/10.03.01/10.03.01-001.js b/tests/test-suite-compact-profile/10/10.03/10.03.01/10.03.01-001.js new file mode 100644 index 000000000..87f4cb81f --- /dev/null +++ b/tests/test-suite-compact-profile/10/10.03/10.03.01/10.03.01-001.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = 10; + +function foo() { + var b = 20; + + assert(a + b === 30); +} + +foo(); diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-001.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-001.js new file mode 100644 index 000000000..1991f571e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-001.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + b: 5 +}; + +assert(a.b === 5); + diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-002.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-002.js new file mode 100644 index 000000000..716eaea8b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-002.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + "b": 5 +}; + +assert(a.b === 5); + diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-003.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-003.js new file mode 100644 index 000000000..f22ae9b58 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-003.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + 10: 5 +}; + +assert(a[10] === 5); + diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-004.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-004.js new file mode 100644 index 000000000..705ebcae7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-004.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + 10.25: 5 +}; + +assert(a[10.25] === 5); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-005.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-005.js new file mode 100644 index 000000000..79f2d4f65 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + prop1: 1, + prop2: 2 +}; + +assert(a.prop1 === 1 && a.prop2 === 2); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-006.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-006.js new file mode 100644 index 000000000..958cff8e4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + get a() { + return 3; + } +}; + +assert(a.a === 3); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-007.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-007.js new file mode 100644 index 000000000..f2af96bcb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-007.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + _a: 3, + get a() { + return this._a; + } +}; + +a._a = 5; + +assert(a.a === 5); + diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-008.js b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-008.js new file mode 100644 index 000000000..90146b69b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.05/11.01.05-008.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + _a: 3, + get a() { + return this._a; + }, + set a(newa) { + this._a = newa; + } + +}; + +a.a = 5; + +assert(a.a === 5); + diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-001.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-001.js new file mode 100644 index 000000000..d5b4d1485 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-001.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = [1, 2, 4]; +var cnt = 0; + +for (var i = (0 in a) ? 1 : 2; i < 10; ++i) +{ + ++cnt; +} + +assert(cnt == 9); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-002.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-002.js new file mode 100644 index 000000000..25a1254fa --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +assert(a + b === (a + b)); diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-003.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-003.js new file mode 100644 index 000000000..f95c37507 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2; +var b = 3; + +assert((a) + (b) === (a + b)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-004.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-004.js new file mode 100644 index 000000000..0aff93894 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-004.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = { + n: Number, + s: String +}; +b = { + n: Number, + s: String +}; +a.n = 1; +b.n = 2; +a.s = "qwe"; +b.s = "rty"; + +assert(((a).n + (b).n === 3) && ((a).s + (b).s === "qwerty")); diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-005.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-005.js new file mode 100644 index 000000000..9e97fa14d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = { + n: Number, + s: String +} + +assert(delete(a.n) === true); diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-006.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-006.js new file mode 100644 index 000000000..721491741 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-006.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a = { + n: Number, + s: String +} + +assert(typeof (a.property) === "undefined"); diff --git a/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-009.js b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-009.js new file mode 100644 index 000000000..57f08c86b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.01/11.01.06/11.01.06-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof (a) === "undefined"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-001.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-001.js new file mode 100644 index 000000000..8e1c6896d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "name", value: "1"}; + +assert(a.name !== "nameeeeeeeeeee"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-002.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-002.js new file mode 100644 index 000000000..2a03054de --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "name", value: "1"}; +var b = {name: "b", value: "1"}; + +assert((a.name == b.name) || (a.value == b.value)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-007.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-007.js new file mode 100644 index 000000000..7356e33c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "a", value: "1"}; +var b = {name: "b", value: "1"}; +assert(plus(a, b) !== 2) + +function plus(a, b) +{ + return a.value + b.value; +} diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-008.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-008.js new file mode 100644 index 000000000..877160847 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-008.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "a", value: "1"}; +var b = {name: "b", value: "1"}; + +assert(isNaN(plus(a, b))); + +function plus(a, b) +{ + return a.value * b.name; +} diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-009.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-009.js new file mode 100644 index 000000000..b3b2314e8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-009.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "a", value: "1"}; +var b = {name: "b", value: "1"}; + +assert(plus(a, b) === "11"); + +function plus(a, b) +{ + return a.value + b.value; +} diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-010.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-010.js new file mode 100644 index 000000000..35008c1da --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-010.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "a", value: "1"}; +var b = {name: "b", value: 1}; + +assert(plus(a, b) === "11"); + +function plus(a, b) +{ + return a.value + b.value; +} diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-011.js b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-011.js new file mode 100644 index 000000000..b865d9049 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.01/11.02.01-011.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: "a", value: 1}; +var b = {name: "b", value: 1}; + +assert(plus(a, b) === 2); + +function plus(a, b) +{ + return a.value + b.value; +} diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-001.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-001.js new file mode 100644 index 000000000..7e93297d4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-001.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +var animal = new Animal("animal"); +assert(animal.name === "animal"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-002.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-002.js new file mode 100644 index 000000000..5e6dded6d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +var animal = new Animal("animal"); +assert(animal.name == "animal"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-003.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-003.js new file mode 100644 index 000000000..57c141085 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-003.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +var animal = new Animal("animal"); +assert(animal.name != "insect"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-004.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-004.js new file mode 100644 index 000000000..cc5aea0c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-004.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +var animal = new Animal("animal"); +assert(animal.someparameter != "insect"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-005.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-005.js new file mode 100644 index 000000000..d737502bf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-005.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +var animal = new Animal("animal"); +assert(animal[1] != "animal"); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-006.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-006.js new file mode 100644 index 000000000..dd2086d4c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-006.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true + if (name == "bird") + { + this.canFly = true; + } +} + +var animal = new Animal("animal"); +var bird = new Animal("bird"); +assert(animal.canFly !== bird.canFly); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-007.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-007.js new file mode 100644 index 000000000..0bcfb3c95 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-007.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true + if (name == "bird") + { + this.canFly = true; + } +} + +var animal = new Animal("animal"); +var bird = new Animal("bird"); +assert(animal.canFly == animal.name); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-008.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-008.js new file mode 100644 index 000000000..d332c7edf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-008.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Animal(name) +{ + this.name = name + this.canWalk = true +} + +assert(animal.canWalk); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-009.js b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-009.js new file mode 100644 index 000000000..59053109c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.02/11.02.02-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {}; +a.b = true; +assert(typeof a == "object" && a.b == 1); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-006.js b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-006.js new file mode 100644 index 000000000..9db8c5f44 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {}; +a.toString(); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-007.js b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-007.js new file mode 100644 index 000000000..a2c88bf24 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-007.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() +{ + return 1; +} +assert(foo() === 1); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-008.js b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-008.js new file mode 100644 index 000000000..1ecef01ef --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-008.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + foo: function () + { + return 1; + } +} + +assert(a.foo() === 1); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-017.js b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-017.js new file mode 100644 index 000000000..acaf7ea80 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-017.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = { + field: Number, + foo: function () { + this.field++; + } +} + +obj.field = 3; +obj.foo(); + +assert(obj.field === 4); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-021.js b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-021.js new file mode 100644 index 000000000..08ed73d2e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.03/11.02.03-021.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = foo(); +function foo() +{ + return a; +} + +assert(b === 1); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-016.js b/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-016.js new file mode 100644 index 000000000..82724718d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-016.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function f_arg() { +} + +f_arg(x=1,x); diff --git a/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-019.js b/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-019.js new file mode 100644 index 000000000..dc0340401 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.02/11.02.04/11.02.04-019.js @@ -0,0 +1,41 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function f_arg() { +} + + +var x = function () { + throw "x"; +}; +var y = function () { + throw "y"; +}; +try +{ + f_arg(x(), y()); + assert(false); +} +catch (e) +{ + if (e === "y") + { + assert(false); + } else { + if (e !== "x") + { + assert(false); + } + } +} diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-005.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-005.js new file mode 100644 index 000000000..75b94eb20 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; + +assert((a++ === 1) && (a === 2)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-006.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-006.js new file mode 100644 index 000000000..a2fe4b0b2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-006.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = false; + +assert((a++ === 1) && (b++ === +0) && (a === 2) && (b === 1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-007.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-007.js new file mode 100644 index 000000000..f2fc1e73f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-007.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return 1; + } +} + +assert((a++ === 1) && (a === 2)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-008.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-008.js new file mode 100644 index 000000000..b74469746 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; + +assert((a++ == +0) && (a === 1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-009.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-009.js new file mode 100644 index 000000000..d65d95fff --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; + +assert(isNaN(a++) && isNaN(a)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-010.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-010.js new file mode 100644 index 000000000..6036bbbe0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; + +assert((a++ === 1) && (a === 2)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-011.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-011.js new file mode 100644 index 000000000..9b43cb48a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "blah"; +assert ( isNaN(a++) && isNaN(a) ); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-012.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-012.js new file mode 100644 index 000000000..8c57b1473 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-012.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1e3"; + +assert((a++ === 1e3) && (a === 1001)); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-013.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-013.js new file mode 100644 index 000000000..364752899 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = ""; +assert((a++ === 0) && (a === 1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-014.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-014.js new file mode 100644 index 000000000..d06bb256b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = " "; +assert((a++ === 0) && (a === 1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-015.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-015.js new file mode 100644 index 000000000..b01851aab --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-015.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "Infinity"; + +assert((a++ === Infinity) && (a === Infinity)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-016.js b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-016.js new file mode 100644 index 000000000..f3051edb5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.01/11.03.01-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "0xa"; +assert((a++ === 0xa) && (a === 0xb)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-005.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-005.js new file mode 100644 index 000000000..5d256469c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +assert((a-- === 1) && (a === 0)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-006.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-006.js new file mode 100644 index 000000000..26a4e58b2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = false; +assert((a-- === 1) && (b-- === +0) && (a === 0) && (b === -1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-007.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-007.js new file mode 100644 index 000000000..4748c4f83 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return 1; + } +} + +assert((a-- === 1) && (a === 0)); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-008.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-008.js new file mode 100644 index 000000000..ff583c5da --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert((a-- == +0) && (a === -1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-009.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-009.js new file mode 100644 index 000000000..b8ba3b82b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; +assert(isNaN(a--) && isNaN(a)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-010.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-010.js new file mode 100644 index 000000000..fbca080f0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +assert((a-- === 1) && (a === 0)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-011.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-011.js new file mode 100644 index 000000000..c52531aef --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "blah"; +assert(isNaN(a--) && isNaN(a)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-012.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-012.js new file mode 100644 index 000000000..d67f57773 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1e3"; +assert((a-- === 1e3) && (a === 999)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-013.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-013.js new file mode 100644 index 000000000..46f0b7e0b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = ""; +assert((a-- === 0) && (a === -1)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-014.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-014.js new file mode 100644 index 000000000..1263c21b5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-014.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = " "; + +assert((a-- === 0) && (a === -1)); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-015.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-015.js new file mode 100644 index 000000000..c3b6dc1bc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "Infinity"; +assert((a-- === Infinity) && (a === Infinity)); diff --git a/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-016.js b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-016.js new file mode 100644 index 000000000..f2ca705ca --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.03/11.03.02/11.03.02-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "0xa"; +assert((a-- === 0xa) && (a === 9)); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-001.js new file mode 100644 index 000000000..ad3450a76 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +x = 42; + +assert ((delete x) == true); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-002.js new file mode 100644 index 000000000..121064731 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var y = 43; + +assert((delete y) == false && y == 43); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-003.js new file mode 100644 index 000000000..81800b1de --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var y = 43; + +assert((delete Math.PI) == false); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-004.js new file mode 100644 index 000000000..9d839cd70 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-004.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var myobj = { + h: 4, + k: 5 +}; + +assert((delete myobj.h) == true && myobj.h == undefined); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-005.js new file mode 100644 index 000000000..655680fb9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + myobj = { + h: 4, + k: 5 + }; + +assert ((delete myobj) == true); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-006.js new file mode 100644 index 000000000..fd9394f28 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-006.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Foo() { +} +Foo.prototype.bar = 42; +var foo = new Foo(); +if (!(delete foo.bar)) + assert(false) + +if (foo.bar != 42) + assert(false) + +if (!(delete Foo.prototype.bar)) + assert(false) diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-007.js new file mode 100644 index 000000000..ff05bcf6c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-007.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var fruits = ['apple', 'banana', 'kiwi', 'pineapple']; + +delete fruits[3]; + +assert(!(3 in fruits) && fruits.length == 4); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-008.js new file mode 100644 index 000000000..0f67de37c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-008.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function x() { +} + +assert((delete x) == false && typeof x == "function"); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-009.js new file mode 100644 index 000000000..d9ce53c63 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +this.prop = "prop"; + +assert((delete this.prop) == true); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-011.js new file mode 100644 index 000000000..ecac73ab4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-011.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test(arg) +{ + if ((delete arg) == false) + return 0; + else + return 1; +} + +assert(test("str")); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-012.js new file mode 100644 index 000000000..88caead22 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-012.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +this.test = function (arg) +{ + return 1; +} + +assert((delete test) == true); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-013.js new file mode 100644 index 000000000..f85870df1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-013.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +eval('var foo = 1;'); +assert((delete foo) == true && typeof foo == "undefined"); + diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-017.js b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-017.js new file mode 100644 index 000000000..c46b3e2dc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.01/11.04.01-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((delete i_dont_exist) == true); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-001.js new file mode 100644 index 000000000..ac1af61bf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = void(5 / 2); + +assert(a == undefined); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-002.js new file mode 100644 index 000000000..7f7f6d6ec --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.02/11.04.02-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = 1; + +var a = void(++b); + +assert(a == undefined && b == 2); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-001.js new file mode 100644 index 000000000..37f674803 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof 37 === 'number'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-002.js new file mode 100644 index 000000000..eabd3357b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof 37 === 'number' && + typeof 3.14 === 'number'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-003.js new file mode 100644 index 000000000..0007892d9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Math.LN2 === 'number' && + typeof Infinity === 'number' && + typeof NaN === 'number' && + typeof Number(1) === 'number'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-004.js new file mode 100644 index 000000000..8e357165d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof "" === 'string' && + typeof "str" === 'string'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-005.js new file mode 100644 index 000000000..671b031d9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof (typeof 1) === 'string' && + typeof String("str") === 'string'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-006.js new file mode 100644 index 000000000..0a87a3f7c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof true === 'boolean' && + typeof false === 'boolean'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-007.js new file mode 100644 index 000000000..027634cab --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Boolean(true) === 'boolean'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-008.js new file mode 100644 index 000000000..461151628 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof undefined === 'undefined' && + typeof smth === 'undefined'); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-009.js new file mode 100644 index 000000000..025b5bcb8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof {a: 1} === 'object' && + typeof [1, 2, 4] === 'object') \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-010.js new file mode 100644 index 000000000..abd3c0e4a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-010.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof new Date() === 'object' && + typeof new Boolean(true) === 'object' && + typeof new Number(1) === 'object' && + typeof new String("abc") === 'object') \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-011.js new file mode 100644 index 000000000..49948d3c3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (typeof function(){} === 'function') \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-012.js new file mode 100644 index 000000000..aa63b3a85 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (typeof Math.sin === 'function'); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-013.js new file mode 100644 index 000000000..546ef2fd4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof null === 'object'); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-016.js b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-016.js new file mode 100644 index 000000000..8bcfb9142 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.03/11.04.03-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof + 24 === 'number') \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-001.js new file mode 100644 index 000000000..41661bcf0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert(++a === 26); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-002.js new file mode 100644 index 000000000..98ad1e06d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25, b = -1; +; + +assert(++a === ++b + 26); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-004.js new file mode 100644 index 000000000..aff6241ea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert((++a) / 2 === 13); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-005.js new file mode 100644 index 000000000..1abccbdd4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-005.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert(++ + a === 26) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-006.js new file mode 100644 index 000000000..0633d38fe --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1.12; + +assert(++a === 2.12) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-007.js new file mode 100644 index 000000000..efd759862 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; + +assert(++a === 2); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-008.js new file mode 100644 index 000000000..adadacb41 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {}; + +assert(isNaN(++a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-009.js new file mode 100644 index 000000000..3bede12d4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; + +assert(isNaN(++a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-010.js new file mode 100644 index 000000000..7a9a97995 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; + +assert(++a === 1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-011.js new file mode 100644 index 000000000..72eccaa16 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abc"; + +assert(isNaN(++a)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-012.js new file mode 100644 index 000000000..8049cfc6c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.04/11.04.04-012.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = function () { +}; + +assert(isNaN(++a)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-001.js new file mode 100644 index 000000000..cbc5d2df6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert(--a === 24) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-002.js new file mode 100644 index 000000000..43684a52a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25, b = 1; +; + +assert(--a === --b + 24) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-004.js new file mode 100644 index 000000000..2ba6d9325 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert((--a) / 2 === 12) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-005.js new file mode 100644 index 000000000..7467036dc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-005.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 25; + +assert(-- + a === 24) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-006.js new file mode 100644 index 000000000..73dcaab43 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-006.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var eps = 0.000000001; +var a = 1.12; + +assert(--a >= 0.12 - eps && + a <= 0.12 + eps) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-007.js new file mode 100644 index 000000000..bda96f8a5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; + +assert(--a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-008.js new file mode 100644 index 000000000..dfe5dd3ab --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {}; + +assert(isNaN(--a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-009.js new file mode 100644 index 000000000..4d9b5a973 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; + +assert(isNaN(--a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-010.js new file mode 100644 index 000000000..cb61d1976 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; + +assert(--a === -1); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-011.js new file mode 100644 index 000000000..76cc106b5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abc"; + +assert(isNaN(--a)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-012.js new file mode 100644 index 000000000..fbd8fcede --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.05/11.04.05-012.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = function () { +}; + +assert(isNaN(--a)); diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-001.js new file mode 100644 index 000000000..9e955dcf6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +assert(+a === a) diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-002.js new file mode 100644 index 000000000..f064d00ae --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -1; +assert(+a === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-003.js new file mode 100644 index 000000000..14ba843ac --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-004.js new file mode 100644 index 000000000..374d921e4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "-1"; +assert(+a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-005.js new file mode 100644 index 000000000..181acfe40 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-006.js new file mode 100644 index 000000000..c16e6ab78 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(+a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-007.js new file mode 100644 index 000000000..10d7b437e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(0); +assert(+a === 0) ? 1 : 0; \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-008.js new file mode 100644 index 000000000..3df658749 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(1); +assert(+a === 1) diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-009.js new file mode 100644 index 000000000..134764f96 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(-1); +assert(+a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-010.js new file mode 100644 index 000000000..2c991758d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(true); +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-011.js new file mode 100644 index 000000000..8255421c7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(false); +assert(+a === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-012.js new file mode 100644 index 000000000..221570622 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("1"); +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-013.js new file mode 100644 index 000000000..6d3607dfa --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("-1"); +assert(+a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-014.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-014.js new file mode 100644 index 000000000..12beab98a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; +assert(isNaN(+a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-015.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-015.js new file mode 100644 index 000000000..f69fe3064 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert(+a === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-016.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-016.js new file mode 100644 index 000000000..83ab9ade6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = NaN; +assert(isNaN(+a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-017.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-017.js new file mode 100644 index 000000000..3efe25c27 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("qwerty"); +assert(isNaN(+a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-018.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-018.js new file mode 100644 index 000000000..7e5ac7320 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-018.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return 1; + } +} + +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-019.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-019.js new file mode 100644 index 000000000..6c408d0c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-019.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return "1"; + } +} + +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-020.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-020.js new file mode 100644 index 000000000..dbe790e3f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-020.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return -1; + } +} + +assert(+a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-021.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-021.js new file mode 100644 index 000000000..e05eb9925 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-021.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object; +a.valueOf = function () { + return true; +} + +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-022.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-022.js new file mode 100644 index 000000000..46d00e357 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-022.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return false; + } +} + +assert(+a === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-023.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-023.js new file mode 100644 index 000000000..ab8776909 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-023.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return "not a number"; + } +} + +assert(isNaN(+a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-024.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-024.js new file mode 100644 index 000000000..505ac6c9e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-024.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + member: Number +} + +assert(isNaN(+a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-025.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-025.js new file mode 100644 index 000000000..112cc5a2d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-025.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return null; + } +} +assert(+a === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-026.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-026.js new file mode 100644 index 000000000..e0da4ecdd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-026.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var array = [1, 2, 3, 4, 5]; +assert(isNaN(+array)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-027.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-027.js new file mode 100644 index 000000000..0d243fdef --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-027.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + toString: function () { + return "1" + } +} + +assert(+a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-028.js b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-028.js new file mode 100644 index 000000000..a5b69f98f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.06/11.04.06-028.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return "" + } +} + +assert(+a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-001.js new file mode 100644 index 000000000..36dd208b8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-002.js new file mode 100644 index 000000000..74d33bf95 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -1; +assert(-a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-003.js new file mode 100644 index 000000000..2c282b731 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-004.js new file mode 100644 index 000000000..f4a0a5efc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "-1"; +assert(-a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-005.js new file mode 100644 index 000000000..260200840 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-006.js new file mode 100644 index 000000000..3c874c178 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "0"; +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-007.js new file mode 100644 index 000000000..1cde7e155 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = ""; +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-008.js new file mode 100644 index 000000000..a02d270af --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-009.js new file mode 100644 index 000000000..2f6d8949d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-010.js new file mode 100644 index 000000000..6140692ab --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Infinity; +assert(-a === -Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-011.js new file mode 100644 index 000000000..faf6259ce --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -Infinity; +assert(-a === Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-012.js new file mode 100644 index 000000000..505d89c23 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; +assert(isNaN(-a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-013.js new file mode 100644 index 000000000..de6f7044f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert(-a === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-014.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-014.js new file mode 100644 index 000000000..5f28635c5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(1); +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-015.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-015.js new file mode 100644 index 000000000..8e3315d33 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(-1); +assert(-a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-016.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-016.js new file mode 100644 index 000000000..fd132e8e6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(0); +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-017.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-017.js new file mode 100644 index 000000000..df3f5d8e0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("1"); +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-018.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-018.js new file mode 100644 index 000000000..7887e131c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("-1"); +assert(-a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-019.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-019.js new file mode 100644 index 000000000..0f8c38020 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-019.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String(""); +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-020.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-020.js new file mode 100644 index 000000000..f7274cad2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(true); +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-021.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-021.js new file mode 100644 index 000000000..72d62d8c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-021.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(false); +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-022.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-022.js new file mode 100644 index 000000000..a26452ece --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = [1, 2, 3, 4, 5]; +assert(isNaN(-a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-023.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-023.js new file mode 100644 index 000000000..58f1eaa68 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-023.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return 1; + } +} +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-024.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-024.js new file mode 100644 index 000000000..86c6390bf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-024.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return -1; + } +} +assert(-a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-025.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-025.js new file mode 100644 index 000000000..8d41c5b5b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-025.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return true; + } +} +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-026.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-026.js new file mode 100644 index 000000000..0e2d84c3f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-026.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return false; + } +} +assert(-a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-027.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-027.js new file mode 100644 index 000000000..359ac29c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-027.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return null; + } +} +assert(-a === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-028.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-028.js new file mode 100644 index 000000000..ca73d4521 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-028.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return undefined; + } +} +assert(isNaN(-a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-029.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-029.js new file mode 100644 index 000000000..943b4e602 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-029.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + member: 1, + valueOf: function () { + return this.member; + } +} + +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-030.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-030.js new file mode 100644 index 000000000..c682f50e3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-030.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + member: 1, +} + +assert(isNaN(-a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-031.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-031.js new file mode 100644 index 000000000..5e397e919 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-031.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return "qwerty"; + } +} + +assert(isNaN(-a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-032.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-032.js new file mode 100644 index 000000000..32359e773 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-032.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = +0; + +assert(-a === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-033.js b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-033.js new file mode 100644 index 000000000..8de5aab49 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.07/11.04.07-033.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object; +a.toString = function () { + return "1"; +} + +assert(-a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-001.js new file mode 100644 index 000000000..9678c6c5c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert(~a === -1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-002.js new file mode 100644 index 000000000..fa52fd1bd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -1; +assert(~a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-003.js new file mode 100644 index 000000000..dd176717c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +assert(~a === -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-004.js new file mode 100644 index 000000000..8427efe46 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0x0001; +assert(~a === -0x0002) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-005.js new file mode 100644 index 000000000..72269b7ad --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = NaN; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-006.js new file mode 100644 index 000000000..15b39c796 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = +0; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-007.js new file mode 100644 index 000000000..a03de73d5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -0; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-008.js new file mode 100644 index 000000000..ba9e6c295 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = +Infinity; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-009.js new file mode 100644 index 000000000..72c810595 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -Infinity; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-010.js new file mode 100644 index 000000000..3d7138c67 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2 * 0x100000000; // to int32 -> 0 +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-011.js new file mode 100644 index 000000000..a5967bc0a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0x1fffffffe; // % 0x100000000 >= 0x10000000 +assert(~a === ~(0xfffffffe)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-012.js new file mode 100644 index 000000000..185cc9963 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0x110000000; // % 0x100000000 >= 0x10000000 +assert(~a === ~(0x10000000)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-013.js new file mode 100644 index 000000000..f9d3c9484 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0x1fffffff; // % 0x100000000 < 0x10000000 +assert(~a === ~(0x1fffffff)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-014.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-014.js new file mode 100644 index 000000000..b90477f7e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0xffff; // % 0x100000000 < 0x10000000 +assert(~a === -0x10000) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-015.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-015.js new file mode 100644 index 000000000..a5c128f3c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +assert(~a === -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-016.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-016.js new file mode 100644 index 000000000..38685ca4f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "Who cares?"; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-017.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-017.js new file mode 100644 index 000000000..71b02ea8f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +assert(~a === -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-018.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-018.js new file mode 100644 index 000000000..98325c420 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(~a === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-019.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-019.js new file mode 100644 index 000000000..d4f21c502 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-019.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return "0x001" + } +} +assert(~a === -0x002) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-020.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-020.js new file mode 100644 index 000000000..498d0cde1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-020.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return -0x01 + } +} +assert(~a === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-021.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-021.js new file mode 100644 index 000000000..1639a6b6b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-021.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return true + } +} +assert(~a === -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-022.js b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-022.js new file mode 100644 index 000000000..bcb1979bb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.08/11.04.08-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number(1); +assert(~a === -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-001.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-001.js new file mode 100644 index 000000000..5ac6cd632 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +assert(!a === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-002.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-002.js new file mode 100644 index 000000000..f2c3339fd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(!a === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-003.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-003.js new file mode 100644 index 000000000..07e9cea4b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; +assert(!a === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-004.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-004.js new file mode 100644 index 000000000..4db1af6e3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert(!a === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-005.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-005.js new file mode 100644 index 000000000..4db1af6e3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert(!a === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-006.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-006.js new file mode 100644 index 000000000..55a363dbe --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(+0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-007.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-007.js new file mode 100644 index 000000000..d2020fb80 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(-0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-008.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-008.js new file mode 100644 index 000000000..9c8a59d5c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(NaN) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-009.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-009.js new file mode 100644 index 000000000..22f05b763 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!("") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-010.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-010.js new file mode 100644 index 000000000..023496500 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!("anything") === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-011.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-011.js new file mode 100644 index 000000000..1be61c95f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object; +assert(!a === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-012.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-012.js new file mode 100644 index 000000000..e46140bc6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-012.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + valueOf: function () { + return false; + } +} +assert(!a === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-013.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-013.js new file mode 100644 index 000000000..345eeaab8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!true === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-014.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-014.js new file mode 100644 index 000000000..e19ad6bf9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!false === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-015.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-015.js new file mode 100644 index 000000000..3d24fa3ec --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(![] === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-016.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-016.js new file mode 100644 index 000000000..c68e86b24 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!0 === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-017.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-017.js new file mode 100644 index 000000000..8bf22cb6b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!1 === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-018.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-018.js new file mode 100644 index 000000000..645aa64fc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-018.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(-Infinity) === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-019.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-019.js new file mode 100644 index 000000000..220b417e5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!Infinity === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-020.js b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-020.js new file mode 100644 index 000000000..1182c4db3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.04/11.04.09/11.04.09-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(true); +assert(!a === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-001.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-001.js new file mode 100644 index 000000000..0afc2bf54 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 * 3 === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-002.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-002.js new file mode 100644 index 000000000..98c3a6da7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 3; +assert(2 * a === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-003.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-003.js new file mode 100644 index 000000000..98a27b851 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 3; +assert(a * 2 === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-004.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-004.js new file mode 100644 index 000000000..600e288f7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 3; +var b = 2; +assert(a * b === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-005.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-005.js new file mode 100644 index 000000000..5f08b9ab3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert((a = 1) * a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-006.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-006.js new file mode 100644 index 000000000..d4f14163b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert(a * (a = 1) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-007.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-007.js new file mode 100644 index 000000000..e15606ac5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2; +assert(a * + 3 === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-008.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-008.js new file mode 100644 index 000000000..b5a583d68 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * true === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-009.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-009.js new file mode 100644 index 000000000..75902bea0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * false === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-010.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-010.js new file mode 100644 index 000000000..09a44709b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false * false === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-011.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-011.js new file mode 100644 index 000000000..de444c115 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("2" * "3" === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-012.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-012.js new file mode 100644 index 000000000..5dc377b02 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("a" * "1") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-013.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-013.js new file mode 100644 index 000000000..36134d12d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("1" * "a") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-014.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-014.js new file mode 100644 index 000000000..048de421a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-015.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-015.js new file mode 100644 index 000000000..7871f0fc2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-016.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-016.js new file mode 100644 index 000000000..b40b6255e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * null) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-017.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-017.js new file mode 100644 index 000000000..4ba523769 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(null * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-018.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-018.js new file mode 100644 index 000000000..dc6a31957 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-018.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * 1 === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-019.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-019.js new file mode 100644 index 000000000..fdc480dd3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 * true === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-020.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-020.js new file mode 100644 index 000000000..6368f63d4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-020.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 * "3" === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-021.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-021.js new file mode 100644 index 000000000..b47c40f89 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-021.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("2" * 3 === 6) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-022.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-022.js new file mode 100644 index 000000000..17930bd43 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-022.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("a" * 1) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-023.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-023.js new file mode 100644 index 000000000..7300cad16 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-023.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(1 * "a") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-024.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-024.js new file mode 100644 index 000000000..7c77cff97 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-024.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-025.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-025.js new file mode 100644 index 000000000..80aea8cd5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-025.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * 1 === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-026.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-026.js new file mode 100644 index 000000000..a834f427e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-026.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(1 * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-027.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-027.js new file mode 100644 index 000000000..5a994b98c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-027.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * 1) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-028.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-028.js new file mode 100644 index 000000000..9431d559f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-028.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * "1" === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-029.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-029.js new file mode 100644 index 000000000..14ebe7412 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-029.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("1" * true === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-030.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-030.js new file mode 100644 index 000000000..9e5bd9551 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-030.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("1" * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-031.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-031.js new file mode 100644 index 000000000..32a7f665c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-031.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * "1") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-032.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-032.js new file mode 100644 index 000000000..e73bc5069 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-032.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("1" * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-033.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-033.js new file mode 100644 index 000000000..47c14bdb0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-033.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * "1" === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-034.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-034.js new file mode 100644 index 000000000..dcd7bf563 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-034.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(true * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-035.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-035.js new file mode 100644 index 000000000..a37c3013b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-035.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * true) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-036.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-036.js new file mode 100644 index 000000000..3b8158886 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-036.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-037.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-037.js new file mode 100644 index 000000000..0c42d3e81 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-037.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * true === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-038.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-038.js new file mode 100644 index 000000000..c3fa77947 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-038.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * Number.NaN) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-039.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-039.js new file mode 100644 index 000000000..9e20f5e2f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-039.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * +0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-040.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-040.js new file mode 100644 index 000000000..82c9286c6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-040.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * -0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-041.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-041.js new file mode 100644 index 000000000..83b5ecc3a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-041.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * Number.POSITIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-042.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-042.js new file mode 100644 index 000000000..c386d0cbf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-042.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * Number.NEGATIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-043.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-043.js new file mode 100644 index 000000000..0aaf2975c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-043.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * Number.MAX_VALUE) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-044.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-044.js new file mode 100644 index 000000000..b69948c06 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-044.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * Number.MIN_VALUE) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-045.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-045.js new file mode 100644 index 000000000..75aa45ace --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-045.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN * 1) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-046.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-046.js new file mode 100644 index 000000000..2671bc1bd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-046.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 * new Number(1) === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-047.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-047.js new file mode 100644 index 000000000..57a9ad21e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-047.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) * 1 === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-048.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-048.js new file mode 100644 index 000000000..24bae4f7e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-048.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) * new Number(1) === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-049.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-049.js new file mode 100644 index 000000000..c770e884f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-049.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) * new Boolean(true) === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-050.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-050.js new file mode 100644 index 000000000..ba290ab9e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-050.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) * new Boolean(true) === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-051.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-051.js new file mode 100644 index 000000000..ee079ce8d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-051.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true * new Boolean(true) === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-052.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-052.js new file mode 100644 index 000000000..a0b3e9fcc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-052.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) * true === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-053.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-053.js new file mode 100644 index 000000000..4ecf4c75e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-053.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) * new String("2") === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-054.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-054.js new file mode 100644 index 000000000..ff30567e6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-054.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * new Boolean(true) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-055.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-055.js new file mode 100644 index 000000000..6f8718797 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-055.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * true === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-056.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-056.js new file mode 100644 index 000000000..cd9da0f4b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-056.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * new Number(1) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-057.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-057.js new file mode 100644 index 000000000..127fddb54 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-057.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * 1 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-058.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-058.js new file mode 100644 index 000000000..c2807ebeb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-058.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * new String("1") === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-059.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-059.js new file mode 100644 index 000000000..a78884f77 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-059.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN({} * {}) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-060.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-060.js new file mode 100644 index 000000000..d5442fc5e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-060.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * new Number(2) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-061.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-061.js new file mode 100644 index 000000000..3c1304170 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-061.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(2) * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-062.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-062.js new file mode 100644 index 000000000..723bb6ec2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-062.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-063.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-063.js new file mode 100644 index 000000000..f7261fe52 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-063.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * new String("2") === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-064.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-064.js new file mode 100644 index 000000000..88a9b66e1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-064.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null * new Boolean(true) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-065.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-065.js new file mode 100644 index 000000000..757e71d72 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-065.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) * null === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-066.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-066.js new file mode 100644 index 000000000..a9fa9433e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-066.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new Boolean(true) * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-067.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-067.js new file mode 100644 index 000000000..09e46336e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-067.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * new Boolean(true)) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-068.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-068.js new file mode 100644 index 000000000..e9b101839 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-068.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * new String("1")) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-069.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-069.js new file mode 100644 index 000000000..8a86ede1a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-069.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new String("1") * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-070.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-070.js new file mode 100644 index 000000000..c96e970bc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-070.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new Number(1) * undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-071.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-071.js new file mode 100644 index 000000000..143762539 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-071.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined * new Number(1))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-072.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-072.js new file mode 100644 index 000000000..02227ada3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-072.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NEGATIVE_INFINITY * 0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-073.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-073.js new file mode 100644 index 000000000..5e954e5fa --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-073.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(0 * Number.NEGATIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-074.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-074.js new file mode 100644 index 000000000..51653cf33 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-074.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(0 * Number.POSITIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-075.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-075.js new file mode 100644 index 000000000..eb13fb533 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-075.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.POSITIVE_INFINITY * 0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-076.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-076.js new file mode 100644 index 000000000..39ac6e0f4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-076.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY * Number.POSITIVE_INFINITY === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-077.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-077.js new file mode 100644 index 000000000..c06201764 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-077.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY * Number.NEGATIVE_INFINITY === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-078.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-078.js new file mode 100644 index 000000000..ee895bbea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-078.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY * Number.POSITIVE_INFINITY === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-079.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-079.js new file mode 100644 index 000000000..f99edadee --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-079.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY * Number.NEGATIVE_INFINITY === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-080.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-080.js new file mode 100644 index 000000000..4d096544f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-080.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY * 1 === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-081.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-081.js new file mode 100644 index 000000000..2bada85dc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-081.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((-1) * Number.NEGATIVE_INFINITY === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-082.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-082.js new file mode 100644 index 000000000..b19a38f4c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-082.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((-1) * Number.POSITIVE_INFINITY === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-083.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-083.js new file mode 100644 index 000000000..e141a43c3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-083.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY * 1 === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-084.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-084.js new file mode 100644 index 000000000..445d90889 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-084.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE * 2 === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-085.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-085.js new file mode 100644 index 000000000..cb6391053 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-085.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 * Number.MAX_VALUE === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-086.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-086.js new file mode 100644 index 000000000..74f9b81ec --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-086.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((-1.5) * Number.MAX_VALUE === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-087.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-087.js new file mode 100644 index 000000000..7aa795362 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-087.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE * (-1.5) === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-088.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-088.js new file mode 100644 index 000000000..1698545b7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-088.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MIN_VALUE * (-0.5) === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-089.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-089.js new file mode 100644 index 000000000..0a82f9719 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-089.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0.1 * Number.MIN_VALUE === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-090.js b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-090.js new file mode 100644 index 000000000..9148fca8c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.01/11.05.01-090.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((Number.MAX_VALUE * 1.1) * 0.9 !== Number.MAX_VALUE * (1.1 * 0.9)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-001.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-001.js new file mode 100644 index 000000000..794b00b4e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(6 / 3 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-002.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-002.js new file mode 100644 index 000000000..e5b5673f6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 3; +assert(6 / a === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-003.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-003.js new file mode 100644 index 000000000..4628d03f3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6; +assert(a / 3 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-004.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-004.js new file mode 100644 index 000000000..c3a55a43c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6; +var b = 3; +assert(a / b === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-005.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-005.js new file mode 100644 index 000000000..e4e190be1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert((a = 1) / a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-006.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-006.js new file mode 100644 index 000000000..1f8aea5a5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +assert(a / (a = 1) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-007.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-007.js new file mode 100644 index 000000000..14db10ac7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6; +assert(a / + 3 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-008.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-008.js new file mode 100644 index 000000000..ac6dc7391 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true / true === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-009.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-009.js new file mode 100644 index 000000000..aabecc760 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false / true === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-010.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-010.js new file mode 100644 index 000000000..26a4600b5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true / false === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-011.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-011.js new file mode 100644 index 000000000..e6e566dfa --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("6" / "3" === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-012.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-012.js new file mode 100644 index 000000000..20845f33d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("a" / "3") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-013.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-013.js new file mode 100644 index 000000000..51b36885c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("6" / "a") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-014.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-014.js new file mode 100644 index 000000000..e7bc952af --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(null / null) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-015.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-015.js new file mode 100644 index 000000000..d6617bd49 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-016.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-016.js new file mode 100644 index 000000000..44b8293e0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / null) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-017.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-017.js new file mode 100644 index 000000000..a00e00879 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(null / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-018.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-018.js new file mode 100644 index 000000000..f6b2d5cf7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-018.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true / 1 === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-019.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-019.js new file mode 100644 index 000000000..97eddc0c3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 / true === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-020.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-020.js new file mode 100644 index 000000000..e1f46c40a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-020.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(6 / "2" === 3) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-021.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-021.js new file mode 100644 index 000000000..5c3c8284d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-021.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("6" / 2 === 3) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-022.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-022.js new file mode 100644 index 000000000..553820e33 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-022.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("a" / 2) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-023.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-023.js new file mode 100644 index 000000000..a4a566277 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-023.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(6 / "a") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-024.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-024.js new file mode 100644 index 000000000..751cb812f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-024.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 / null === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-025.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-025.js new file mode 100644 index 000000000..1dd6a18a3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-025.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / 1 === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-026.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-026.js new file mode 100644 index 000000000..88838313c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-026.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(1 / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-027.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-027.js new file mode 100644 index 000000000..32ff4b146 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-027.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / 1) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-028.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-028.js new file mode 100644 index 000000000..4534dd340 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-028.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true / "1" === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-029.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-029.js new file mode 100644 index 000000000..dc8e64b99 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-029.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("2" / true === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-030.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-030.js new file mode 100644 index 000000000..2835d6ac1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-030.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("2" / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-031.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-031.js new file mode 100644 index 000000000..ef5f6d96f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-031.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / "2") === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-032.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-032.js new file mode 100644 index 000000000..030383f3c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-032.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("2" / null === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-033.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-033.js new file mode 100644 index 000000000..bd9267451 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-033.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / "2" === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-034.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-034.js new file mode 100644 index 000000000..d27244198 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-034.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(true / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-035.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-035.js new file mode 100644 index 000000000..fff730130 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-035.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / true) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-036.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-036.js new file mode 100644 index 000000000..0fa378520 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-036.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(false / null) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-037.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-037.js new file mode 100644 index 000000000..e86713ff5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-037.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / true === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-038.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-038.js new file mode 100644 index 000000000..1fc273fb5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-038.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / Number.NaN) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-039.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-039.js new file mode 100644 index 000000000..d8fc98cf3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-039.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / +0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-040.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-040.js new file mode 100644 index 000000000..2b3a52e16 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-040.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / -0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-041.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-041.js new file mode 100644 index 000000000..e50f5a9d0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-041.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / Number.POSITIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-042.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-042.js new file mode 100644 index 000000000..55953b3ca --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-042.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / Number.NEGATIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-043.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-043.js new file mode 100644 index 000000000..8b4d170d1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-043.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / Number.MAX_VALUE) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-044.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-044.js new file mode 100644 index 000000000..2d2c44c25 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-044.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / Number.MIN_VALUE) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-045.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-045.js new file mode 100644 index 000000000..6d7e02c9b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-045.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN / 2) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-046.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-046.js new file mode 100644 index 000000000..deb8c2e39 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-046.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(6) / 3 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-047.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-047.js new file mode 100644 index 000000000..f11cbe7d3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-047.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(6 / new Number(3) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-048.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-048.js new file mode 100644 index 000000000..fbdff449e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-048.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(6) / new Number(3) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-049.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-049.js new file mode 100644 index 000000000..ce89f0e83 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-049.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(2) / new Boolean(true) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-050.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-050.js new file mode 100644 index 000000000..898b564a4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-050.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(false) / new Boolean(true) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-051.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-051.js new file mode 100644 index 000000000..4aa1d9999 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-051.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false / new Boolean(true) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-052.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-052.js new file mode 100644 index 000000000..dee2bd7f6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-052.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) / false === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-053.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-053.js new file mode 100644 index 000000000..105a1fad7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-053.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") / new Boolean(false) === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-054.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-054.js new file mode 100644 index 000000000..d0634e578 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-054.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(false) / new String("2") === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-055.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-055.js new file mode 100644 index 000000000..6d9b639e6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-055.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false / new String("2") === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-056.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-056.js new file mode 100644 index 000000000..d2d4141bd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-056.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") / new Number(1) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-057.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-057.js new file mode 100644 index 000000000..4730f518f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-057.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") / 1 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-058.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-058.js new file mode 100644 index 000000000..42e4d57ca --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-058.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("2") / new String("1") === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-059.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-059.js new file mode 100644 index 000000000..e6ca9a37f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-059.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN({} / {}) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-060.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-060.js new file mode 100644 index 000000000..a398758d1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-060.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / new Number(5) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-061.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-061.js new file mode 100644 index 000000000..735211493 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-061.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(5) / null === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-062.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-062.js new file mode 100644 index 000000000..be5ddc1b1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-062.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("5") / null === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-063.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-063.js new file mode 100644 index 000000000..084221a50 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-063.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / new String("5") === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-064.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-064.js new file mode 100644 index 000000000..123e7f758 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-064.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null / new Boolean(true) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-065.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-065.js new file mode 100644 index 000000000..ccfe19cb9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-065.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Boolean(true) / null === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-066.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-066.js new file mode 100644 index 000000000..f888502a3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-066.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new Boolean(true) / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-067.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-067.js new file mode 100644 index 000000000..18f780c7c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-067.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / new Boolean(true)) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-068.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-068.js new file mode 100644 index 000000000..b32f166ba --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-068.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / new String("5")) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-069.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-069.js new file mode 100644 index 000000000..855557546 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-069.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new String("5") / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-070.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-070.js new file mode 100644 index 000000000..c442e9e66 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-070.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(new Number(5) / undefined) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-071.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-071.js new file mode 100644 index 000000000..94659b0f9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-071.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined / new Number(5)) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-072.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-072.js new file mode 100644 index 000000000..e7aacbb24 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-072.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY / 0 === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-073.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-073.js new file mode 100644 index 000000000..71c23e8f6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-073.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0 / Number.NEGATIVE_INFINITY === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-074.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-074.js new file mode 100644 index 000000000..a8683ad88 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-074.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0 / Number.POSITIVE_INFINITY === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-075.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-075.js new file mode 100644 index 000000000..a91a96393 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-075.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY / 0 === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-076.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-076.js new file mode 100644 index 000000000..a113c0956 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-076.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.POSITIVE_INFINITY / Number.POSITIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-077.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-077.js new file mode 100644 index 000000000..3b53970ec --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-077.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-078.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-078.js new file mode 100644 index 000000000..f21b4f397 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-078.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-079.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-079.js new file mode 100644 index 000000000..5977a88ba --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-079.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-080.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-080.js new file mode 100644 index 000000000..6d4cbb6ee --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-080.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY / 2 === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-081.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-081.js new file mode 100644 index 000000000..096c724d5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-081.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 / Number.NEGATIVE_INFINITY === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-082.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-082.js new file mode 100644 index 000000000..c93bdd2d7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-082.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 / Number.POSITIVE_INFINITY === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-083.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-083.js new file mode 100644 index 000000000..69c7df3a9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-083.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY / 2 === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-084.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-084.js new file mode 100644 index 000000000..080491564 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-084.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(0 / 0) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-085.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-085.js new file mode 100644 index 000000000..686f31c1a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-085.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE / 0.5 === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-086.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-086.js new file mode 100644 index 000000000..36acd620f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-086.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE / Number.MAX_VALUE === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-087.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-087.js new file mode 100644 index 000000000..c747669f0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-087.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE / (-0.5) === Number.NEGATIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-088.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-088.js new file mode 100644 index 000000000..26a636dd7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-088.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MIN_VALUE / 2 === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-089.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-089.js new file mode 100644 index 000000000..0123aa893 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-089.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(2 / Number.MIN_VALUE === Number.POSITIVE_INFINITY) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-090.js b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-090.js new file mode 100644 index 000000000..90bf8785c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.02/11.05.02-090.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((1 / 2) / 4 !== 1 / (2 / 4)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-001.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-001.js new file mode 100644 index 000000000..7e0fcb0c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(NaN % 1)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-002.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-002.js new file mode 100644 index 000000000..b47baae05 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(100 % NaN)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-003.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-003.js new file mode 100644 index 000000000..92f2ee1c6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(NaN % NaN)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-004.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-004.js new file mode 100644 index 000000000..4fde9a8be --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-100 % 3 < 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-005.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-005.js new file mode 100644 index 000000000..73e52a555 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(100 % -3 > 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-006.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-006.js new file mode 100644 index 000000000..4d74bf2fb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-100 % -3 < 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-007.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-007.js new file mode 100644 index 000000000..169d36e24 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Infinity % 3)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-008.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-008.js new file mode 100644 index 000000000..4185bb26f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(-Infinity % 3)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-009.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-009.js new file mode 100644 index 000000000..7c71fde88 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(5 % 0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-010.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-010.js new file mode 100644 index 000000000..4b0bb2480 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Infinity % 0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-011.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-011.js new file mode 100644 index 000000000..723d25b54 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(5 % Infinity === 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-012.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-012.js new file mode 100644 index 000000000..45550feee --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0 % 5 === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-013.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-013.js new file mode 100644 index 000000000..db7d14039 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(-Infinity % Infinity)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-014.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-014.js new file mode 100644 index 000000000..b992c1d6c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-0 % 5 === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-015.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-015.js new file mode 100644 index 000000000..b3e820487 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(+0 % 5 === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-016.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-016.js new file mode 100644 index 000000000..1b64dd722 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-016.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 100; +var d = 10; +assert(n % d === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-017.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-017.js new file mode 100644 index 000000000..4d08417b9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-017.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 100.5; +var d = 10; +assert(n % d === 0.5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-018.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-018.js new file mode 100644 index 000000000..b90b55af7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-018.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 105; +var d = 10; +assert(n % d === 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-019.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-019.js new file mode 100644 index 000000000..a6df18cdb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-019.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 109.5; +var d = 5.5; +assert(n % d === 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-020.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-020.js new file mode 100644 index 000000000..e35a3a304 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-020.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 550; +var d = 5.5; +assert(n % d === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-021.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-021.js new file mode 100644 index 000000000..8a8fa3b6c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-021.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 100; +var d = new Boolean(true); +assert(n % d === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-022.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-022.js new file mode 100644 index 000000000..a687809c7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-022.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = 100; +var d = new Boolean(false); +assert(isNaN(n % d)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-023.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-023.js new file mode 100644 index 000000000..72e3bbdea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-023.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = "100"; +var d = ""; +assert(isNaN(n % d)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-024.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-024.js new file mode 100644 index 000000000..5d70e2552 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-024.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = { + valueOf: function () { + return 109.5; + } +} +var d = { + valueOf: function () { + return 5.5; + } +} +assert(n % d === 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-025.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-025.js new file mode 100644 index 000000000..42a1afc83 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-025.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = { + valueOf: function () { + return -Infinity; + } +} +var d = { + valueOf: function () { + return 0; + } +} +assert(isNaN(n % d)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-026.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-026.js new file mode 100644 index 000000000..7c7372ddd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-026.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(undefined % 1)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-027.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-027.js new file mode 100644 index 000000000..af397625b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-027.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(null % 1 === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-028.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-028.js new file mode 100644 index 000000000..ae63f00c7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-028.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(1 % null)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-029.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-029.js new file mode 100644 index 000000000..051b662d5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-029.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = new String("100"); +var d = new String("10"); +assert(n % d === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-030.js b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-030.js new file mode 100644 index 000000000..0dfc96f13 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.05/11.05.03/11.05.03-030.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var n = new Boolean(true); +var d = new String(""); +assert(isNaN(n % d)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-001.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-001.js new file mode 100644 index 000000000..a4081c9f2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "lirum "; +var b = "ipsum"; +assert(a + b == "lirum ipsum") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-002.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-002.js new file mode 100644 index 000000000..db1734585 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 12; +var b = "3"; +assert(a + b === "123") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-003.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-003.js new file mode 100644 index 000000000..b2c0c31cf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "12"; +var b = 3; +assert(a + b === "123") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-004.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-004.js new file mode 100644 index 000000000..d1b1a001c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 123; +var b = 456; +assert(a + b == 579) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-005.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-005.js new file mode 100644 index 000000000..380dc9029 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1; +assert(x + 1 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-006.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-006.js new file mode 100644 index 000000000..f8c04b8e9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var y = 1; +assert(1 + y === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-007.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-007.js new file mode 100644 index 000000000..1ef017ac4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) + 1 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-008.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-008.js new file mode 100644 index 000000000..96d3d9b4b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-008.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var objectx = new Object(); +var objecty = new Object(); +objectx.prop = 1; +objecty.prop = 1; +assert(objectx.prop + objecty.prop === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-009.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-009.js new file mode 100644 index 000000000..a67f3c9a7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 + new Number(1) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-010.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-010.js new file mode 100644 index 000000000..def8d8a18 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) + new Number(1) === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-011.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-011.js new file mode 100644 index 000000000..73220b14f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-011.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} +assert(object + 1 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-012.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-012.js new file mode 100644 index 000000000..f18a9cf7e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-012.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} +assert(1 + object === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-013.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-013.js new file mode 100644 index 000000000..b92237eac --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-013.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} +assert(object + "1" === "11") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-014.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-014.js new file mode 100644 index 000000000..4d4ac441a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-014.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return "1" + }, + toString: function () { + return 0 + } +} +assert("1" + object === "11") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-015.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-015.js new file mode 100644 index 000000000..0e26423a6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-015.js @@ -0,0 +1,33 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object1 = { + valueOf: function () { + return 1; + }, + toString: function () { + return 0; + } +} + +object2 = { + valueOf: function () { + return 1; + }, + toString: function () { + return 0; + } +} + +assert(object1 + object2 === 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-016.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-016.js new file mode 100644 index 000000000..1e889468a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-016.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = new Object() + +var str = new String() + +assert(object + str === "[object Object]") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-017.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-017.js new file mode 100644 index 000000000..72930a932 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-017.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = new Object() + +var b = 1 + +assert(object + b === "[object Object]1") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-018.js b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-018.js new file mode 100644 index 000000000..08197cbae --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.01/11.06.01-018.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = new String() + +var b = 1 + +assert(object + b === "1") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-001.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-001.js new file mode 100644 index 000000000..c62b7874d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 100; +var b = 20; +assert(a - b === 80) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-002.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-002.js new file mode 100644 index 000000000..701c5166f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -10; +var b = 50; +assert((a - b === -60) && (b - a === 60)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-003.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-003.js new file mode 100644 index 000000000..4d596d500 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -5; +var b = -100; +assert(a - b === 95) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-004.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-004.js new file mode 100644 index 000000000..67af31a72 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "string"; +var b = 10; +assert(isNaN(a - b) && isNaN(b - a)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-005.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-005.js new file mode 100644 index 000000000..ccc585ede --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1; +assert((x - 1 !== 0) || (1 - x !== 0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-006.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-006.js new file mode 100644 index 000000000..9efd53f9c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 - 1 === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-007.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-007.js new file mode 100644 index 000000000..532b7f234 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-007.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object1 = new Object(); +var object2 = new Object(); +object1.prop = 1; +object2.prop = 1; +assert(object1.prop - object2.prop === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-008.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-008.js new file mode 100644 index 000000000..4119ef671 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-008.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1; + }, + toString: function () { + return 0; + } +} +assert((object - 1 !== 0) || (1 - object !== 0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-009.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-009.js new file mode 100644 index 000000000..9e9914a7f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +assert(x - (x = 1) !== -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-010.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-010.js new file mode 100644 index 000000000..3a5aa9607 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true - true === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-011.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-011.js new file mode 100644 index 000000000..69082672b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(((new Number(1) - 1 !== 0) || (1 - new Number(1) !== 0))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-012.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-012.js new file mode 100644 index 000000000..c4354818a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new Number(1) - new Number(1) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-013.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-013.js new file mode 100644 index 000000000..44c1a0a83 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("1" - "1" === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-014.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-014.js new file mode 100644 index 000000000..72e24cbce --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((("1" - new String("1") !== 0) || (new String("1") - 1 !== 0))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-015.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-015.js new file mode 100644 index 000000000..8880e9662 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(new String("1") - new String("1") === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-016.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-016.js new file mode 100644 index 000000000..0d63f5f16 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("x" - "1") && isNaN("1" - "x")) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-017.js b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-017.js new file mode 100644 index 000000000..6b06d5255 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.02/11.06.02-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN("x" - 1) && isNaN(1 - "x")) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-001.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-001.js new file mode 100644 index 000000000..f0746c229 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +assert(a + b === b + a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-002.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-002.js new file mode 100644 index 000000000..048961780 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +obj = new Object; +assert(isNaN(obj + NaN) && isNaN(NaN + obj)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-003.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-003.js new file mode 100644 index 000000000..737d09f47 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +obj = new Object(); +assert(isNaN(obj - NaN) && isNaN(NaN - obj)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-004.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-004.js new file mode 100644 index 000000000..32de0c2d8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Infinity + -Infinity)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-005.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-005.js new file mode 100644 index 000000000..4cae6c41f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((Infinity + Infinity === Infinity) && (-Infinity + -Infinity === -Infinity)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-006.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-006.js new file mode 100644 index 000000000..13c9fbf94 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Infinity + 1 === Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-007.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-007.js new file mode 100644 index 000000000..912cb510d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-0 + -0 === -0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-008.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-008.js new file mode 100644 index 000000000..20dc3571c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((+0 + +0 === +0) && (+0 + -0 === +0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-009.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-009.js new file mode 100644 index 000000000..1eff658a1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(0 + 5 === 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-010.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-010.js new file mode 100644 index 000000000..8a1d72c62 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +assert(2 + -2 === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-011.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-011.js new file mode 100644 index 000000000..20dc3571c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((+0 + +0 === +0) && (+0 + -0 === +0)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-012.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-012.js new file mode 100644 index 000000000..fd62d3a0a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assertf(-Number.MAX_VALUE - Number.MAX_VALUE === -Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-013.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-013.js new file mode 100644 index 000000000..838d1cca3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MIN_VALUE + -Number.MIN_VALUE !== +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-014.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-014.js new file mode 100644 index 000000000..889372e5b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-Number.MAX_VALUE - -Number.MAX_VALUE === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-015.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-015.js new file mode 100644 index 000000000..53bd609df --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE - -Number.MAX_VALUE === +Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-016.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-016.js new file mode 100644 index 000000000..59c8c0027 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-016.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = -1; +assert(a - b === a + -b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-017.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-017.js new file mode 100644 index 000000000..f7b4040ea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE - -0 === Number.MAX_VALUE) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-018.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-018.js new file mode 100644 index 000000000..1a3789dae --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +assert(0 - 1 === -1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-019.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-019.js new file mode 100644 index 000000000..889372e5b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-Number.MAX_VALUE - -Number.MAX_VALUE === +0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-020.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-020.js new file mode 100644 index 000000000..cd41d3bda --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-020.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1e+308 - -1e+308 === +Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-021.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-021.js new file mode 100644 index 000000000..00d487798 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-021.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-8.99e+307 - 8.99e+307 === -Infinity) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-022.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-022.js new file mode 100644 index 000000000..499dfb9fb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-022.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(-Number.MAX_VALUE + Number.MAX_VALUE + Number.MAX_VALUE === (-Number.MAX_VALUE + Number.MAX_VALUE) + Number.MAX_VALUE) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-023.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-023.js new file mode 100644 index 000000000..b24fe0f5c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-023.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((-Number.MAX_VALUE + Number.MAX_VALUE) + Number.MAX_VALUE !== -Number.MAX_VALUE + (Number.MAX_VALUE + Number.MAX_VALUE)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-024.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-024.js new file mode 100644 index 000000000..657a41c2b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-024.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert("1" + 1 + 1 === ("1" + 1) + 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-025.js b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-025.js new file mode 100644 index 000000000..9782528c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.06/11.06.03/11.06.03-025.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(("1" + 1) + 1 !== "1" + (1 + 1)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-001.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-001.js new file mode 100644 index 000000000..3c5c60972 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << 2 // eq a * 2^2 +assert(b == 20) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-003.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-003.js new file mode 100644 index 000000000..5a69b3a0c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << 1 + 1; +assert(b == 20) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-004.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-004.js new file mode 100644 index 000000000..e00a6263e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << "2"; +assert(b == 20) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-005.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-005.js new file mode 100644 index 000000000..3ec100b01 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = a << 2; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-006.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-006.js new file mode 100644 index 000000000..6db593a72 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +var b = a << 2; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-007.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-007.js new file mode 100644 index 000000000..e49e26a94 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << null; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-008.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-008.js new file mode 100644 index 000000000..4dea870b7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << true; +assert(b == 10) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-009.js b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-009.js new file mode 100644 index 000000000..e16875a52 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.01/11.07.01-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a << -1; +assert(b == -2147483648) // -2^31 \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-001.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-001.js new file mode 100644 index 000000000..72c300dae --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >> 2 // eq a / 2^2 +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-002.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-002.js new file mode 100644 index 000000000..a2216162a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >> 1 + 1; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-003.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-003.js new file mode 100644 index 000000000..01e3a78bc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >> "2"; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-004.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-004.js new file mode 100644 index 000000000..c75512399 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = a >> 2; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-005.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-005.js new file mode 100644 index 000000000..ccd2a5797 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +var b = a >> 2; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-006.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-006.js new file mode 100644 index 000000000..93cd19f34 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a >> null; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-007.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-007.js new file mode 100644 index 000000000..1a7511f50 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >> true; +assert(b == 10) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-008.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-008.js new file mode 100644 index 000000000..4f93d4e8c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a >> -1; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-009.js b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-009.js new file mode 100644 index 000000000..76bba11a9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.02/11.07.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = -2147483648 >> 30; +assert(b == -2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-001.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-001.js new file mode 100644 index 000000000..8784662dd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >>> 2 // eq a / 2^2 +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-002.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-002.js new file mode 100644 index 000000000..b706569b2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + var a = 20; + var b = a >>> 1+1; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-003.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-003.js new file mode 100644 index 000000000..c69e940d9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >>> "2"; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-004.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-004.js new file mode 100644 index 000000000..019f949e3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = a >>> 2; +assert(b == 0) diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-005.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-005.js new file mode 100644 index 000000000..b132d3e07 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +var b = a >>> 2; +assert(b == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-006.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-006.js new file mode 100644 index 000000000..5d09c4711 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = a >>> null; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-007.js b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-007.js new file mode 100644 index 000000000..497d1c277 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.07/11.07.03/11.07.03-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 20; +var b = a >>> true; +assert(b == 10) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-001.js new file mode 100644 index 000000000..81ad01118 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5, b = 7 +var c = a < b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-002.js new file mode 100644 index 000000000..d8f387614 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 7, b = 6 +var c = a < b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-003.js new file mode 100644 index 000000000..3fee3d67b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abc", b = "abd" +var c = a < b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-004.js new file mode 100644 index 000000000..5ca26caeb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abd", b = "abc" +var c = a < b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-005.js new file mode 100644 index 000000000..d6f12cf20 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null, b = undefined +var c = a < b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-006.js b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-006.js new file mode 100644 index 000000000..b6f7b3304 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.01/11.08.01-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = true +var c = a < b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-001.js new file mode 100644 index 000000000..aa7b65274 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 700000000000000000000, b = 500000000000000000000 +var c = a > b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-002.js new file mode 100644 index 000000000..14ce61d29 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6.233, b = 6.234 +var c = a > b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-003.js new file mode 100644 index 000000000..d6e96f693 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "zbda", b = "zbd" +var c = a > b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-004.js new file mode 100644 index 000000000..fda771eea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "aaaaa1", b = "aaaaaz" +var c = a > b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-005.js new file mode 100644 index 000000000..28594bd6e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null, b = undefined +var c = a > b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-006.js b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-006.js new file mode 100644 index 000000000..3515be347 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.02/11.08.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = true +var c = a > b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-001.js new file mode 100644 index 000000000..4372f5825 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5, b = 7 +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-002.js new file mode 100644 index 000000000..6ac53b1ce --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 7, b = 6 +var c = a <= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-003.js new file mode 100644 index 000000000..40473ad38 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abc", b = "abd" +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-004.js new file mode 100644 index 000000000..0d6e78828 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abd", b = "abc" +var c = a <= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-005.js new file mode 100644 index 000000000..93f233260 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null, b = undefined +var c = a <= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-006.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-006.js new file mode 100644 index 000000000..82c2e90d3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = true +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-007.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-007.js new file mode 100644 index 000000000..0b628d6cd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 7, b = 7 +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-008.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-008.js new file mode 100644 index 000000000..7321816c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "abd", b = "abd" +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-009.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-009.js new file mode 100644 index 000000000..fe6b88612 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true, b = true +var c = a <= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-010.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-010.js new file mode 100644 index 000000000..878b975c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-010.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2, b = function () { +} +var c = a <= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-011.js b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-011.js new file mode 100644 index 000000000..a6345c9cd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.03/11.08.03-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2, b = 'sdafg' +var c = a <= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-001.js new file mode 100644 index 000000000..631f05500 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 700000000000000000000, b = 500000000000000000000 +var c = a >= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-002.js new file mode 100644 index 000000000..bc570fbb7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6.233, b = 6.234 +var c = a >= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-003.js new file mode 100644 index 000000000..045ae79cb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "zbda", b = "zbd" +var c = a >= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-004.js new file mode 100644 index 000000000..466dae872 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "aaaaa1", b = "aaaaaz" +var c = a >= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-005.js new file mode 100644 index 000000000..d1055d650 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null, b = undefined +var c = a >= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-006.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-006.js new file mode 100644 index 000000000..9b7ebf48f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = true +var c = a >= b +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-007.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-007.js new file mode 100644 index 000000000..3a557b066 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = false +var c = a >= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-008.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-008.js new file mode 100644 index 000000000..14994e386 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1.2, b = '1.2' +var c = a >= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-009.js b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-009.js new file mode 100644 index 000000000..6fc243300 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.04/11.08.04-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 6.233, b = 6.233 +var c = a >= b +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-001.js new file mode 100644 index 000000000..a8a6be6e4 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 2 +var c = a instanceof Number +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-002.js new file mode 100644 index 000000000..dc31935a7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number(2) +var c = a instanceof Number +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-003.js new file mode 100644 index 000000000..eafa9fd75 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(2) +var c = a instanceof Number +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-004.js new file mode 100644 index 000000000..4bd4fad6a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 'abcd' +var c = a instanceof String +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-005.js new file mode 100644 index 000000000..3f49d182c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String('abcd') +var c = a instanceof String +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-006.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-006.js new file mode 100644 index 000000000..669c3850b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-006.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = function () { +} +var b = new a() +var c = b instanceof a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-007.js b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-007.js new file mode 100644 index 000000000..e4599ac1d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.06/11.08.06-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object() +var c = a instanceof Object +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-001.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-001.js new file mode 100644 index 000000000..ae2a1b935 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = [1, 2, 3, 4, 5, 6] +var c = 0 in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-002.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-002.js new file mode 100644 index 000000000..7f2076864 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = [1, 2, 3, 4, 5, 6] +var c = 5 in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-003.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-003.js new file mode 100644 index 000000000..88f9d66de --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = [1, 2, 3, 4, 5, 6] +var c = 6 in a +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-004.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-004.js new file mode 100644 index 000000000..01a0d8713 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-004.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +var a = [1, 2, 3, 4, 5, 6] +var c = '0' in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-005.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-005.js new file mode 100644 index 000000000..ac0318b9c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: 'Masha', 'age': 10} +var c = 'name' in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-007.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-007.js new file mode 100644 index 000000000..a41b48567 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: 'Masha', 'age': 10} +var c = "age" in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-008.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-008.js new file mode 100644 index 000000000..acbcefc39 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: 'Masha', 'age': 10} +var c = 'Masha' in a +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-009.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-009.js new file mode 100644 index 000000000..63a28af77 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {name: 'Masha', 'age': 10} +var c = "toString" in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-010.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-010.js new file mode 100644 index 000000000..fe8c2f251 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String('example') +var c = toString in a +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-011.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-011.js new file mode 100644 index 000000000..ddf192d10 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String('example') +var c = 'length' in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-012.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-012.js new file mode 100644 index 000000000..fe8c2f251 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-012.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String('example') +var c = toString in a +assert(!c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-013.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-013.js new file mode 100644 index 000000000..2fa5c20b9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-013.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String('example') +var c = 'toString' in a +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-014.js b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-014.js new file mode 100644 index 000000000..cd116d673 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.08/11.08.07/11.08.07-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var c = 'PI' in Math +assert(c) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-001.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-001.js new file mode 100644 index 000000000..a3fba5954 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-002.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-002.js new file mode 100644 index 000000000..8d58daf4d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = null +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-003.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-003.js new file mode 100644 index 000000000..143203483 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = 1 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-004.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-004.js new file mode 100644 index 000000000..8a9224161 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2, y = NaN +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-005.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-005.js new file mode 100644 index 000000000..b99a31e36 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2.756, y = 2.756 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-006.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-006.js new file mode 100644 index 000000000..18efc635a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = +0, y = -0 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-007.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-007.js new file mode 100644 index 000000000..4129aaf0a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = -0, y = +0 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-008.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-008.js new file mode 100644 index 000000000..ae2e4855e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2.8, y = 3.4 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-009.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-009.js new file mode 100644 index 000000000..da669b401 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abg' +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-010.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-010.js new file mode 100644 index 000000000..52f540cca --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abgs' +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-011.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-011.js new file mode 100644 index 000000000..4e9402041 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abh' +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-012.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-012.js new file mode 100644 index 000000000..7568ce906 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'aBg' +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-013.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-013.js new file mode 100644 index 000000000..d00d69115 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = true +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-014.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-014.js new file mode 100644 index 000000000..c6e0c9553 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-015.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-015.js new file mode 100644 index 000000000..bdeec9342 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = true +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-016.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-016.js new file mode 100644 index 000000000..67e5f1b20 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = undefined +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-017.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-017.js new file mode 100644 index 000000000..89ea5dc23 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = undefined, y = null +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-018.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-018.js new file mode 100644 index 000000000..0d745603a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-019.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-019.js new file mode 100644 index 000000000..acd0206d1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-019.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.124" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-020.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-020.js new file mode 100644 index 000000000..b31e32050 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123e0" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-021.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-021.js new file mode 100644 index 000000000..d222efb54 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-021.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123e+2" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-022.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-022.js new file mode 100644 index 000000000..af1c67489 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123a" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-023.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-023.js new file mode 100644 index 000000000..41882b43b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-023.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "b0.123" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-024.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-024.js new file mode 100644 index 000000000..bddeeba95 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-024.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "1.23e-1" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-025.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-025.js new file mode 100644 index 000000000..dffd3c303 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-025.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = "-0" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-026.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-026.js new file mode 100644 index 000000000..7fc6fff8a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-026.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "+1" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-027.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-027.js new file mode 100644 index 000000000..b9986c3fc --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-027.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "-1" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-028.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-028.js new file mode 100644 index 000000000..5241fea0a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-028.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "true" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-029.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-029.js new file mode 100644 index 000000000..c96946704 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-029.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "123" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-030.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-030.js new file mode 100644 index 000000000..48d035deb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-030.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = Object("abc") +b = x +assert(x == b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-031.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-031.js new file mode 100644 index 000000000..2fd7ff86c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-031.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = Object("abc") +var y = Object("abc") +b = x, c = y +assert(c == b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-032.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-032.js new file mode 100644 index 000000000..4aec69c42 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-032.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "a" +var y = 2 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-033.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-033.js new file mode 100644 index 000000000..45e1f3634 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-033.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "12.1e5" +var y = 1210000 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-034.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-034.js new file mode 100644 index 000000000..bb8d2b69f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-034.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "1" +var y = true +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-035.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-035.js new file mode 100644 index 000000000..eba3d5f63 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-035.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0 +var y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-036.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-036.js new file mode 100644 index 000000000..82692e702 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-036.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1e-324 +var y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-037.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-037.js new file mode 100644 index 000000000..a7059860a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-037.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1e-323 +var y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-038.js b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-038.js new file mode 100644 index 000000000..847a6eb65 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.01/11.09.01-038.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = Object(0) +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-001.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-001.js new file mode 100644 index 000000000..a3fba5954 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-002.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-002.js new file mode 100644 index 000000000..8d58daf4d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = null +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-003.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-003.js new file mode 100644 index 000000000..1a7682cff --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = 1 +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-004.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-004.js new file mode 100644 index 000000000..ef49302ba --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2, y = NaN +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-005.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-005.js new file mode 100644 index 000000000..b99a31e36 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2.756, y = 2.756 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-006.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-006.js new file mode 100644 index 000000000..18efc635a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = +0, y = -0 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-007.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-007.js new file mode 100644 index 000000000..4129aaf0a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = -0, y = +0 +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-008.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-008.js new file mode 100644 index 000000000..c95c8b896 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 2.8, y = 3.4 +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-009.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-009.js new file mode 100644 index 000000000..da669b401 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abg' +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-010.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-010.js new file mode 100644 index 000000000..52f540cca --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abgs' +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-011.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-011.js new file mode 100644 index 000000000..8036fdc0f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'abh' +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-012.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-012.js new file mode 100644 index 000000000..08ee51550 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abg", y = 'aBg' +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-013.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-013.js new file mode 100644 index 000000000..d00d69115 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = true +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-014.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-014.js new file mode 100644 index 000000000..c6e0c9553 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-015.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-015.js new file mode 100644 index 000000000..e4ed91359 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = true +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-016.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-016.js new file mode 100644 index 000000000..67e5f1b20 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = undefined +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-017.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-017.js new file mode 100644 index 000000000..89ea5dc23 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = undefined, y = null +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-018.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-018.js new file mode 100644 index 000000000..0d745603a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-019.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-019.js new file mode 100644 index 000000000..572b67dfe --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-019.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.124" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-020.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-020.js new file mode 100644 index 000000000..b31e32050 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123e0" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-021.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-021.js new file mode 100644 index 000000000..d222efb54 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-021.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123e+2" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-022.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-022.js new file mode 100644 index 000000000..a11f5659b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "0.123a" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-023.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-023.js new file mode 100644 index 000000000..a91b466e7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-023.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "b0.123" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-024.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-024.js new file mode 100644 index 000000000..bddeeba95 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-024.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.123, y = "1.23e-1" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-025.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-025.js new file mode 100644 index 000000000..dffd3c303 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-025.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = "-0" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-026.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-026.js new file mode 100644 index 000000000..7fc6fff8a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-026.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "+1" +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-027.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-027.js new file mode 100644 index 000000000..4f6f53e40 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-027.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "-1" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-028.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-028.js new file mode 100644 index 000000000..2921dbc5c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-028.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "true" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-029.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-029.js new file mode 100644 index 000000000..f802647b8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-029.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = "123" +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-030.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-030.js new file mode 100644 index 000000000..48d035deb --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-030.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = Object("abc") +b = x +assert(x == b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-031.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-031.js new file mode 100644 index 000000000..47ca841ea --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-031.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = Object("abc") +var y = Object("abc") +b = x, c = y +assert(c != b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-032.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-032.js new file mode 100644 index 000000000..7fba87e09 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-032.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "a" +var y = 2 +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-033.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-033.js new file mode 100644 index 000000000..57c7f03e8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-033.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "12.1e5" +var y = 1210000 +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-034.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-034.js new file mode 100644 index 000000000..bb8d2b69f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-034.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "1" +var y = true +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-035.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-035.js new file mode 100644 index 000000000..eba3d5f63 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-035.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0 +var y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-036.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-036.js new file mode 100644 index 000000000..82692e702 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-036.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1e-324 +var y = false +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-037.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-037.js new file mode 100644 index 000000000..8d50e9b9e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-037.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1e-323 +var y = false +assert(x != y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-038.js b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-038.js new file mode 100644 index 000000000..847a6eb65 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.02/11.09.02-038.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = Object(0) +assert(x == y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-001.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-001.js new file mode 100644 index 000000000..fe4b5edfe --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = null +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-002.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-002.js new file mode 100644 index 000000000..08d9041f9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = true +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-003.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-003.js new file mode 100644 index 000000000..f58f9af85 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = "undefined" +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-004.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-004.js new file mode 100644 index 000000000..8ea2352b0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = -37.2e-6 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-005.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-005.js new file mode 100644 index 000000000..dfcb1490e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = new Function() +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-006.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-006.js new file mode 100644 index 000000000..912a62be2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-007.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-007.js new file mode 100644 index 000000000..ebac77390 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-008.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-008.js new file mode 100644 index 000000000..45d7d7e96 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-009.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-009.js new file mode 100644 index 000000000..61e39c072 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = Object(0) +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-010.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-010.js new file mode 100644 index 000000000..22fa8abe5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abc", y = new String("abc") + +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-011.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-011.js new file mode 100644 index 000000000..774ca2f65 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-012.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-012.js new file mode 100644 index 000000000..ba9b3a5a1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = y = null +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-013.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-013.js new file mode 100644 index 000000000..4e850e318 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-014.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-014.js new file mode 100644 index 000000000..1f00095e6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.0, y = NaN +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-015.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-015.js new file mode 100644 index 000000000..6778a7661 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = NaN +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-016.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-016.js new file mode 100644 index 000000000..1da0a4658 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 123.00, y = 0.0123e+4 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-017.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-017.js new file mode 100644 index 000000000..9e098db41 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 123.01, y = 0.0123e+4 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-018.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-018.js new file mode 100644 index 000000000..6f5e0e152 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = +0, y = -0 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-019.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-019.js new file mode 100644 index 000000000..f24d412c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-019.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = -0, y = +0 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-020.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-020.js new file mode 100644 index 000000000..5cc14e8ef --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "12.6asdg$7_sfk/sf/adf\.3rqaf\u0102", y = "12.6asdg$7_sfk/sf/adf\.3rqaf\u0102" +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-021.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-021.js new file mode 100644 index 000000000..5c50bdf9a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-021.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = true +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-022.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-022.js new file mode 100644 index 000000000..b278bb1d1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = false +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-023.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-023.js new file mode 100644 index 000000000..8cf145d78 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-023.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = true +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-024.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-024.js new file mode 100644 index 000000000..0b05d33da --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-024.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = new String("abc") +var y = x +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-025.js b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-025.js new file mode 100644 index 000000000..8bdbcac21 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.04/11.09.04-025.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = new String("abc") +var y = new String("abc") + +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-001.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-001.js new file mode 100644 index 000000000..fe4b5edfe --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = null +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-002.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-002.js new file mode 100644 index 000000000..08d9041f9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = true +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-003.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-003.js new file mode 100644 index 000000000..f58f9af85 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = "undefined" +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-004.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-004.js new file mode 100644 index 000000000..8ea2352b0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = -37.2e-6 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-005.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-005.js new file mode 100644 index 000000000..dfcb1490e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y = new Function() +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-006.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-006.js new file mode 100644 index 000000000..912a62be2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = null, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-007.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-007.js new file mode 100644 index 000000000..ebac77390 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-008.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-008.js new file mode 100644 index 000000000..45d7d7e96 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-009.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-009.js new file mode 100644 index 000000000..61e39c072 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "0", y = Object(0) +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-010.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-010.js new file mode 100644 index 000000000..73f059938 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "abc", y = new String("abc") +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-011.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-011.js new file mode 100644 index 000000000..774ca2f65 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-012.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-012.js new file mode 100644 index 000000000..ba9b3a5a1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-012.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = y = null +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-013.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-013.js new file mode 100644 index 000000000..4e850e318 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-013.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = 0 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-014.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-014.js new file mode 100644 index 000000000..1f00095e6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-014.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0.0, y = NaN +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-015.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-015.js new file mode 100644 index 000000000..6778a7661 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-015.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = NaN, y = NaN +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-016.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-016.js new file mode 100644 index 000000000..1da0a4658 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-016.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 123.00, y = 0.0123e+4 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-017.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-017.js new file mode 100644 index 000000000..9e098db41 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-017.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 123.01, y = 0.0123e+4 +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-018.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-018.js new file mode 100644 index 000000000..6f5e0e152 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-018.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = +0, y = -0 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-019.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-019.js new file mode 100644 index 000000000..f24d412c8 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-019.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = -0, y = +0 +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-020.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-020.js new file mode 100644 index 000000000..5cc14e8ef --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-020.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = "12.6asdg$7_sfk/sf/adf\.3rqaf\u0102", y = "12.6asdg$7_sfk/sf/adf\.3rqaf\u0102" +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-021.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-021.js new file mode 100644 index 000000000..5c50bdf9a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-021.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = true, y = true +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-022.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-022.js new file mode 100644 index 000000000..b278bb1d1 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-022.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = false +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-023.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-023.js new file mode 100644 index 000000000..8cf145d78 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-023.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = false, y = true +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-024.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-024.js new file mode 100644 index 000000000..0b05d33da --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-024.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = new String("abc") +var y = x +assert(x === y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-025.js b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-025.js new file mode 100644 index 000000000..66c9b86ed --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.09/11.09.05/11.09.05-025.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = new String("abc") +var y = new String("abc") +assert(x !== y) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-001.js b/tests/test-suite-compact-profile/11/11.10/11.10-001.js new file mode 100644 index 000000000..f122d2eaa --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 10; +a = 1 & 2; +assert(a == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-002.js b/tests/test-suite-compact-profile/11/11.10/11.10-002.js new file mode 100644 index 000000000..090f50dde --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = 1; +a & b; +assert(a == 4 && b == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-003.js b/tests/test-suite-compact-profile/11/11.10/11.10-003.js new file mode 100644 index 000000000..fcafc143d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = "0"; +a = 1 & b; +assert(a == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-004.js b/tests/test-suite-compact-profile/11/11.10/11.10-004.js new file mode 100644 index 000000000..f9f6e1c40 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-004.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = null; +a = 1 & b; +assert(a == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-005.js b/tests/test-suite-compact-profile/11/11.10/11.10-005.js new file mode 100644 index 000000000..a715aa1f0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-005.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b; +a = 1 & b; +assert(a == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-006.js b/tests/test-suite-compact-profile/11/11.10/11.10-006.js new file mode 100644 index 000000000..8a25c768c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +a = 4 | 1; +assert(a == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-007.js b/tests/test-suite-compact-profile/11/11.10/11.10-007.js new file mode 100644 index 000000000..cf45259f5 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-007.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = 1; +a | b; +assert(a == 4 && b == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-008.js b/tests/test-suite-compact-profile/11/11.10/11.10-008.js new file mode 100644 index 000000000..ae4f85b08 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-008.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = "0"; +a = 1 | b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-009.js b/tests/test-suite-compact-profile/11/11.10/11.10-009.js new file mode 100644 index 000000000..cf65feee0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-009.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = null; +a = 1 | b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-010.js b/tests/test-suite-compact-profile/11/11.10/11.10-010.js new file mode 100644 index 000000000..e983e43e2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-010.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b; +a = 1 | b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-011.js b/tests/test-suite-compact-profile/11/11.10/11.10-011.js new file mode 100644 index 000000000..a39e77541 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +a = 1 ^ 3; +assert(a == 2) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-012.js b/tests/test-suite-compact-profile/11/11.10/11.10-012.js new file mode 100644 index 000000000..7700488c0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-012.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = 1; +a ^ b; +assert(a == 4 && b == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-013.js b/tests/test-suite-compact-profile/11/11.10/11.10-013.js new file mode 100644 index 000000000..d85d434c7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-013.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +var b = "0"; +a = 1 ^ b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-014.js b/tests/test-suite-compact-profile/11/11.10/11.10-014.js new file mode 100644 index 000000000..07c329821 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-014.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b = null; +a = 1 ^ b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-015.js b/tests/test-suite-compact-profile/11/11.10/11.10-015.js new file mode 100644 index 000000000..8f333b770 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-015.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var b; +a = 1 ^ b; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-016.js b/tests/test-suite-compact-profile/11/11.10/11.10-016.js new file mode 100644 index 000000000..85254ffa6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-016.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 10; +a = 1 & 2147483648; +assert(a == 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-017.js b/tests/test-suite-compact-profile/11/11.10/11.10-017.js new file mode 100644 index 000000000..8bbe28d84 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-017.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 10; +a = 1 & 2147483647; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.10/11.10-018.js b/tests/test-suite-compact-profile/11/11.10/11.10-018.js new file mode 100644 index 000000000..384f7be86 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.10/11.10-018.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 10; +a = 2147483647 & 2147483649; +assert(a == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-001.js b/tests/test-suite-compact-profile/11/11.11/11.11-001.js new file mode 100644 index 000000000..b8a36e98f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = false; +assert((a && b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-002.js b/tests/test-suite-compact-profile/11/11.11/11.11-002.js new file mode 100644 index 000000000..f596dd47c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = true; +assert((a && b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-003.js b/tests/test-suite-compact-profile/11/11.11/11.11-003.js new file mode 100644 index 000000000..b9b7fea6d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +var b = false; +assert((a && b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-004.js b/tests/test-suite-compact-profile/11/11.11/11.11-004.js new file mode 100644 index 000000000..712d6c3ed --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +var b = new Object(); +assert((a && b) === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-005.js b/tests/test-suite-compact-profile/11/11.11/11.11-005.js new file mode 100644 index 000000000..17a88cf97 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = new Object(); +assert((a && b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-006.js b/tests/test-suite-compact-profile/11/11.11/11.11-006.js new file mode 100644 index 000000000..5d46c227e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "not empty string"; // will be converted to true +var b = new Object(); +assert((a && b) !== b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-007.js b/tests/test-suite-compact-profile/11/11.11/11.11-007.js new file mode 100644 index 000000000..d84216d85 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = ""; // empty string - false +var b = new Object(); +assert((a && b) !== a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-008.js b/tests/test-suite-compact-profile/11/11.11/11.11-008.js new file mode 100644 index 000000000..0675aa327 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0; +var b = new Object(); +assert((a && b) === 0) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-009.js b/tests/test-suite-compact-profile/11/11.11/11.11-009.js new file mode 100644 index 000000000..813a56f83 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-009.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = NaN; +var b = new Object(); +assert((!a && b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-010.js b/tests/test-suite-compact-profile/11/11.11/11.11-010.js new file mode 100644 index 000000000..9f7be82bf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 12345; // -> true +var b = new Object(); +assert((a && b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-011.js b/tests/test-suite-compact-profile/11/11.11/11.11-011.js new file mode 100644 index 000000000..ff3fb4741 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; // -> false +var b = new Object(); +assert((a && b) === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-012.js b/tests/test-suite-compact-profile/11/11.11/11.11-012.js new file mode 100644 index 000000000..b0670b3c2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-012.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; // -> false +var b = new Object(); +assert((a && b) === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-013.js b/tests/test-suite-compact-profile/11/11.11/11.11-013.js new file mode 100644 index 000000000..b0bade9ee --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-013.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object; +var b = new Object; +assert((a && b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-014.js b/tests/test-suite-compact-profile/11/11.11/11.11-014.js new file mode 100644 index 000000000..9e0136b62 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-014.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = false; +assert((a || b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-015.js b/tests/test-suite-compact-profile/11/11.11/11.11-015.js new file mode 100644 index 000000000..8886fb3b6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-015.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = true; +assert((a || b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-016.js b/tests/test-suite-compact-profile/11/11.11/11.11-016.js new file mode 100644 index 000000000..df426a87d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-016.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +var b = true; +assert((a || b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-017.js b/tests/test-suite-compact-profile/11/11.11/11.11-017.js new file mode 100644 index 000000000..0cba957d0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-017.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +var b = false; +assert((a || b) === false) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-018.js b/tests/test-suite-compact-profile/11/11.11/11.11-018.js new file mode 100644 index 000000000..ea3fef24e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-018.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = new Object; +assert((a || b) === true) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-019.js b/tests/test-suite-compact-profile/11/11.11/11.11-019.js new file mode 100644 index 000000000..67f9902ce --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-019.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +var b = new Object; +assert((a || b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-020.js b/tests/test-suite-compact-profile/11/11.11/11.11-020.js new file mode 100644 index 000000000..23175dd4a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-020.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a1 = +0; +var a2 = -0; +var b = new Object; +assert(((a1 || b) === b) && ((a2 || b) === b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-021.js b/tests/test-suite-compact-profile/11/11.11/11.11-021.js new file mode 100644 index 000000000..9342903ac --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-021.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = NaN; +var b = new Object; +assert((a || b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-022.js b/tests/test-suite-compact-profile/11/11.11/11.11-022.js new file mode 100644 index 000000000..30634aba7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-022.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 123.456; +var b = new Object; +assert((a || b) === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-023.js b/tests/test-suite-compact-profile/11/11.11/11.11-023.js new file mode 100644 index 000000000..013c15bf7 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-023.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "non empty string";//-> true +var b = new Object; +assert((a || b) === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-024.js b/tests/test-suite-compact-profile/11/11.11/11.11-024.js new file mode 100644 index 000000000..a8c26c9a9 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-024.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "";//-> false +var b = new Object; +assert((a || b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-025.js b/tests/test-suite-compact-profile/11/11.11/11.11-025.js new file mode 100644 index 000000000..d3f541291 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-025.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null;//->false +var b = Number(123.5e5); +assert((a || b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-026.js b/tests/test-suite-compact-profile/11/11.11/11.11-026.js new file mode 100644 index 000000000..50757530c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-026.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; +var b = new String("123"); +assert((a || b) === b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.11/11.11-027.js b/tests/test-suite-compact-profile/11/11.11/11.11-027.js new file mode 100644 index 000000000..4bf10c8d0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.11/11.11-027.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object; +var b = "who cares, what is this?"; +assert((a || b) === a) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-001.js b/tests/test-suite-compact-profile/11/11.12/11.12-001.js new file mode 100644 index 000000000..4f528bf2d --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-001.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b = 3; + +var c = (a > b) ? 12 : 14; + +assert(c == 12) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-002.js b/tests/test-suite-compact-profile/11/11.12/11.12-002.js new file mode 100644 index 000000000..7d08daaed --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-002.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +var c = 3; + +var d; + +d = a < b ? b < c ? 5 : 10 : 15; + +assert(d == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-003.js b/tests/test-suite-compact-profile/11/11.12/11.12-003.js new file mode 100644 index 000000000..b2c65ae87 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-003.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +var c = 3; + +var d; + +d = a > b ? 5 : b < c ? 10 : 15; + +assert(d == 10) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-004.js b/tests/test-suite-compact-profile/11/11.12/11.12-004.js new file mode 100644 index 000000000..c0892fe7b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-004.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +var c = 1; +var d = 1; + +var e; + +e = (a < b) ? (c = 100) : (d = 10); + +assert(c == 100 && e == 100 && d == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-005.js b/tests/test-suite-compact-profile/11/11.12/11.12-005.js new file mode 100644 index 000000000..3194183fd --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-005.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +var c = 1; +var d = 1; + +var e; + +e = (a > b) ? (c = 100) : (d = 10); + +assert(c == 1 && e == 10 && d == 10) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-008.js b/tests/test-suite-compact-profile/11/11.12/11.12-008.js new file mode 100644 index 000000000..f948e8da0 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-008.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cond = 23; +var a = [1, 2, 4]; +var cnt = 0; + +for (var i = (cond < 24) ? 0 in a : 2; i < 10; ++i) +{ + ++cnt; +} + +assert(cnt == 9) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.12/11.12-012.js b/tests/test-suite-compact-profile/11/11.12/11.12-012.js new file mode 100644 index 000000000..e2b817d7e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.12/11.12-012.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cond = 12; +var res; + +res = (cond < 13) + ? + 1 + : + 2; + +assert(res == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.01/11.13.01-001.js b/tests/test-suite-compact-profile/11/11.13/11.13.01/11.13.01-001.js new file mode 100644 index 000000000..879c8ab9a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.01/11.13.01-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var b; + +b = a; +assert(b == 5) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-001.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-001.js new file mode 100644 index 000000000..772e5ac9c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-001.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = 2; +a += b; +assert(a === 3); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-002.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-002.js new file mode 100644 index 000000000..7ccc8780a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = "2"; +a += b; +assert(a === "12") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-003.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-003.js new file mode 100644 index 000000000..7d827bf9c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +var b = 2; +a += b; +assert(a === "12") diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-004.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-004.js new file mode 100644 index 000000000..f8bbb4d0b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-004.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "1"; +var b = "2"; +a += b; +assert(a === "12") \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-005.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-005.js new file mode 100644 index 000000000..2f56280ed --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-005.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = false; +a += b; +assert(a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-006.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-006.js new file mode 100644 index 000000000..85b7e9e4a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-006.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = null; +a += b; +assert(a === 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-007.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-007.js new file mode 100644 index 000000000..a92fc5e11 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-007.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 3; +var _a = a; +var b = 7; +assert((a += b) === (_a + b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-008.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-008.js new file mode 100644 index 000000000..b907fd760 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-008.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5; +var _a = a; +var b = 10; +assert((a -= b) === (_a - b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-009.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-009.js new file mode 100644 index 000000000..82494eddf --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-009.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 10; +var _a = a; +var b = 1.5; +assert((a *= b) === (_a * b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-010.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-010.js new file mode 100644 index 000000000..d1f308042 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-010.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var _a = a; +var b = 10.6; +assert((a /= b) === (_a / b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-011.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-011.js new file mode 100644 index 000000000..aca1fb66c --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-011.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 102; +var _a = a; +var b = 10; +assert(((a %= b) === (_a % b)) && (a === (_a % b))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-012.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-012.js new file mode 100644 index 000000000..40e207e5e --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-012.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0xffffffff; +var _a = a; +var b = 4; +assert(a >>= b === _a >> b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-013.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-013.js new file mode 100644 index 000000000..7fc558199 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-013.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0xffffffff; +var _a = a; +var b = 4; +assert(a <<= b === _a << b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-014.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-014.js new file mode 100644 index 000000000..aed074751 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-014.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 0xffffffff; +var _a = a; +var b = 4; +assert(a >>>= b === _a >>> b) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-039.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-039.js new file mode 100644 index 000000000..f7bc4ca40 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-039.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 4; +var _a = a; +var b = 10; +assert((a %= b) === (_a % b)) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-040.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-040.js new file mode 100644 index 000000000..13cd5ef02 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-040.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object *= 2) === (copyObject * 2)) && (object === (copyObject * 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-041.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-041.js new file mode 100644 index 000000000..12d1e416f --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-041.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object += 2) === (copyObject + 2)) && (object === (copyObject + 2))) diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-042.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-042.js new file mode 100644 index 000000000..89cf0b01b --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-042.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 15 + }, + toString: function () { + return "" + } +} + +copyObject = object; +assert(((object -= 2) === (copyObject - 2)) && (object === (copyObject - 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-043.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-043.js new file mode 100644 index 000000000..6bd96e34a --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-043.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 178 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object /= 2) === (copyObject / 2)) && (object === (copyObject / 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-044.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-044.js new file mode 100644 index 000000000..c3e770bc3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-044.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1345 + }, + toString: function () { + return "foo" + } +} + +copyObject = object; +assert(((object %= 2) === (copyObject % 2)) && (object === (copyObject % 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-045.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-045.js new file mode 100644 index 000000000..b53fc8510 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-045.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 16 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object <<= 2) === (copyObject << 2)) && (object === (copyObject << 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-046.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-046.js new file mode 100644 index 000000000..0208dd756 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-046.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 16 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object >>= 2) === (copyObject >> 2)) && (object === (copyObject >> 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-047.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-047.js new file mode 100644 index 000000000..58ad00ec2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-047.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 16 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object >>>= 2) === (copyObject >>> 2)) && (object === (copyObject >>> 2))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-048.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-048.js new file mode 100644 index 000000000..f8cb22ba6 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-048.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object &= 1) === (copyObject & 1)) && (object === (copyObject & 1))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-049.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-049.js new file mode 100644 index 000000000..50ebfdac3 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-049.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object |= 1) === (copyObject | 1)) && (object === (copyObject | 1))) diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-050.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-050.js new file mode 100644 index 000000000..b66e89ead --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-050.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return 1 + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object ^= 1) === (copyObject ^ 1)) && (object === (copyObject ^ 1))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-051.js b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-051.js new file mode 100644 index 000000000..be40683a2 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.13/11.13.02/11.13.02-051.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +object = { + valueOf: function () { + return "12" + }, + toString: function () { + return 0 + } +} + +copyObject = object; +assert(((object += 3) === (copyObject + 3)) && (object === (copyObject + 3))) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/11/11.14/11.14-001.js b/tests/test-suite-compact-profile/11/11.14/11.14-001.js new file mode 100644 index 000000000..bb0298bed --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.14/11.14-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var res = (33, false, 73.234, 100); + +assert(res == 100); diff --git a/tests/test-suite-compact-profile/11/11.14/11.14-002.js b/tests/test-suite-compact-profile/11/11.14/11.14-002.js new file mode 100644 index 000000000..133bfd496 --- /dev/null +++ b/tests/test-suite-compact-profile/11/11.14/11.14-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a, b, c, res; + +res = (a = 39, b = null, c = 12.5); + +assert(a == 39 && b == null && c == 12.5 && res == 12.5) diff --git a/tests/test-suite-compact-profile/12/12.01/12.01-001.js b/tests/test-suite-compact-profile/12/12.01/12.01-001.js new file mode 100644 index 000000000..31c2b90fe --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.01/12.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{ +} diff --git a/tests/test-suite-compact-profile/12/12.01/12.01-002.js b/tests/test-suite-compact-profile/12/12.01/12.01-002.js new file mode 100644 index 000000000..c7931fbec --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.01/12.01-002.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + { + return 1; + } + return 0; +} + +assert(test()); diff --git a/tests/test-suite-compact-profile/12/12.01/12.01-003.js b/tests/test-suite-compact-profile/12/12.01/12.01-003.js new file mode 100644 index 000000000..a06ac3a2b --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.01/12.01-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{;;} diff --git a/tests/test-suite-compact-profile/12/12.01/12.01-004.js b/tests/test-suite-compact-profile/12/12.01/12.01-004.js new file mode 100644 index 000000000..f5a03dbc9 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.01/12.01-004.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{ + var a = null; + ; + a = 'null'; +} + +assert(a === 'null'); diff --git a/tests/test-suite-compact-profile/12/12.01/12.01-005.js b/tests/test-suite-compact-profile/12/12.01/12.01-005.js new file mode 100644 index 000000000..609f3204c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.01/12.01-005.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +{ + { + var a = null; + ; + } + { + { + } + } + a = 'null'; +} + +assert(a === 'null'); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-001.js b/tests/test-suite-compact-profile/12/12.02/12.02-001.js new file mode 100644 index 000000000..f55460793 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +assert(a === undefined); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-002.js b/tests/test-suite-compact-profile/12/12.02/12.02-002.js new file mode 100644 index 000000000..91aa23b88 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 12345; +assert(a === 12345); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-003.js b/tests/test-suite-compact-profile/12/12.02/12.02-003.js new file mode 100644 index 000000000..f33237f38 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = null; +assert(a === null); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-004.js b/tests/test-suite-compact-profile/12/12.02/12.02-004.js new file mode 100644 index 000000000..18bd38973 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = undefined; + +assert(a === undefined); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-005.js b/tests/test-suite-compact-profile/12/12.02/12.02-005.js new file mode 100644 index 000000000..a5f9c7ea6 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "undefined"; + +assert(a === "undefined"); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-006.js b/tests/test-suite-compact-profile/12/12.02/12.02-006.js new file mode 100644 index 000000000..c8df4c7ae --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 'undefined'; + +assert(a === "undefined"); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-007.js b/tests/test-suite-compact-profile/12/12.02/12.02-007.js new file mode 100644 index 000000000..fc5bb8d16 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 'undefined'; + +assert(a === 'undefined'); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-008.js b/tests/test-suite-compact-profile/12/12.02/12.02-008.js new file mode 100644 index 000000000..1b8472154 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-008.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false, b = true; + +assert(a === false && b === true); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-009.js b/tests/test-suite-compact-profile/12/12.02/12.02-009.js new file mode 100644 index 000000000..fa5ff042d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-009.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1, + b, + c = 4; + +b = a + c; + +assert(b === 5); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-010.js b/tests/test-suite-compact-profile/12/12.02/12.02-010.js new file mode 100644 index 000000000..dd0de613f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a, b = 3.14, c; + +assert(a === undefined && b === 3.14 && c === undefined) diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-011.js b/tests/test-suite-compact-profile/12/12.02/12.02-011.js new file mode 100644 index 000000000..ac959e22a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-011.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a, b, c; + +assert(a === undefined && b === undefined && c === undefined); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-012.js b/tests/test-suite-compact-profile/12/12.02/12.02-012.js new file mode 100644 index 000000000..cfafeab1c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-012.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var /* + // + */ + _a1 = 2; + +assert(_a1 === 2); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-013.js b/tests/test-suite-compact-profile/12/12.02/12.02-013.js new file mode 100644 index 000000000..561698c63 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-013.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var /* + // + */ + _a$1 = 2; + +assert(_a$1 === 2); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-014.js b/tests/test-suite-compact-profile/12/12.02/12.02-014.js new file mode 100644 index 000000000..b9c7caa63 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-014.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var // + // + $a = 2; +assert($a === 2); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-015.js b/tests/test-suite-compact-profile/12/12.02/12.02-015.js new file mode 100644 index 000000000..1491b93c3 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-015.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 12 + "abc"; + +assert(a === "12abc"); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-016.js b/tests/test-suite-compact-profile/12/12.02/12.02-016.js new file mode 100644 index 000000000..fbd886e7a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-016.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {}; +var b = typeof (a); + +assert(b === "object" && b === typeof (Object()) && b === typeof ({})); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-018.js b/tests/test-suite-compact-profile/12/12.02/12.02-018.js new file mode 100644 index 000000000..42259a13f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-018.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = []; + +assert(a instanceof Array && a.length === 0); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-019.js b/tests/test-suite-compact-profile/12/12.02/12.02-019.js new file mode 100644 index 000000000..f2aaedf15 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-019.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var + a = 2 + +assert(a === 2); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-020.js b/tests/test-suite-compact-profile/12/12.02/12.02-020.js new file mode 100644 index 000000000..7b02170b0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-020.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = RegExp(); + +assert(a instanceof RegExp); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-021.js b/tests/test-suite-compact-profile/12/12.02/12.02-021.js new file mode 100644 index 000000000..a589fcf21 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-021.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Date(); + +assert(a instanceof Date); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02-022.js b/tests/test-suite-compact-profile/12/12.02/12.02-022.js new file mode 100644 index 000000000..125029109 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02-022.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +var b = a; + +assert(a === b); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-001.js b/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-001.js new file mode 100644 index 000000000..77773ffc5 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var eval = 1; +assert(eval === 1 && typeof (eval) === "number"); diff --git a/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-002.js b/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-002.js new file mode 100644 index 000000000..af3929d71 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.02/12.02.01/12.02.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var arguments = 2; +assert(arguments === 2 && typeof (arguments) === "number"); + diff --git a/tests/test-suite-compact-profile/12/12.03/12.03-001.js b/tests/test-suite-compact-profile/12/12.03/12.03-001.js new file mode 100644 index 000000000..98b54fa6e --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.03/12.03-001.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + ; + return 1;;;;;; +} + +test(); diff --git a/tests/test-suite-compact-profile/12/12.03/12.03-002.js b/tests/test-suite-compact-profile/12/12.03/12.03-002.js new file mode 100644 index 000000000..c7bbf056c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.03/12.03-002.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + ;;;;;; + return 1 +} + +test(); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.03/12.03-003.js b/tests/test-suite-compact-profile/12/12.03/12.03-003.js new file mode 100644 index 000000000..3db63a0d8 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.03/12.03-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a="ab;c" +; +; +assert (a === 'ab;c'); diff --git a/tests/test-suite-compact-profile/12/12.04/12.04-001.js b/tests/test-suite-compact-profile/12/12.04/12.04-001.js new file mode 100644 index 000000000..e5963e879 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.04/12.04-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5, b = 1; +(a + b); diff --git a/tests/test-suite-compact-profile/12/12.04/12.04-002.js b/tests/test-suite-compact-profile/12/12.04/12.04-002.js new file mode 100644 index 000000000..cad8c1a99 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.04/12.04-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5, b = 1; +a = a && b; diff --git a/tests/test-suite-compact-profile/12/12.04/12.04-003.js b/tests/test-suite-compact-profile/12/12.04/12.04-003.js new file mode 100644 index 000000000..d30168145 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.04/12.04-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a, b, c +a = 2, b = 3, c = 4 diff --git a/tests/test-suite-compact-profile/12/12.04/12.04-004.js b/tests/test-suite-compact-profile/12/12.04/12.04-004.js new file mode 100644 index 000000000..8ea2a9fda --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.04/12.04-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a +a = function () { +} diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-001.js b/tests/test-suite-compact-profile/12/12.05/12.05-001.js new file mode 100644 index 000000000..e9e268879 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-001.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + if (true) { + return 1; + } + assert(false); +} + +test(); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-002.js b/tests/test-suite-compact-profile/12/12.05/12.05-002.js new file mode 100644 index 000000000..def94262d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + if (false) { + assert(false); + } +} + +test(); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-003.js b/tests/test-suite-compact-profile/12/12.05/12.05-003.js new file mode 100644 index 000000000..23f3afd10 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-003.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + if (true) + { + return 1; + } + else + assert(false); +} + +test(); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-004.js b/tests/test-suite-compact-profile/12/12.05/12.05-004.js new file mode 100644 index 000000000..c27337d97 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-004.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + if (false) + assert(false); + else { + return 1; + } +} + +test(); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-005.js b/tests/test-suite-compact-profile/12/12.05/12.05-005.js new file mode 100644 index 000000000..6a11fbe5e --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + if(true); +} + +test(); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-006.js b/tests/test-suite-compact-profile/12/12.05/12.05-006.js new file mode 100644 index 000000000..21def01bd --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 'w\0', b = 'w\0'; +assert(a === b); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-007.js b/tests/test-suite-compact-profile/12/12.05/12.05-007.js new file mode 100644 index 000000000..0d0572dfb --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-007.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1, b = 2; +var c; +if (a === 1) +{ + if (b === 1) + c = 3; +} +else +if (b === 2) + c = 5; +else + c = 7; + +assert(c === undefined); diff --git a/tests/test-suite-compact-profile/12/12.05/12.05-008.js b/tests/test-suite-compact-profile/12/12.05/12.05-008.js new file mode 100644 index 000000000..1d6c5f03a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.05/12.05-008.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1, b = 2; +var c; +if (a === 1) + if (b === 1) + c = 3; + else + if (b === 2) + c = 5; + else + c = 7; + +assert(c === 5); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-001.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-001.js new file mode 100644 index 000000000..debf4f7ab --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-001.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; +do + cnt++; +while (cnt < 10); + +assert(cnt === 10); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-002.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-002.js new file mode 100644 index 000000000..5c5020630 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; +do +{ + cnt++; + if (cnt === 42) { + break; + } +} while (true); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-003.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-003.js new file mode 100644 index 000000000..fcad68f69 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-003.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; +do { + cnt++; + + if (cnt === 10) + { + break; + } +} +while (0, 1); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-004.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-004.js new file mode 100644 index 000000000..2c5a1c889 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-004.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = new Object(); +do +{ + obj.x = "defined"; +} +while (delete obj.x); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-005.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-005.js new file mode 100644 index 000000000..d934514c0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-005.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 1 / 3; +do +{ +} +while (x === 3 / 9); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-006.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-006.js new file mode 100644 index 000000000..f4f57ec6c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-006.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; +do +{ + cnt++; +} +while (false); + +assert(cnt === 2); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-007.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-007.js new file mode 100644 index 000000000..809c4e9cc --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; +do +{ + cnt++; +} +while (!"string"); + +assert(cnt === 2); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-008.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-008.js new file mode 100644 index 000000000..0052be7b1 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-008.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 0; +do +{ + cnt++; +} +while (!(cnt & 0x8000)); + +assert(cnt == 32768); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-009.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-009.js new file mode 100644 index 000000000..fccfcf114 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-009.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 0; +do +{ + cnt++; +} +while + (cnt < 10 + ); + +assert(cnt === 10); + diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-010.js b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-010.js new file mode 100644 index 000000000..36ac0fce7 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.01/12.06.01-010.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 0; + +function test() +{ + do + { + cnt++; + if (cnt === 8) + return 1; + } + while (cnt < 10); + + return 0; +} + +var r = test(); + +assert(cnt === 8 && r === 1); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-001.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-001.js new file mode 100644 index 000000000..811ba0f0e --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 25; +while (cnt) + cnt--; + +assert(cnt === 0); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-002.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-002.js new file mode 100644 index 000000000..4a4c8c22c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-002.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 0; + +while (1) { + cnt++; + if (cnd === 10) + break; +} diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-003.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-003.js new file mode 100644 index 000000000..6bec187e0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-003.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 0; +while ((1234 - 34) % 23 - 1234 * 23.222) +{ + cnt++; + if (cnt === 10) + break; +} + diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-004.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-004.js new file mode 100644 index 000000000..50a6d2ef0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-004.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 33; + +while ("") + cnt /= 2; + +assert(cnt === 33); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-005.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-005.js new file mode 100644 index 000000000..cef99982f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-005.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var bVal = true; +var val = "test"; + +while (!bVal) +{ + val += " of while"; +} + +asssert(val === "test"); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-006.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-006.js new file mode 100644 index 000000000..d384626f3 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-006.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var bitField = 0x1000000; +var cnt = 0; + +while (bitField >>= 1) +{ + cnt++; +} + +assert(cnt === 24); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-007.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-007.js new file mode 100644 index 000000000..8cf7d11c4 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-007.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +var bitField = 0x1000000; +var cnt = 0; + +while + ( + bitField >>= 1 && + true + ) +{ + cnt++; +} + +assert(cnt === 24); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-008.js b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-008.js new file mode 100644 index 000000000..7aab875e2 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.02/12.06.02-008.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 25; + +function test() +{ + while (cnt) + { + cnt--; + if (cnt === 3) + return 1; + } + return 0; +} + +r = test(); + +assert(cnt === 3 && r === 1); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-001.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-001.js new file mode 100644 index 000000000..a73178a3e --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-001.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cnt = 1; + +for (var i = 0; i < 10; i++) + cnt++; + +assert(cnt === 11 && i === 10); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-002.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-002.js new file mode 100644 index 000000000..263fee5c6 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-002.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var cond = 1.999; +var cnt = 0; + +for (; cond < 10.333; cond += 1.121) + cnt++; + +assert(cnt == 8); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-003.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-003.js new file mode 100644 index 000000000..6b95b50a9 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-003.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i; + +for (i = 0; ; i += 5) +{ + if (i === 100) + break; +} diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-004.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-004.js new file mode 100644 index 000000000..9576cc717 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-004.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i; + +for (i = 1; i < 20; ) + i *= 2; + +assert(i === 32); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-005.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-005.js new file mode 100644 index 000000000..3baae7a0a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-005.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 0; +for (; ; ) +{ + if (i++ === 100) + break; +} + diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-006.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-006.js new file mode 100644 index 000000000..b5f21ada2 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-006.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +for (var i = 1; i <= 10; i++) +{ + for (var j = 1; j <= 5; j++) + { + sum += i * j; + } +} + +assert(sum === 825); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-007.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-007.js new file mode 100644 index 000000000..288ade639 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-007.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +for (var i = 1, j = 1, k = 1; i + j + k <= 100; i++, j += 2, k += 3) +{ + sum += i + j + k; +} + +assert(sum == 867); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-008.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-008.js new file mode 100644 index 000000000..0711b148d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-008.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 1; + +for (var i = 0; i < 10; i++, sum *= i) + ; + +assert(sum === 3628800); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-009.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-009.js new file mode 100644 index 000000000..920a1b997 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-009.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var init; + +for (init = (129 - 8) / 11; init != 11; ) +{ + init = 33; +} + +assert(init == 11); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-010.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-010.js new file mode 100644 index 000000000..7482e5278 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-010.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for + ( + var i = 0 + ; + i < 10 + ; + i++ + ) +{ + i++; +} + +assert(i == 10); diff --git a/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-011.js b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-011.js new file mode 100644 index 000000000..e0c16cdaf --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.06/12.06.03/12.06.03-011.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i; + +function test() +{ + for (i = 0; i < 10; i++) + { + if (i === 4) + return 1; + } + + return 0; +} + +var r = test(); + +assert(r === 1 && i === 4); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-001.js b/tests/test-suite-compact-profile/12/12.07/12.07-001.js new file mode 100644 index 000000000..b96ab516d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-001.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +for (var i = 0; i < 10; i++) +{ + if (i === 5) + { + continue; + } + + sum += i; +} + +assert(sum === 40); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-002.js b/tests/test-suite-compact-profile/12/12.07/12.07-002.js new file mode 100644 index 000000000..898f9774b --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-002.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +for (var i = 0; i < 10; i++) + for (var j = 0; j < 20; j++) + { + if (j > 9) + continue; + + sum += 1; + } + +assert(sum === 100); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-003.js b/tests/test-suite-compact-profile/12/12.07/12.07-003.js new file mode 100644 index 000000000..748833b95 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-003.js @@ -0,0 +1,38 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {p1: 1, p2: 2, p3: {p1: 100, p2: 200, p3: 100}, p4: 4, p5: 5}, sum = 0; + +top: + for (var p in o) +{ + if (p === "p2") + continue; + + if (typeof (o[p]) === "object") + { + for (var pp in o[p]) + { + if (pp === "p2") + continue top; + + sum += o[p][pp]; + } + } + + sum += 20; + +} + +assert(sum === 160); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-004.js b/tests/test-suite-compact-profile/12/12.07/12.07-004.js new file mode 100644 index 000000000..3679f4862 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-004.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {a: 1, b: 2, c: 3}; + +ForLabel: + for (var p in o) +{ + if (p === "b") + continue ForLabel; + o[p] += 4; +} + +assert(o.a === 5 && o.b === 2 && o.c === 7); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-005.js b/tests/test-suite-compact-profile/12/12.07/12.07-005.js new file mode 100644 index 000000000..b99d786a1 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-005.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; + +ForLabel: + for (var i = 0; i < 10; i++) +{ + if (i === 5) + { + continue ForLabel; + } + + sum += i; +} + +assert(sum === 40); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-006.js b/tests/test-suite-compact-profile/12/12.07/12.07-006.js new file mode 100644 index 000000000..ce91ffd61 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-006.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +top: + for (var i = 0; i < 10; i++) +{ + for (var j = 0; j < 20; j++) + { + if (j > 9 && i % 2) + continue top; + + sum += 1; + } + + sum += 1; +} + +assert(sum === 155); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-007.js b/tests/test-suite-compact-profile/12/12.07/12.07-007.js new file mode 100644 index 000000000..9f362d5f6 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-007.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mask = 0xff0f; +var numZeroes = 0; + +while (mask) +{ + mask >>= 1; + + if (mask & 1) + continue; + + numZeroes++; +} + +assert(numZeroes === 5); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-008.js b/tests/test-suite-compact-profile/12/12.07/12.07-008.js new file mode 100644 index 000000000..ffb7e9da2 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-008.js @@ -0,0 +1,33 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 10; +var cnt = 0; + +while (i-- > 0) +{ + if (i % 2) + continue; + + var j = 0; + while (j++ < 20) + { + if (j % 2 === 0) + continue; + cnt++; + } + +} + +assert(cnt === 50); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-009.js b/tests/test-suite-compact-profile/12/12.07/12.07-009.js new file mode 100644 index 000000000..60a484d78 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-009.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0, i = 0; + +WhileLabel: + while (++i < 10) +{ + if (i === 5) + { + continue WhileLabel; + } + + sum += i; +} + +assert(sum === 40); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-010.js b/tests/test-suite-compact-profile/12/12.07/12.07-010.js new file mode 100644 index 000000000..9133ff23d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-010.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +var i = 0, j = 0; +top: + while (i++ < 10) +{ + j = 0; + while (j++ < 20) + { + if (j > 9 && i % 2) + continue top; + + sum += 1; + } + + sum += 1; +} + +assert(sum === 150); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-011.js b/tests/test-suite-compact-profile/12/12.07/12.07-011.js new file mode 100644 index 000000000..960f8b2b3 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-011.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mask = 0xff0f; +var numZeroes = 0; + +do +{ + mask >>= 1; + + if (mask & 1) + continue; + + numZeroes++; +} while (mask); + +assert(numZeroes === 5); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-012.js b/tests/test-suite-compact-profile/12/12.07/12.07-012.js new file mode 100644 index 000000000..e8339be83 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-012.js @@ -0,0 +1,34 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 10; +var cnt = 0; + +do +{ + if (i % 2) + continue; + + var j = 0; + do + { + if (j % 2 === 0) + continue; + cnt++; + } + while (j++ < 20) +} +while (i-- > 0); + +assert(cnt === 60); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-013.js b/tests/test-suite-compact-profile/12/12.07/12.07-013.js new file mode 100644 index 000000000..46b211fd9 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-013.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0, i = 0; + +DoWhileLabel: + do +{ + if (i === 5) + { + continue DoWhileLabel; + } + + sum += i; +} +while (++i < 10); + +assert(sum === 40); diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-014.js b/tests/test-suite-compact-profile/12/12.07/12.07-014.js new file mode 100644 index 000000000..194ca2325 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-014.js @@ -0,0 +1,35 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +var i = 0, j = 0; +top: + do +{ + j = 0; + + do + { + if (j > 9 && i % 2) + continue top; + + sum += 1; + } + while (j++ < 20); + + sum += 1; +} +while (i++ < 10); + +assert(sum === 182); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-015.js b/tests/test-suite-compact-profile/12/12.07/12.07-015.js new file mode 100644 index 000000000..6636b74c7 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-015.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {p1: 1, p2: 2, p3: 3, p4: 4, p5: 5}, sum = 0; +for (var p in o) +{ + if (p == "p3") + { + continue; + } + + sum += o[p]; +} + +assert(sum == 12) diff --git a/tests/test-suite-compact-profile/12/12.07/12.07-016.js b/tests/test-suite-compact-profile/12/12.07/12.07-016.js new file mode 100644 index 000000000..febca40ad --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.07/12.07-016.js @@ -0,0 +1,36 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {p1: 1, p2: 2, p3: {p1: 100, p2: 200}, p4: 4, p5: 5}, sum = 0; +for (var p in o) +{ + if (p === "p2") + continue; + + if (typeof (o[p]) === "object") + { + for (var pp in o[p]) + { + if (pp === "p2") + continue; + + sum += o[p][pp]; + } + } + else { + sum += o[p]; + } +} + +assert(sum === 110); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-003.js b/tests/test-suite-compact-profile/12/12.08/12.08-003.js new file mode 100644 index 000000000..7e098fdc4 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-003.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +for (var i = 0; i < 10; i++) +{ + if (i === 5) + { + break; + } + + sum += i; +} + +assert(sum === 10); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-004.js b/tests/test-suite-compact-profile/12/12.08/12.08-004.js new file mode 100644 index 000000000..80a97a986 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-004.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function main() +{ + var sum = 0; + for (var i = 0; i < 10; i++) + for (var j = 0; j < 20; j++) + { + if (j === 10) + break; + + sum += 1; + } +} + +assert(sum === 100); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-005.js b/tests/test-suite-compact-profile/12/12.08/12.08-005.js new file mode 100644 index 000000000..f85ee2808 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-005.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; + +ForLabel: + for (var i = 0; i < 10; i++) +{ + if (i === 5) + { + break ForLabel; + } + + sum += i; +} + +assert(sum === 10); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-006.js b/tests/test-suite-compact-profile/12/12.08/12.08-006.js new file mode 100644 index 000000000..18ee2e9fe --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-006.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +top: + for (var i = 0; i < 10; i++) +{ + for (var j = 0; j < 20; j++) + { + if (j > 9 && i % 2) + break top; + + sum += 1; + } + + sum += 1; +} + +assert(sum === 31); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-007.js b/tests/test-suite-compact-profile/12/12.08/12.08-007.js new file mode 100644 index 000000000..d86e71f99 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-007.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mask = 0xff0f; +var numOnes = 0; + +while (mask) +{ + if (!(mask & 1)) + break; + + mask >>= 1; + numOnes++; +} + +assert(numOnes === 4); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-008.js b/tests/test-suite-compact-profile/12/12.08/12.08-008.js new file mode 100644 index 000000000..a356415c7 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-008.js @@ -0,0 +1,33 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 9; +var cnt = 0; + +while (i-- > 0) +{ + if (i % 2) + break; + + var j = 0; + while (j++ < 20) + { + if (j % 2 === 0) + break; + cnt++; + } + +} + +assert(cnt === 1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-009.js b/tests/test-suite-compact-profile/12/12.08/12.08-009.js new file mode 100644 index 000000000..df3ae6d39 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-009.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +var sum = 0, i = 0; + +WhileLabel: + while (++i < 10) +{ + if (i === 5) + { + break WhileLabel; + } + + sum += i; +} + +assert(sum === 10); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-010.js b/tests/test-suite-compact-profile/12/12.08/12.08-010.js new file mode 100644 index 000000000..9e396deca --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-010.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +var i = 0, j = 0; +top: + while (i++ < 10) +{ + j = 0; + while (j++ < 20) + { + if (j > 9 && i % 2) + break top; + + sum += 1; + } + + sum += 1; +} + +assert(sum === 9); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-011.js b/tests/test-suite-compact-profile/12/12.08/12.08-011.js new file mode 100644 index 000000000..f41b66cd8 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-011.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var mask = 0xff0f; +var numOnes = 0; + +do +{ + if (!(mask & 1)) + break; + + mask >>= 1; + numOnes++; +} while (mask); + +assert(numOnes === 4); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-012.js b/tests/test-suite-compact-profile/12/12.08/12.08-012.js new file mode 100644 index 000000000..242c167aa --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-012.js @@ -0,0 +1,34 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 10; +var cnt = 0; + +do +{ + var j = 0; + do + { + if (j % 2 === 0) + break; + cnt++; + } + while (j++ < 20) + + if (i % 2) + break; +} +while (i-- > 0); + +assert(cnt === 0); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-013.js b/tests/test-suite-compact-profile/12/12.08/12.08-013.js new file mode 100644 index 000000000..d4881aa5c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-013.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0, i = 0; + +DoWhileLabel: + do +{ + if (i === 5) + { + break DoWhileLabel; + } + + sum += i; +} +while (++i < 10); + +assert(sum === 10); diff --git a/tests/test-suite-compact-profile/12/12.08/12.08-014.js b/tests/test-suite-compact-profile/12/12.08/12.08-014.js new file mode 100644 index 000000000..fe8eccc0b --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.08/12.08-014.js @@ -0,0 +1,35 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var sum = 0; +var i = 0, j = 0; +top: + do +{ + j = 0; + + do + { + if (j > 9 && i % 2) + break top; + + sum += 1; + } + while (j++ < 20); + + sum += 1; +} +while (i++ < 10); + +assert(sum === 32); diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-001.js b/tests/test-suite-compact-profile/12/12.09/12.09-001.js new file mode 100644 index 000000000..8a909f372 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-001.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(typeof r == 'object' && r.prop1 === "property1" && r.prop2 === 2 && r.prop3 === false); + +function test() +{ + var o = { + prop1: "property1", + prop2: 2, + prop3: false + }; + + return o; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-002.js b/tests/test-suite-compact-profile/12/12.09/12.09-002.js new file mode 100644 index 000000000..d5cc3e73a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(r === 1); + +function test() +{ + return ((23 << 2) + 8) / 100; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-003.js b/tests/test-suite-compact-profile/12/12.09/12.09-003.js new file mode 100644 index 000000000..2237be593 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-003.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(r === 33); + +function test() +{ + return 33; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-004.js b/tests/test-suite-compact-profile/12/12.09/12.09-004.js new file mode 100644 index 000000000..861372de0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-004.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(r == undefined); + +function test() +{ + var r = 1; + return + r; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-005.js b/tests/test-suite-compact-profile/12/12.09/12.09-005.js new file mode 100644 index 000000000..ae40f1d2b --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-005.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(r === 100); + +function test() +{ + function internal() + { + return 100; + } + + return internal(); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.09/12.09-006.js b/tests/test-suite-compact-profile/12/12.09/12.09-006.js new file mode 100644 index 000000000..a7506cf3d --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.09/12.09-006.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var r = test() + +assert(typeof r == 'function'); + +function test() +{ + function internal() + { + return 100; + } + + return internal; +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-001.js b/tests/test-suite-compact-profile/12/12.10/12.10-001.js new file mode 100644 index 000000000..86181ab81 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-001.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y; + +with (Math) { + x = cos(PI); +} + +assert(x == -1); diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-002.js b/tests/test-suite-compact-profile/12/12.10/12.10-002.js new file mode 100644 index 000000000..d0f18e5cc --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {prop: "property"}; + +with (o) { + assert(prop == "property"); +} diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-003.js b/tests/test-suite-compact-profile/12/12.10/12.10-003.js new file mode 100644 index 000000000..d0f18e5cc --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-003.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = {prop: "property"}; + +with (o) { + assert(prop == "property"); +} diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-004.js b/tests/test-suite-compact-profile/12/12.10/12.10-004.js new file mode 100644 index 000000000..721db51e4 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-004.js @@ -0,0 +1,30 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x; + +function test() +{ + with (Math) + { + x = abs(-396); + return 1; + } + + return 0; +} + +var r = test(); + +assert(r === 1 && x === 396); diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-005.js b/tests/test-suite-compact-profile/12/12.10/12.10-005.js new file mode 100644 index 000000000..761a48c9a --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +with ({}) +{ + var x = "abc"; +} + +assert(x === "abc"); diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-006.js b/tests/test-suite-compact-profile/12/12.10/12.10-006.js new file mode 100644 index 000000000..48c9cb19b --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(test("hello") == "hello" && typeof test({}) == "object" && test({arg: "hello"}) == "hello") + +function test(arg) { + with (arg) { + return arg; + } +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.10/12.10-007.js b/tests/test-suite-compact-profile/12/12.10/12.10-007.js new file mode 100644 index 000000000..9fb0c0ad3 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.10/12.10-007.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x, y; + +with + ( + Math) +{ + x = cos(PI); +} + +assert(x == -1); diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-001.js b/tests/test-suite-compact-profile/12/12.11/12.11-001.js new file mode 100644 index 000000000..d3a5af490 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-001.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +switch (1) { + case 0: + assert(false); + case 1: + break; + default: + assert(false); +} diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-002.js b/tests/test-suite-compact-profile/12/12.11/12.11-002.js new file mode 100644 index 000000000..8601c79e0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-002.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var matchesCount = 0; + +switch ("key") { + case "key": + ++matchesCount; + break; + case "key": + ++matchesCount; + break; + case "another key": + ++matchesCount; + break; + default: + ++matchesCount; + break; +} + +assert(matchesCount === 1 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-003.js b/tests/test-suite-compact-profile/12/12.11/12.11-003.js new file mode 100644 index 000000000..b607e35dd --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-003.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +switch (1) { + case true: + assert(false); + case false: + break; + default: + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-004.js b/tests/test-suite-compact-profile/12/12.11/12.11-004.js new file mode 100644 index 000000000..20d997575 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-004.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var counter = 0; + +switch ("key") { + case "key": + ++counter; + case "another key": + ++counter; + case "another key2": + ++counter; + default: + ++counter; +} + +assert(counter == 4 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-005.js b/tests/test-suite-compact-profile/12/12.11/12.11-005.js new file mode 100644 index 000000000..a1458aca9 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +switch (1) { +} diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-006.js b/tests/test-suite-compact-profile/12/12.11/12.11-006.js new file mode 100644 index 000000000..15131d9cb --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-006.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function fact(n) +{ + return n < 2 ? 1 : n * fact(n - 1); +} + +switch (fact(5)) { + case 5 * fact(4): + break; + default: + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.11/12.11-007.js b/tests/test-suite-compact-profile/12/12.11/12.11-007.js new file mode 100644 index 000000000..b07a8c693 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.11/12.11-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +switch ("key") { + case "another key": + assert(false); + default: + break; + case "another key2": + assert(false); +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-001.js b/tests/test-suite-compact-profile/12/12.12/12.12-001.js new file mode 100644 index 000000000..38f331d8c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-001.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +loop: + while (true) { + break loop; +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-002.js b/tests/test-suite-compact-profile/12/12.12/12.12-002.js new file mode 100644 index 000000000..59963530f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +loop: + while (true) { + do { + for (; true; ) { + break loop; + } + } while (true); +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-003.js b/tests/test-suite-compact-profile/12/12.12/12.12-003.js new file mode 100644 index 000000000..747899734 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-003.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +switchMark: + switch (1) { + case 0: + break; + case 1: + break switchMark; + case 2: + assert(false); +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-004.js b/tests/test-suite-compact-profile/12/12.12/12.12-004.js new file mode 100644 index 000000000..c2853c70f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-004.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var i = 0; + +whileMark: + while (i < 10) { + ++i; + continue whileMark; + assert(false); +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-005.js b/tests/test-suite-compact-profile/12/12.12/12.12-005.js new file mode 100644 index 000000000..43f4753a6 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-005.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +whileMark: + for (i = 0; i < 10; ++i) { + continue whileMark; + assert(false); +} diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-006.js b/tests/test-suite-compact-profile/12/12.12/12.12-006.js new file mode 100644 index 000000000..0de1955a0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-006.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +lablemark: + if (x < 6) { + ++x; + break lablemark; +} + +assert(x !== 6); diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-007.js b/tests/test-suite-compact-profile/12/12.12/12.12-007.js new file mode 100644 index 000000000..369eca2b0 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-007.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +for (i = 0; i < 10; ++i) { + for (j = 0; j < 10; ++j) { + lablemark: + for (k = 0; k < 10; ++k) { + ++x; + break lablemark; + } + } +} + +assert(x == 100) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-008.js b/tests/test-suite-compact-profile/12/12.12/12.12-008.js new file mode 100644 index 000000000..2957584fc --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-008.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +for (i = 0; i < 10; ++i) { + lablemark: + for (j = 0; j < 10; ++j) { + for (k = 0; k < 10; ++k) { + ++x; + break lablemark; + } + } +} + +assert(x == 10) diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-009.js b/tests/test-suite-compact-profile/12/12.12/12.12-009.js new file mode 100644 index 000000000..94ac35f7f --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-009.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +lablemark: + for (i = 0; i < 10; ++i) { + for (j = 0; j < 10; ++j) { + for (k = 0; k < 10; ++k) { + ++x; + break lablemark; + } + } +} + +assert(x == 1) \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.12/12.12-010.js b/tests/test-suite-compact-profile/12/12.12/12.12-010.js new file mode 100644 index 000000000..b0967fcf2 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.12/12.12-010.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var x = 0; +for (i = 0; i < 10; ++i) { + lablemark: + for (j = 0; j < 10; ++j) { + for (k = 0; k < 10; ++k) { + ++x; + continue lablemark; + } + } +} + +assert(x == 100) diff --git a/tests/test-suite-compact-profile/12/12.13/12.13-001.js b/tests/test-suite-compact-profile/12/12.13/12.13-001.js new file mode 100644 index 000000000..495bcccc2 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.13/12.13-001.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + if (true) { + throw "error"; + } + } catch (e) { + return 0; + } + return 1; +} + +assert(test()); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.13/12.13-002.js b/tests/test-suite-compact-profile/12/12.13/12.13-002.js new file mode 100644 index 000000000..e27299867 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.13/12.13-002.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + while (true) { + throw "error"; + } + } catch (e) { + return 0; + } + return 1; +} + +assert(test); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.13/12.13-003.js b/tests/test-suite-compact-profile/12/12.13/12.13-003.js new file mode 100644 index 000000000..6549821d6 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.13/12.13-003.js @@ -0,0 +1,38 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function d() { + throw "exception"; +} +function c() { + d(); +} +function b() { + c(); +} +function a() { + b(); +} + +function test() +{ + try { + a(); + } catch (e) { + return 0; + } + return 1; +} + +assert(test()); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-001.js b/tests/test-suite-compact-profile/12/12.14/12.14-001.js new file mode 100644 index 000000000..a8023845c --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-001.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +try { + try { + throw "error"; + } catch (e) { + throw e; + } +} catch (e) { +} + +assert(false); diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-002.js b/tests/test-suite-compact-profile/12/12.14/12.14-002.js new file mode 100644 index 000000000..1643094af --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-002.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + var x = 1; + } catch (e) { + return 1; + } + + return 0; +} + +assert(test()); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-003.js b/tests/test-suite-compact-profile/12/12.14/12.14-003.js new file mode 100644 index 000000000..479e2f2f8 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-003.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + throw 1; + } catch (e) { + return e === 1 ? 0 : 1; + } + + return 1; +} + +assert (test); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-004.js b/tests/test-suite-compact-profile/12/12.14/12.14-004.js new file mode 100644 index 000000000..530c33954 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-004.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + throw "error"; + } catch (e) { + return 1; + } finally { + return 0; + } + + return 1; +} + +assert(test); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-005.js b/tests/test-suite-compact-profile/12/12.14/12.14-005.js new file mode 100644 index 000000000..47aea7a8e --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-005.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + throw "error"; + } catch (e) { + return 0; + } finally { + } + + return 1; +} + +assert(test()); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/12/12.14/12.14-006.js b/tests/test-suite-compact-profile/12/12.14/12.14-006.js new file mode 100644 index 000000000..a914bb1e4 --- /dev/null +++ b/tests/test-suite-compact-profile/12/12.14/12.14-006.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function test() +{ + try { + var x = 1; + } finally { + return 0; + } + + return 1; +} + +assert(test()); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/13/13-001.js b/tests/test-suite-compact-profile/13/13-001.js new file mode 100644 index 000000000..859d1eabb --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-001.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = 1; +for (var i = 1; i < 10; ++i) +{ + b *= i; +} +var c = b; + +assert(c == 362880); diff --git a/tests/test-suite-compact-profile/13/13-002.js b/tests/test-suite-compact-profile/13/13-002.js new file mode 100644 index 000000000..50c8f7ed1 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { + return 1; +} + +assert(foo() === 1); diff --git a/tests/test-suite-compact-profile/13/13-003.js b/tests/test-suite-compact-profile/13/13-003.js new file mode 100644 index 000000000..1b210bcbc --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(function (param1, param2) { + return 1; +}(true, "blah") === 1); diff --git a/tests/test-suite-compact-profile/13/13-004.js b/tests/test-suite-compact-profile/13/13-004.js new file mode 100644 index 000000000..5e1d00139 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-004.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { +} + +assert(typeof foo === "function"); diff --git a/tests/test-suite-compact-profile/13/13-005.js b/tests/test-suite-compact-profile/13/13-005.js new file mode 100644 index 000000000..befe8c6e8 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-005.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var foo = 1; //override + +assert (foo === 1); + +function foo() +{ + return 1; +} diff --git a/tests/test-suite-compact-profile/13/13-006.js b/tests/test-suite-compact-profile/13/13-006.js new file mode 100644 index 000000000..5b1b1c215 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-006.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { +} + +assert(foo() === undefined); diff --git a/tests/test-suite-compact-profile/13/13-007.js b/tests/test-suite-compact-profile/13/13-007.js new file mode 100644 index 000000000..499c704cf --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-007.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo(arg) { + return ++arg; +} + +assert(foo(1) === 2); diff --git a/tests/test-suite-compact-profile/13/13-009.js b/tests/test-suite-compact-profile/13/13-009.js new file mode 100644 index 000000000..48860f667 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-009.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var check = typeof (foo) === "function"; + +var foo = 1; + +check = check && (foo === 1); + +function foo() { + return 1; +} + +assert(check); diff --git a/tests/test-suite-compact-profile/13/13-010.js b/tests/test-suite-compact-profile/13/13-010.js new file mode 100644 index 000000000..f6837554c --- /dev/null +++ b/tests/test-suite-compact-profile/13/13-010.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { + return 1; +} +var object = new Object; +object.fun = foo; + +assert(object.fun() === 1); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-001.js b/tests/test-suite-compact-profile/13/13.02/13.02-001.js new file mode 100644 index 000000000..90a65570e --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var foo = function () { + this.caller = 123; +}; +var f = new foo(); +assert(f.caller === 123); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-002.js b/tests/test-suite-compact-profile/13/13.02/13.02-002.js new file mode 100644 index 000000000..a49453ae0 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-002.js @@ -0,0 +1,32 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var foo = function (c, y) { +}; +var check = foo.hasOwnProperty("length") && foo.length === 2; + +foo.length = 12; +if (foo.length === 12) + check = false; + +for (p in foo) +{ + if (p === "length") + check = false; +} +delete foo.length; +if (!foo.hasOwnProperty("length")) + check = false; + +assert(check === true); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-003.js b/tests/test-suite-compact-profile/13/13.02/13.02-003.js new file mode 100644 index 000000000..21d8795e8 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-003.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo(arg) { + arg.prop = 3; +} +var obj = new Object(); +foo(obj); + +assert(obj.prop === 3); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-004.js b/tests/test-suite-compact-profile/13/13.02/13.02-004.js new file mode 100644 index 000000000..e7b1ec623 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-004.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo(arg) { + arg += 3; +} + +var num = 1; +foo(num); // by value + +assert(num === 1); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-005.js b/tests/test-suite-compact-profile/13/13.02/13.02-005.js new file mode 100644 index 000000000..b3ae08dad --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-005.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { + return null; +} + +assert(foo() === null); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-006.js b/tests/test-suite-compact-profile/13/13.02/13.02-006.js new file mode 100644 index 000000000..2c3f81d6a --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-006.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { + return; +} + +assert(foo() === undefined); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-007.js b/tests/test-suite-compact-profile/13/13.02/13.02-007.js new file mode 100644 index 000000000..1e62c0ed9 --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-007.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = new function foo() +{ + this.prop = 1; +}; + +assert(obj.prop === 1); diff --git a/tests/test-suite-compact-profile/13/13.02/13.02-008.js b/tests/test-suite-compact-profile/13/13.02/13.02-008.js new file mode 100644 index 000000000..885a310ff --- /dev/null +++ b/tests/test-suite-compact-profile/13/13.02/13.02-008.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function func() { +} + +assert(Function.prototype.isPrototypeOf(func)); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-001.js new file mode 100644 index 000000000..3b14d765c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-001.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +a = Object(); + +assert(typeof a === 'object'); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-002.js new file mode 100644 index 000000000..b3cb2accc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +a = Object(null); + +assert(typeof a === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-003.js new file mode 100644 index 000000000..f97d0fd1a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a; +a = Object(undefined); + +assert(typeof a === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-004.js new file mode 100644 index 000000000..2c84afd18 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 1; +assert(typeof Object(a) === 'object'); + diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-005.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-005.js new file mode 100644 index 000000000..04488d862 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; + +assert(typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-006.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-006.js new file mode 100644 index 000000000..581f79f92 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; +assert(typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-007.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-007.js new file mode 100644 index 000000000..bd882aa1f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "some string"; + +assert(typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-008.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-008.js new file mode 100644 index 000000000..fa06f4c74 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "some string"; +assert(typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-009.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-009.js new file mode 100644 index 000000000..d76f81923 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + var a = new Number(123.5); +assert (typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-010.js b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-010.js new file mode 100644 index 000000000..159af4e69 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.01/15.02.01-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("nice string"); +assert(typeof Object(a) === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-001.js new file mode 100644 index 000000000..8f10d7a98 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); + +assert(typeof a === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-002.js new file mode 100644 index 000000000..062392d97 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); +var b = new Object(); + +assert(a !== b); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-003.js new file mode 100644 index 000000000..22b42b285 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-003.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); +var b = new Object(a); +assert(a === b); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-004.js new file mode 100644 index 000000000..1e3ef9212 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-004.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + field1: Number, + field2: String, + foo: function () { + return 0; + } +} +var b = new Object(a); +assert(a === b); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-005.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-005.js new file mode 100644 index 000000000..2ae4855f6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "foobar"; +var b = new Object(a); +assert(typeof b === "object" && b == a && b !== a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-006.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-006.js new file mode 100644 index 000000000..315a5122b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 5.5; +var b = new Object(a); +assert(typeof b === "object" && b == a && b !== a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-007.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-007.js new file mode 100644 index 000000000..d600dc4cb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = true; +var b = new Object(a); +assert(typeof b === "object" && b == a && b !== a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-008.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-008.js new file mode 100644 index 000000000..6457ecaab --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-008.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); +assert(typeof a === 'object' && + typeof (Object.getPrototypeOf(a)) === "object" && + Object.isExtensible(a)); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-009.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-009.js new file mode 100644 index 000000000..a335c90b2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-009.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(null); +assert(typeof a === 'object' && + typeof (Object.getPrototypeOf(a)) === "object" && + Object.isExtensible(a)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-010.js b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-010.js new file mode 100644 index 000000000..1e1b69bdc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.02/15.02.02-010.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(undefined); +assert(typeof a === 'object' && + typeof (Object.getPrototypeOf(a)) === "object" && + Object.isExtensible(a)); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-001.js new file mode 100644 index 000000000..beab99c38 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Object.getPrototypeOf(Object) == "function" && + Object.length == 1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-002.js new file mode 100644 index 000000000..5892b910c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Object.prototype == "object"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-003.js new file mode 100644 index 000000000..4e00ddd62 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-003.js @@ -0,0 +1,33 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + +writable = false; +enumerable = false; +configurable = false; + +Object.prototype = "qwerty"; +if (Object.prototype === "qwerty") + writable = true; + +for (prop in Object) +{ + if (Object[prop] == "qwerty") + enumerable = true; +} + +if (delete Object.prototype) + configurable = true; + +assert(writable || enumerable || configurable); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-004.js new file mode 100644 index 000000000..417900733 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-004.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = { + prop1: Number, + prop2: String, + prop3: true, + prop4: 0 +} + +var keys = Object.keys(object); + +assert(keys[0] == "prop1" && + keys[1] == "prop2" && + keys[2] == "prop3" && + keys[3] == "prop4"); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-005.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-005.js new file mode 100644 index 000000000..30d42e6d6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-005.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + field: Number +} + +assert(Object.getPrototypeOf(a) == Object.getPrototypeOf(Object())); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-006.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-006.js new file mode 100644 index 000000000..be0178418 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-006.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object1 = { + field1: 5, + field2: "qwe", + field3: true +} + +var object2 = { + field1: 5, + field2: "qwe", + field3: true +} + +Object.freeze(object1); + +assert(Object.isExtensible(object1) && !Object.isExtensible(object2)); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-007.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-007.js new file mode 100644 index 000000000..1f27c5534 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + foo: function () { + return 1 + } +} +desc = Object.getOwnPropertyDescriptor(a, "foo"); + +assert(desc instanceof Object); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-008.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-008.js new file mode 100644 index 000000000..4354e4a12 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-008.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object1 = { + field1: 5, + field2: "qwe", + field3: true +} + +var object2 = { + field1: 5, + field2: "qwe", + field3: true +} + +Object.freeze(object1); + +assert(Object.isFrozen(object1) && !Object.isFrozen(object2)); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-009.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-009.js new file mode 100644 index 000000000..a9d79d7f6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-009.js @@ -0,0 +1,31 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + prop1: Number, + prop2: String, + foo: function () { + return 1; + }, + bar: function () { + return 0; + } +}; +names = Object.getOwnPropertyNames(a); + +assert(names instanceof Array && + names[0] === "prop1" && + names[1] === "prop2" && + names[2] === "foo" && + names[3] === "bar"); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-010.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-010.js new file mode 100644 index 000000000..ac70c4803 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-010.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("qwe"); +names = Object.getOwnPropertyNames(a); +assert(names instanceof Array && + names[0] === "0" && + names[1] === "1" && + names[2] === "2" && + names[3] === "length"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-011.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-011.js new file mode 100644 index 000000000..8634a19df --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-011.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object1 = { + field1: 5, + field2: "qwe", + field3: true +} + +var object2 = { + field1: 5, + field2: "qwe", + field3: true +} + +Object.seal(object1); + +assert(Object.isSealed(object1) && !Object.isSealed(object2)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-012.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-012.js new file mode 100644 index 000000000..f5d089e24 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-012.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var veryUsefulObject = { +} + +Object.preventExtensions(veryUsefulObject); + +veryUsefulObject.property = "qwerty"; + +veryUsefulObject.method = function () { + return "asdf"; +} + +assert(veryUsefulObject.property && veryUsefulObject.method()); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-013.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-013.js new file mode 100644 index 000000000..c0206481d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-013.js @@ -0,0 +1,28 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var niceObject = { + niceProp1: String, + niceProp2: Number, + niceMeth: function () { + return true; + } +} +var someElseObject = { + prop1: Boolean, + prop2: Number +} +var niceChild = Object.create(niceObject, someElseObject); + +assert(Object.getPrototypeOf(niceChild) === niceObject); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-014.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-014.js new file mode 100644 index 000000000..6231f58ff --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-014.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("qwe"); //I'm not a string I'm Object-String. It's OK. +var someElseObject = { + prop1: Boolean, + prop2: Number +} +var niceChild = Object.create(a, someElseObject); + +assert(Object.getPrototypeOf(niceChild) === a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-015.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-015.js new file mode 100644 index 000000000..3726d53b9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-015.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = {} +var someElseObject = undefined; +var childObject = Object.create(a, someElseObject); //nothing is inherited + +assert(Object.getPrototypeOf(childObject) === a && Object.getOwnPropertyNames(childObject).length == 0); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-016.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-016.js new file mode 100644 index 000000000..e5c88183f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-016.js @@ -0,0 +1,49 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var emptyObject = {} + +var propertyDescriptor = { + enumerable: true, + configurable: true, + get: function () { + return myProperty; + }, + set: function (newValue) { + myProperty = newValue; + } +} + +Object.defineProperty(emptyObject, 'myProperty', propertyDescriptor); + +var checkGetSet = false; +var isEnumerable = false; +var isConfigurable = false; + +emptyObject.myProperty = "foobar"; +if (emptyObject.myProperty == "foobar") + checkGetSet = true; + +for (p in emptyObject) { + if (emptyObject[p] == "foobar") { + isEnumerable = true; + break; + } +} + +if (delete emptyObject.myProperty) + isConfigurable = true; + +assert(checkGetSet && isEnumerable && isConfigurable); + diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-017.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-017.js new file mode 100644 index 000000000..4bc52a0bb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-017.js @@ -0,0 +1,25 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = { + prop1: "qwerty", + prop2: 123, +} + +Object.freeze(object); + +object.prop1 = "asdf"; +object.prop3 = true; + +assert(!(object.prop1 === "asdf") && !delete object.prop2 && !object.prop3); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-018.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-018.js new file mode 100644 index 000000000..dab0a63c5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-018.js @@ -0,0 +1,29 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = { + prop1: Number, + prop2: String, + prop3: Boolean +} + +Object.seal(object); + +check = delete object.prop1 || delete object.prop2 || delete object.prop3; + +object.prop4 = 3; + +check = check || Boolean(object.prop4); + +assert(!check); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-019.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-019.js new file mode 100644 index 000000000..d5c66f534 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-019.js @@ -0,0 +1,53 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var emptyObject = {} + +var properties = { + prop1: { + writable: true, + enumerable: true, + configurable: false, + value: "I'm prop1" + }, + prop2: { + writable: true, + enumerable: true, + configurable: false, + value: "I'm prop2" + } +} + +var isEnumerable = true; +var isConfigurable = true; +var isWritable = false; + +Object.defineProperties(emptyObject, properties); + +emptyObject.prop1 = "hello"; +emptyObject.prop2 = "world"; + +if (emptyObject.prop1 === "hello" && emptyObject.prop2 == "world") + isWritable = true; + +for (p in emptyObject) { + if (emptyObject[p] === "hello") + isEnumerable = !isEnumerable; + else if (emptyObject[p] === "world") + isEnumerable = !isEnumerable; +} + +isConfigurable = delete emptyObject.prop1 && delete emptyObject.prop2 + +assert(isWritable && isEnumerable && !isConfigurable); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-020.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-020.js new file mode 100644 index 000000000..2349705d8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-020.js @@ -0,0 +1,44 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var emptyObject = {} + +var propertyDescriptor = { + enumerable: true, + configurable: true, + value: "hello!", + writable: true +} + +Object.defineProperty(emptyObject, 'myProperty', propertyDescriptor); + +var isWritable = false; +var isEnumerable = false; +var isConfigurable = false; + +emptyObject.myProperty = "foobar"; +if (emptyObject.myProperty == "foobar") + isWritable = true; + +for (p in emptyObject) { + if (emptyObject[p] == "foobar") { + isEnumerable = true; + break; + } +} + +if (delete emptyObject.myProperty) + isConfigurable = true; + +assert(isWritable && isEnumerable && isConfigurable); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-021.js b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-021.js new file mode 100644 index 000000000..ebe6fc6e8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.03/15.02.03-021.js @@ -0,0 +1,52 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var emptyObject = {} + +var propertyDescriptor = { + enumerable: true, + configurable: true, + value: "hello!", + writable: true +} + +Object.defineProperty(emptyObject, 'myProperty', propertyDescriptor); + +var newPropertyDescriptor = { + enumerable: false, + configurable: false, + writable: false +} + +Object.defineProperty(emptyObject, 'myProperty', newPropertyDescriptor); //change properties of property + +var isWritable = false; +var isEnumerable = false; +var isConfigurable = false; + +emptyObject.myProperty = "foobar"; +if (emptyObject.myProperty == "foobar") + isWritable = true; + +for (p in emptyObject) { + if (emptyObject[p] == "foobar") { + isEnumerable = true; + break; + } +} + +if (delete emptyObject.myProperty) + isConfigurable = true; + +assert(isWritable || isEnumerable || isConfigurable); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-001.js new file mode 100644 index 000000000..ff82ea60b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.getPrototypeOf(Object.getPrototypeOf(Object())) === null); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-002.js new file mode 100644 index 000000000..5f4df9ae0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.isExtensible(Object.getPrototypeOf(Object()))); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-001.js new file mode 100644 index 000000000..30ead3e1b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.getPrototypeOf(Object()).constructor === Object); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-002.js new file mode 100644 index 000000000..750d231a6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.01/15.02.04.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.prototype.constructor === Object); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-001.js new file mode 100644 index 000000000..9e9b8b3e0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.prototype.toString.call(undefined) === "[object Undefined]"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-002.js new file mode 100644 index 000000000..7d237bd92 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.prototype.toString.call(null) === "[object Null]"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-003.js new file mode 100644 index 000000000..f22ef9059 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = {}; +assert(obj.toString() === "[object Object]"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-004.js new file mode 100644 index 000000000..223a729e3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.02/15.02.04.02-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.prototype.toString.call(123) === "[object Number]"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-001.js new file mode 100644 index 000000000..1599d37cd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Object.prototype.toLocaleString === 'function'); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-002.js new file mode 100644 index 000000000..ea9cc40ae --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var o = new Object(); +assert(o.toLocaleString() === o.toString()); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-003.js new file mode 100644 index 000000000..acbce003f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.03/15.02.04.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.toLocaleString() === Object.toString()); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-001.js new file mode 100644 index 000000000..794472cbf --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); +assert(a.valueOf() === a); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-002.js new file mode 100644 index 000000000..20b5740c5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + n: Number(5) +} +assert(a.valueOf() === a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-003.js new file mode 100644 index 000000000..16e11e389 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-003.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = { + n: true, + s: "qwerty" +} + +assert(a.valueOf() === a); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-004.js new file mode 100644 index 000000000..22d57209f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(5); + +assert(a.valueOf() === 5); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-005.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-005.js new file mode 100644 index 000000000..28b3d7291 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 123; + +assert(a.valueOf() === 123); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-006.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-006.js new file mode 100644 index 000000000..90e15402c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Boolean(true); + +assert(a.valueOf() === true); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-007.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-007.js new file mode 100644 index 000000000..0971e5deb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = false; + +assert(a.valueOf() === false); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-008.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-008.js new file mode 100644 index 000000000..eb073d2bc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new String("qwe"); +assert(a.valueOf() === "qwe"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-009.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-009.js new file mode 100644 index 000000000..0fa702315 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "asdfgh"; +assert(a.valueOf() === "asdfgh"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-010.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-010.js new file mode 100644 index 000000000..4fcda17ac --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.04/15.02.04.04-010.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = "123"; +assert(a.valueOf() === "123"); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-001.js new file mode 100644 index 000000000..36a3be2b5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-001.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = { + prop1: 5, + prop2: "qwe", + prop3: Boolean +} + +assert(obj.hasOwnProperty("prop1")); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-002.js new file mode 100644 index 000000000..945fb62f1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = { + prop1: 5 +} + +assert(!obj.hasOwnProperty("prop5")); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-003.js new file mode 100644 index 000000000..10ed4d91f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-003.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Parent() { + this.prop = 5; +} + +function Child() { + this.prop2 = false; +} + +Child.prototype = Parent; + +var obj = new Child(); + +assert(!obj.hasOwnProperty("prop")); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-004.js new file mode 100644 index 000000000..e1ff4a94b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.05/15.02.04.05-004.js @@ -0,0 +1,27 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function Parent() { + this.prop = 5; +} + +function Child() { + this.prop2 = false; +} + +Child.prototype = Parent; + +var obj = new Child(); + +assert(obj.hasOwnProperty("prop2")); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-001.js new file mode 100644 index 000000000..15f346477 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Object(); +var b = 123; + +assert(a.isPrototypeOf(b)); + diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-002.js new file mode 100644 index 000000000..378a2fcc6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = new Object(); +var p = Object.getPrototypeOf(object); + +assert(p.isPrototypeOf(object)); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-003.js new file mode 100644 index 000000000..dd2639203 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-003.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = new Object(); +var otherObject = new Object(); + +assert(otherObject.isPrototypeOf(object)); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-004.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-004.js new file mode 100644 index 000000000..0db039cb2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = new Object(); +assert(object.isPrototypeOf(object)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-005.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-005.js new file mode 100644 index 000000000..da9db7121 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-005.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = Object.create(null); +var temp = new Object(); +assert(temp.isPrototypeOf(object)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-006.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-006.js new file mode 100644 index 000000000..b1d0a0387 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.06/15.02.04.06-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +Object.prototype.isPrototypeOf.call(undefined, {}); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-001.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-001.js new file mode 100644 index 000000000..e36e6e390 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = { + prop: true +} + +assert(!object.propertyIsEnumerable('prop2')); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-002.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-002.js new file mode 100644 index 000000000..c8adb82eb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-002.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = {} + +var propertyDescriptor = { + enumerable: true, + configurable: true, + value: "qwe", + writable: true +} + +Object.defineProperty(object, 'prop', propertyDescriptor); + +assert(object.propertyIsEnumerable('prop')); diff --git a/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-003.js b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-003.js new file mode 100644 index 000000000..a2d97f532 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.02/15.02.04/15.02.04.07/15.02.04.07-003.js @@ -0,0 +1,26 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var object = {} + +var propertyDescriptor = { + enumerable: false, + configurable: true, + value: "qwe", + writable: true +} + +Object.defineProperty(object, 'prop', propertyDescriptor); + +assert(object.propertyIsEnumerable('prop')); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-001.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-001.js new file mode 100644 index 000000000..4f4120823 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var func = new Function("a,b", "c", "return a+b+c") +assert(func(1, 2, 3) == 6); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-002.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-002.js new file mode 100644 index 000000000..2fa71d3fe --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-002.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +try +{ + Function('a', 'a', '"use strict";'); + assert(false); +} +catch (e) +{ +} diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-004.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-004.js new file mode 100644 index 000000000..ebb181713 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-004.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +try +{ + Function('eval', '"use strict";'); + assert(false); +} +catch (e) +{ +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-005.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-005.js new file mode 100644 index 000000000..3da56806a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-005.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; +try +{ + Function('eval', 'return;'); + +} +catch (e) +{ + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-007.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-007.js new file mode 100644 index 000000000..8a69db6e8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-007.js @@ -0,0 +1,22 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +try +{ + Function('a,a', '"use strict";'); + assert(false); +} +catch (e) +{ +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-008.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-008.js new file mode 100644 index 000000000..9cf475d66 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-008.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; + +try +{ + Function('a,a', 'return a;'); +} +catch (e) +{ + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-009.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-009.js new file mode 100644 index 000000000..89550e827 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-009.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; + +try +{ + Function('arguments', 'return;'); +} +catch (e) +{ + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-010.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-010.js new file mode 100644 index 000000000..607872fbd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-010.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; + +var foo = new Function("baz", "qux", "baz", "return 0;"); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-011.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-011.js new file mode 100644 index 000000000..a73a774aa --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-011.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; +var foo = new Function("baz", "baz", "baz", "return 0;"); + +assert(false); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-012s.js b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-012s.js new file mode 100644 index 000000000..9e4fff3a4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.02/15.03.02.01/15.03.02.01-012s.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +"use strict"; + +try +{ + Function('a', 'a', 'return;'); +} +catch (e) +{ + assert(false); +} diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-001.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-001.js new file mode 100644 index 000000000..d6a18c55a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.hasOwnProperty("prototype")); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-002.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-002.js new file mode 100644 index 000000000..8669f5f5d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.isPrototypeOf(Function)); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-003.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-003.js new file mode 100644 index 000000000..70c1c2fc3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +Function.prototype.indicator = 1; +assert (Function.indicator === 1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-004.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-004.js new file mode 100644 index 000000000..9055299d2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.hasOwnProperty("length")); +assert(Function.length === 1); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-001.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-001.js new file mode 100644 index 000000000..6abd662d9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-001.js @@ -0,0 +1,35 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var obj = Function.prototype; +Function.prototype = function () { + return "shifted"; +}; + +if (Function.prototype !== obj) +{ + assert(false); +} + +try +{ + if (Function.prototype() !== undefined) + { + assert(false); + } +} +catch (e) +{ + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-002.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-002.js new file mode 100644 index 000000000..800096cdc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-002.js @@ -0,0 +1,31 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +if (Function.propertyIsEnumerable('prototype')) +{ + assert(false); +} + +var count = 0; + +for (p in Function) +{ + if (p === "prototype") + count++; +} + +if (count !== 0) +{ + assert(false); +} diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-003.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-003.js new file mode 100644 index 000000000..435d002d5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-003.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +delete Function.prototype; + +if (!(Function.hasOwnProperty('prototype'))) +{ + assert(false); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-004.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-004.js new file mode 100644 index 000000000..592fc22ce --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.01/15.03.03.01-004.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +function foo() { +} + +Object.defineProperty(foo, 'prototype', {value: {}}); +assert(foo.prototype === + Object.getOwnPropertyDescriptor(foo, 'prototype').value); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.02/15.03.03.02-001.js b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.02/15.03.03.02-001.js new file mode 100644 index 000000000..49df13c56 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.03/15.03.03.02/15.03.03.02-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var desc = Object.getOwnPropertyDescriptor(Function, "length"); +assert(desc.value === 1 && + desc.writable === false && + desc.enumerable === false && + desc.configurable === false); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-001.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-001.js new file mode 100644 index 000000000..a9b967ae2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-001.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.toString.hasOwnProperty('length')); +assert(delete Function.prototype.toString.length); +assert(Function.prototype.toString.hasOwnProperty('length')); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-002.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-002.js new file mode 100644 index 000000000..559d31a49 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-002.js @@ -0,0 +1,24 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var FACTORY = Function.prototype.toString; + +try +{ + var instance = new FACTORY; + assert(false); +} +catch (e) +{ +} diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-003.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-003.js new file mode 100644 index 000000000..5c70aad1f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-003.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.toString.hasOwnProperty('length')); +assert(!Function.prototype.toString.propertyIsEnumerable('length')); +for (p in Function.prototype.toString) +{ + assert(p !== "length"); +} \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-004.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-004.js new file mode 100644 index 000000000..a9b967ae2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.toString.hasOwnProperty('length')); +assert(delete Function.prototype.toString.length); +assert(Function.prototype.toString.hasOwnProperty('length')); diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-005.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-005.js new file mode 100644 index 000000000..214c5031d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-005.js @@ -0,0 +1,23 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.toString.hasOwnProperty('length')); + +var obj = Function.prototype.toString.length; + +Function.prototype.toString.length = function () { + return "shifted"; +}; + +assert(Function.prototype.toString.length === obj); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-006.js b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-006.js new file mode 100644 index 000000000..61ceff532 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.03/15.03.04/15.03.04.02/15.03.04.02-006.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.toString.hasOwnProperty("length")); +assert(Function.prototype.toString.length === 0); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-001.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-001.js new file mode 100644 index 000000000..749ca81dc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(); +assert(typeof a === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-002.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-002.js new file mode 100644 index 000000000..a533a0194 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(1, 2, 5); +assert(a.length === 3); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-003.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-003.js new file mode 100644 index 000000000..b64b98c6a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(1, 2, 5); +assert(a[0] === 1); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-004.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-004.js new file mode 100644 index 000000000..cf503f2ba --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(1, 2, 5); +assert(a[1] === 2); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-005.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-005.js new file mode 100644 index 000000000..cb0bd2d5b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(1, 2, 5); +assert(a[2] === 5); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-006.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-006.js new file mode 100644 index 000000000..e16f8a3c9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(1, 2, 5); +assert(a[3] === undefined); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-007.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-007.js new file mode 100644 index 000000000..90de839d7 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(); +assert(a.length === 0); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-008.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-008.js new file mode 100644 index 000000000..a9fd6d721 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.01/15.04.02.01-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(); +assert(a[0] === undefined); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-001.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-001.js new file mode 100644 index 000000000..2f2be0123 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(5); +assert(typeof a === 'object'); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-002.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-002.js new file mode 100644 index 000000000..230966a8d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(5); +assert(a.length === 5); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-003.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-003.js new file mode 100644 index 000000000..e48d091dd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(5); +assert(a[0] === undefined); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-004.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-004.js new file mode 100644 index 000000000..22f32848d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(5); +assert(a[3] === undefined); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-005.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-005.js new file mode 100644 index 000000000..90d82278a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(5); +assert(a[10] === undefined); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-006.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-006.js new file mode 100644 index 000000000..dbf07df7c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array(0); +assert(a.length === 0); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-007.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-007.js new file mode 100644 index 000000000..024d92404 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array("5"); +assert(a.length === 1); diff --git a/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-008.js b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-008.js new file mode 100644 index 000000000..3f8bbd638 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.04/15.04.02/15.04.02.02/15.04.02.02-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Array("55"); +assert(a[0] === "55"); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-001.js new file mode 100644 index 000000000..e7ea56ee1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String() === String("") ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-002.js new file mode 100644 index 000000000..e43b63c51 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(undefined) === "undefined" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-003.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-003.js new file mode 100644 index 000000000..099010c10 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(null) === "null" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-004.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-004.js new file mode 100644 index 000000000..09b94ab82 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(true) === "true" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-005.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-005.js new file mode 100644 index 000000000..58b5cebf1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(false) === "false" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-006.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-006.js new file mode 100644 index 000000000..9cdac57f8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(NaN) === "NaN"); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-007.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-007.js new file mode 100644 index 000000000..f1c2b39be --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(+0) === "0" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-008.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-008.js new file mode 100644 index 000000000..de016b042 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(-0) === "0" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-009.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-009.js new file mode 100644 index 000000000..8919c1526 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(-1) === "-" + String(1) ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-010.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-010.js new file mode 100644 index 000000000..1bdbc8111 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(Infinity) === "Infinity" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-011.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-011.js new file mode 100644 index 000000000..301f80292 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(123000) === "123000" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-012.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-012.js new file mode 100644 index 000000000..b79fb7d11 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(10000000000000000000) === "10000000000000000000" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-013.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-013.js new file mode 100644 index 000000000..3685d9f46 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(0.111111111111111) === "0.111111111111111" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-014.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-014.js new file mode 100644 index 000000000..db5dba941 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(0.00000111111111111111) === "0.00000111111111111111" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-015.js b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-015.js new file mode 100644 index 000000000..00caad20c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.01/15.05.01.01/15.05.01.01-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String(0.000000111111111111111) === "1.11111111111111e-7" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-001.js new file mode 100644 index 000000000..234738851 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String.prototype.isPrototypeOf(new String("")) ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-002.js new file mode 100644 index 000000000..441dd5f61 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.02/15.05.02.01/15.05.02.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var s = new String(""); +s.x = 1; +assert((s.x === 1) ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-001.js new file mode 100644 index 000000000..485552225 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +String.prototype = 1; +assert(String.prototype !== 1); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-002.js new file mode 100644 index 000000000..8144ddccb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.01/15.05.03.01-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (var p in String) { + if (p === String.prototype) { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-001.js new file mode 100644 index 000000000..761412a2a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String.fromCharCode() === "" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-002.js new file mode 100644 index 000000000..ffb5b35ab --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.03/15.05.03.02/15.05.03.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String.fromCharCode(65, 66, 67) === "ABC" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.01/15.05.04.01-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.01/15.05.04.01-001.js new file mode 100644 index 000000000..94fc96bf7 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.01/15.05.04.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((String.prototype.constructor === String) ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-001.js new file mode 100644 index 000000000..da4edf717 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((String("abc").toString() === "abc") ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-002.js new file mode 100644 index 000000000..afca5ab50 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.02/15.05.04.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(("abc".toString() === "abc") ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.03/15.05.04.03-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.03/15.05.04.03-001.js new file mode 100644 index 000000000..01271316f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.03/15.05.04.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").valueOf() === "abc" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-001.js new file mode 100644 index 000000000..611893c1d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charAt(-1) === "" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-002.js new file mode 100644 index 000000000..6ab651540 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charAt(3) === "" ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-003.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-003.js new file mode 100644 index 000000000..23070fbaa --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charAt(0) === "a" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-004.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-004.js new file mode 100644 index 000000000..f618d1b83 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.04/15.05.04.04-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charAt("0") === "a" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-001.js new file mode 100644 index 000000000..d4d0d9cfc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(String("abc").charCodeAt(-1)) ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-002.js new file mode 100644 index 000000000..805c77b63 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charCodeAt(3) === NaN ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-003.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-003.js new file mode 100644 index 000000000..9de61a46c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charCodeAt(0) === 97 ? 1 : 0); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-004.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-004.js new file mode 100644 index 000000000..6ba0a23f0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.05/15.05.04.05-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").charCodeAt("0") === 97 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-001.js new file mode 100644 index 000000000..d5feb7472 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abc").concat("d") === "abcd" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-002.js new file mode 100644 index 000000000..6de51ddb1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String().concat() === "" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-003.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-003.js new file mode 100644 index 000000000..0b9d4fb5d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String().concat("a", "b", "c") === "abc" ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-004.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-004.js new file mode 100644 index 000000000..952783494 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.06/15.05.04.06-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String().concat.length === 1 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-001.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-001.js new file mode 100644 index 000000000..e676263a6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abcd").indexOf("ab") === 0 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-002.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-002.js new file mode 100644 index 000000000..d8e9753af --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(String("abcd").indexOf("ab", 0) === 0 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-003.js b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-003.js new file mode 100644 index 000000000..0ae45b8b6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.05/15.05.04/15.05.04.07/15.05.04.07-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(string("abcd").indexOf("ab", 1) === -1 ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-001.js new file mode 100644 index 000000000..042beac93 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(undefined)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-002.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-002.js new file mode 100644 index 000000000..c89d4953c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(null)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-003.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-003.js new file mode 100644 index 000000000..730e03089 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(false)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-004.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-004.js new file mode 100644 index 000000000..345607b1b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true === Boolean(true)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-005.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-005.js new file mode 100644 index 000000000..140fc67ff --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(+0)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-006.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-006.js new file mode 100644 index 000000000..7805ee610 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(-0)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-007.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-007.js new file mode 100644 index 000000000..13d2a788a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean(NaN)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-008.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-008.js new file mode 100644 index 000000000..6a18402f9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true === Boolean(11111)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-009.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-009.js new file mode 100644 index 000000000..c1f9903d1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true === Boolean(-11111)); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-010.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-010.js new file mode 100644 index 000000000..bd87baa11 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(false === Boolean("")); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-011.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-011.js new file mode 100644 index 000000000..fb1b4923c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true === Boolean("abcdef")); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-012.js b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-012.js new file mode 100644 index 000000000..e843f7733 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.01/15.06.01.01/15.06.01.01-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true === Boolean({})); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-001.js new file mode 100644 index 000000000..1a82925f6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Boolean.prototype.isPrototypeOf(new Boolean(true))); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-002.js b/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-002.js new file mode 100644 index 000000000..2d9016827 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.02/15.06.02.01/15.06.02.01-002.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = new Boolean(true); +b.x = 1; +assert((b.x === 1) ? 1 : 0); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.03/15.06.03.01/15.06.03.01-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.03/15.06.03.01/15.06.03.01-001.js new file mode 100644 index 000000000..66962004f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.03/15.06.03.01/15.06.03.01-001.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (var p in Boolean) { + if (p === Boolean.prototype) { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.01/15.06.04.01-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.01/15.06.04.01-001.js new file mode 100644 index 000000000..1e5427717 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.01/15.06.04.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Boolean.prototype.constructor === Boolean); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-001.js new file mode 100644 index 000000000..4521c2dee --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Boolean(true).toString() === "true"); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-002.js b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-002.js new file mode 100644 index 000000000..86b87e525 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Boolean(false).toString() === "false"); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-003.js b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-003.js new file mode 100644 index 000000000..c8245a5e6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.02/15.06.04.02-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(true.toString() === "true"); diff --git a/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.03/15.06.04.03-001.js b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.03/15.06.04.03-001.js new file mode 100644 index 000000000..1517ff689 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.06/15.06.04/15.06.04.03/15.06.04.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Boolean(false).valueOf() === false); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07-001.js b/tests/test-suite-compact-profile/15/15.07/15.07-001.js new file mode 100644 index 000000000..6d491ae7b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07-001.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number; +Number = null; +var b = new a(5); +assert(b !== 5); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07-002.js b/tests/test-suite-compact-profile/15/15.07/15.07-002.js new file mode 100644 index 000000000..f9d1489f1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07-002.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number; +Number = null; +var b = new a(5) +assert(b === 5); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-001.js new file mode 100644 index 000000000..0b059c1b2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number("123456") === 123456); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-002.js new file mode 100644 index 000000000..14e112800 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (typeof Number("123456") === "number"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-003.js new file mode 100644 index 000000000..34be00911 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Number(new Object()) === "number"); + diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-004.js new file mode 100644 index 000000000..33390523e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Number(753) === 753); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-005.js new file mode 100644 index 000000000..27c0db48e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Number() === +0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-006.js new file mode 100644 index 000000000..18a4a7c56 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-006.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number(new Error()))); + diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-007.js new file mode 100644 index 000000000..f4162f45a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-007.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Number("abcdefg") === "number"); + diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-008.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-008.js new file mode 100644 index 000000000..86d564e1e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number("abcdefg"))); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-009.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-009.js new file mode 100644 index 000000000..a791faedf --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number(function a() {return Infinity}))); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-010.js b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-010.js new file mode 100644 index 000000000..43f0a0ea1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.01/15.07.01-010.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number; +Number = null; +var b = a(2); +assert(b === 2 && typeof b === "number"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-001.js new file mode 100644 index 000000000..a5abab855 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number("123456"); +assert((a == 123456) && (typeof a === 'object')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-002.js new file mode 100644 index 000000000..359f4d1be --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(); +assert((a == +0.0) && (typeof a === 'object')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-003.js new file mode 100644 index 000000000..4f1638690 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-003.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number +Number = null +var b = new a("1e12") +assert(b == 1000000000000 && typeof b === "object"); + diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-004.js new file mode 100644 index 000000000..0e78f2942 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-004.js @@ -0,0 +1,18 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number +Number = null +var b = new a("1e12") +assert(b.toString(35) === "fiyo05lf"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-005.js new file mode 100644 index 000000000..1a97a530a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-005.js @@ -0,0 +1,20 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number +Number = null +var b = new a("1e12") +b.c = new a(new Error()) + +assert(typeof b.c === "object" && isNaN(b.c)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-006.js new file mode 100644 index 000000000..b20f52649 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-006.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number +Number = null +var b = new a("1e12") +b.c = new a(new a(777)) +assert(typeof b.c === "object" && b.c.valueOf() === 777) diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-007.js new file mode 100644 index 000000000..18070e839 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-007.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +delete Number.prototype.toString; +var a = new Number() +assert(a.toString() === "[object Number]"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-008.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-008.js new file mode 100644 index 000000000..846c39f74 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(null) +assert(Number.prototype.isPrototypeOf(a)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-009.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-009.js new file mode 100644 index 000000000..96b650eed --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(null) +assert(Number.prototype === a.constructor.prototype); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-010.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-010.js new file mode 100644 index 000000000..05186e8ad --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-010.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.prototype +var a = Number +Number = null +var c = new a(5) +assert(b === c.constructor.prototype); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-011.js b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-011.js new file mode 100644 index 000000000..4f083835f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.02/15.07.02-011.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(); +assert(a.valueOf() === +0.0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-001.js new file mode 100644 index 000000000..412404f67 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.constructor.prototype === Function.prototype); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-002.js new file mode 100644 index 000000000..f1a67e879 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("length") && Number.length === 1); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-003.js new file mode 100644 index 000000000..cfa276d10 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Function.prototype.isPrototypeOf(Number) === true); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-004.js new file mode 100644 index 000000000..28703464e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var p = Object.getPrototypeOf(Number); +assert(p === Function.prototype); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-001.js new file mode 100644 index 000000000..1a24e8dee --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("prototype")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-002.js new file mode 100644 index 000000000..4e37eb569 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-002.js @@ -0,0 +1,19 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Object.getOwnPropertyDescriptor(Number, 'prototype'); + +assert((a.writable === false && + a.enumerable === false && + a.configurable === false)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-003.js new file mode 100644 index 000000000..2c4b036c8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.getPrototypeOf(new Number()) === Number.prototype); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-004.js new file mode 100644 index 000000000..a1507d7f1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.prototype +Number.prototype = 4 +assert(Number.prototype != 4 && Number.prototype === b) diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-005.js new file mode 100644 index 000000000..be9cbe021 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(delete Number.prototype === false) diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-006.js new file mode 100644 index 000000000..3a8b28104 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!Number.propertyIsEnumerable('prototype')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-007.js new file mode 100644 index 000000000..254afa582 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-007.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "prototype") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-008.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-008.js new file mode 100644 index 000000000..c2a8fcbf8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-008.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +delete Number.prototype.toString +assert(Number.prototype.toString() === "[object Number]"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-009.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-009.js new file mode 100644 index 000000000..121fd9ed5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +Number.prototype.toString = Object.prototype.toString; +assert(Number.prototype.toString() === "[object Number]"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-010.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-010.js new file mode 100644 index 000000000..bd4e9bbd3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype == +0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-011.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-011.js new file mode 100644 index 000000000..0676db386 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.01/15.07.03.01-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Number.prototype === Number.POSITIVE_INFINITY); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-001.js new file mode 100644 index 000000000..9a9670231 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("MAX_VALUE")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-002.js new file mode 100644 index 000000000..3aaf4e3ca --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE === 1.7976931348623157e308); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-003.js new file mode 100644 index 000000000..3aaf4e3ca --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MAX_VALUE === 1.7976931348623157e308); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-004.js new file mode 100644 index 000000000..7388152a4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.MAX_VALUE; +Number.MAX_VALUE = 0; +assert(Number.MAX_VALUE === b); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-005.js new file mode 100644 index 000000000..d1dd3d49f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(delete Number.MAX_VALUE)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-006.js new file mode 100644 index 000000000..d55621066 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.02/15.07.03.02-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "MAX_VALUE") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-001.js new file mode 100644 index 000000000..29aeeccc4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("MIN_VALUE")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-002.js new file mode 100644 index 000000000..f3e1a1c4a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MIN_VALUE === 5e-324); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-003.js new file mode 100644 index 000000000..f3e1a1c4a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.MIN_VALUE === 5e-324); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-004.js new file mode 100644 index 000000000..8152c8f1c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.MIN_VALUE +Number.MIN_VALUE = 0 +assert(Number.MIN_VALUE === b);f diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-005.js new file mode 100644 index 000000000..90d18751b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(delete Number.MIN_VALUE)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-006.js new file mode 100644 index 000000000..4044d0b3b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.03/15.07.03.03-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "MIN_VALUE") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-001.js new file mode 100644 index 000000000..8025d8ab5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("NaN")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-002.js new file mode 100644 index 000000000..dde83d255 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Number.NaN)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-003.js new file mode 100644 index 000000000..372127781 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-003.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "NaN") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-004.js new file mode 100644 index 000000000..c27d7e271 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +Number.NaN = 0; +assert(isNaN(Number.NaN)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-005.js new file mode 100644 index 000000000..1931e00ad --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.04/15.07.03.04-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(delete Number.NaN); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-001.js new file mode 100644 index 000000000..d36cb0550 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("NEGATIVE_INFINITY")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-002.js new file mode 100644 index 000000000..0b2a73a66 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isFinite(Number.NEGATIVE_INFINITY) && Number.NEGATIVE_INFINITY < 0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-003.js new file mode 100644 index 000000000..c43f81083 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.NEGATIVE_INFINITY === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-004.js new file mode 100644 index 000000000..45b084530 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.NEGATIVE_INFINITY; +Number.NEGATIVE_INFINITY = 0; +assert(Number.NEGATIVE_INFINITY === b); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-005.js new file mode 100644 index 000000000..52fc1c720 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(delete Number.NEGATIVE_INFINITY); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-006.js new file mode 100644 index 000000000..ea2962bf3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "NEGATIVE_INFINITY") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-007.js new file mode 100644 index 000000000..a58a90131 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.05/15.07.03.05-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.propertyIsEnumerable('NEGATIVE_INFINITY')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-001.js new file mode 100644 index 000000000..81d9570a3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.hasOwnProperty("POSITIVE_INFINITY")); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-002.js new file mode 100644 index 000000000..cbae01aeb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isFinite(Number.POSITIVE_INFINITY) && Number.POSITIVE_INFINITY > 0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-003.js new file mode 100644 index 000000000..c687f1c89 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.POSITIVE_INFINITY === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-004.js new file mode 100644 index 000000000..362b5e2bb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-004.js @@ -0,0 +1,17 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var b = Number.POSITIVE_INFINITY +Number.POSITIVE_INFINITY = 0 +assert(Number.POSITIVE_INFINITY === b); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-005.js new file mode 100644 index 000000000..97170446b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(delete Number.POSITIVE_INFINITY)); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-006.js new file mode 100644 index 000000000..4ff94ff9c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-006.js @@ -0,0 +1,21 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +for (x in Number) +{ + if (x === "POSITIVE_INFINITY") + { + assert(false); + } +} diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-007.js new file mode 100644 index 000000000..9bb08e24b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.03/15.07.03.06/15.07.03.06-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!Number.propertyIsEnumerable('POSITIVE_INFINITY')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-001.js new file mode 100644 index 000000000..dba6877f9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +delete Number.prototype.toString +assert(Number.prototype.toString() === "[object Number]"); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-002.js new file mode 100644 index 000000000..b3cf15593 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Number.prototype === "object" && Number.prototype == +0.0); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-003.js new file mode 100644 index 000000000..8631652e8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Object.prototype.isPrototypeOf(Number.prototype)); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-001.js new file mode 100644 index 000000000..e495e248a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.hasOwnProperty('constructor')); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-002.js new file mode 100644 index 000000000..d7a92b4d0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.01/15.07.04.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.constructor === Number); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-001.js new file mode 100644 index 000000000..f01fc19f3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = Number(0.1); +assert(a.toString(36) === "0.3llllllllllqsn8td1p464unmi"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-002.js new file mode 100644 index 000000000..8102c9832 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +a=new Number(13475865.23561782356176235123856134) +assert(a.toString(36) === "80u1l.8hczgt3y3tbj4i"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-003.js new file mode 100644 index 000000000..04e8ae6fd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-003.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = new Number(15); +assert(a.toString(2) === "1111"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-004.js new file mode 100644 index 000000000..9d2921e97 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-004.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = 123456789012345 +assert(a.toString(8) === "3404420603357571"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-005.js new file mode 100644 index 000000000..e7f7a8278 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-005.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var a = -123456789012345 +assert(a.toString(8) === "-3404420603357571"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-006.js new file mode 100644 index 000000000..ab02cce3b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toString(2) === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-008.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-008.js new file mode 100644 index 000000000..3ad1f1f5e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toString() === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-009.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-009.js new file mode 100644 index 000000000..f18e1d017 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-009.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.hasOwnProperty('toString') && + typeof Number.prototype.toString === "function"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-010.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-010.js new file mode 100644 index 000000000..17048e97e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((new Number(NaN)).toString() === "NaN"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-011.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-011.js new file mode 100644 index 000000000..ee04714f2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((new Number(NaN)).toString(undefined) === "NaN") diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-012.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-012.js new file mode 100644 index 000000000..d433b9a00 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert((new Number(Number.POSITIVE_INFINITY)).toString(undefined) === "Infinity"); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-013.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-013.js new file mode 100644 index 000000000..089b726f2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.02/15.07.04.02-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert ((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) === "-Infinity"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-001.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-001.js new file mode 100644 index 000000000..36ca3e545 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed() === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-002.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-002.js new file mode 100644 index 000000000..ab2e89ca2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed(0) === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-003.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-003.js new file mode 100644 index 000000000..65a3b0bac --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed(1) === "0.0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-004.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-004.js new file mode 100644 index 000000000..ef7d42f7b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Number.prototype.toFixed(1.1) === "0.0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-005.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-005.js new file mode 100644 index 000000000..a78b8b3e3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed(0.9) === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-006.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-006.js new file mode 100644 index 000000000..3346bf2dd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Number.prototype.toFixed("1") === "0.0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-007.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-007.js new file mode 100644 index 000000000..f0a8cb1a0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed(Number.NaN) === "0"); diff --git a/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-008.js b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-008.js new file mode 100644 index 000000000..e0f59bb4c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.07/15.07.04/15.07.04.05/15.07.04.05-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Number.prototype.toFixed("some string") === "0"); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-001.js new file mode 100644 index 000000000..ed2a2ffdd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.abs(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-002.js new file mode 100644 index 000000000..4d2ad4e49 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.abs(-0.0) === +0.0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-003.js new file mode 100644 index 000000000..b0b42303b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.abs(Number.NEGATIVE_INFINITY) === Number.POSITIVE_INFINITY); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-004.js new file mode 100644 index 000000000..b82521884 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +asseert(Math.abs(Number.NEGATIVE_INFINITY) === Number.POSITIVE_INFINITY); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-005.js new file mode 100644 index 000000000..34473165b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.01/15.08.02.01-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.abs(-123513745) === 123513745); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-001.js new file mode 100644 index 000000000..82e13881a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.acos(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-002.js new file mode 100644 index 000000000..b1f086473 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isNaN(Math.acos(1.00000000000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-003.js new file mode 100644 index 000000000..78417a0b4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.acos(Number.NEGATIVE_INFINITY))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-004.js new file mode 100644 index 000000000..aeef9f904 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.acos(1) === +0.0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-005.js new file mode 100644 index 000000000..38f9e6fb4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.acos(1.000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-006.js new file mode 100644 index 000000000..6525d47ab --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.02/15.08.02.02-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.acos(-7))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-001.js new file mode 100644 index 000000000..ad91b019c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.asin(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-002.js new file mode 100644 index 000000000..0c673e87f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.asin(1.000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-003.js new file mode 100644 index 000000000..e9406fc46 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isNaN(Math.asin(1.0000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-004.js new file mode 100644 index 000000000..3fb584da5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isNaN(Math.asin(-1.0000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-005.js new file mode 100644 index 000000000..635e853bc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.asin(-1.000000000000001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-006.js new file mode 100644 index 000000000..f42babcee --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.asin(-3))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-007.js new file mode 100644 index 000000000..e4e427976 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.asin(+0) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-008.js new file mode 100644 index 000000000..7371cbca0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.asin(-0) === -0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-009.js new file mode 100644 index 000000000..13dfbc6d1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.03/15.08.02.03-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.asin(1) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-001.js new file mode 100644 index 000000000..8beb0693c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.atan(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-002.js new file mode 100644 index 000000000..00346f0ee --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.atan(undefined))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-003.js new file mode 100644 index 000000000..d6651dc93 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.atan({}))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-004.js new file mode 100644 index 000000000..069594491 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(+0) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-005.js new file mode 100644 index 000000000..a43f520ad --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(-0) === -0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-006.js new file mode 100644 index 000000000..f0cb91db4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(Infinity) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-007.js new file mode 100644 index 000000000..d70f8e8f8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(Number.POSITIVE_INFINITY) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-008.js new file mode 100644 index 000000000..66b57d6ad --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(Number.NEGATIVE_INFINITY) === -Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-009.js new file mode 100644 index 000000000..badf62990 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.04/15.08.02.04-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan(-1) === -Math.PI / 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-001.js new file mode 100644 index 000000000..45f34e0c3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.atan2(NaN, 1))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-002.js new file mode 100644 index 000000000..69c4426a6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.atan2(1, NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-003.js new file mode 100644 index 000000000..a1c253a7c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Number.MIN_VALUE, +0) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-004.js new file mode 100644 index 000000000..248809da6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!(Math.atan2(0, +0) === Math.PI / 2)); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-005.js new file mode 100644 index 000000000..1b7b651c5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(1, -0) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-006.js new file mode 100644 index 000000000..31e6761f3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(+0, Number.MAX_VALUE) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-007.js new file mode 100644 index 000000000..24d64ad9d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(+0, +0) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-008.js new file mode 100644 index 000000000..373580ac9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(+0, -0) === Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-009.js new file mode 100644 index 000000000..1672c91dc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(+0, -Number.MIN_VALUE) === Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-010.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-010.js new file mode 100644 index 000000000..69badf079 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(+0, -Infinity) === Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-011.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-011.js new file mode 100644 index 000000000..a8812a821 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-0, Infinity) === -0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-012.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-012.js new file mode 100644 index 000000000..6c225f101 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-0, +0) === -0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-013.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-013.js new file mode 100644 index 000000000..32d84a717 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-0, -0) === -Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-014.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-014.js new file mode 100644 index 000000000..ec8dad7c1 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-0, -Number.MIN_VALUE) === -Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-015.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-015.js new file mode 100644 index 000000000..e445009d5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-0, -Infinity) === -Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-016.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-016.js new file mode 100644 index 000000000..3e7d61427 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-99999999, +0) === -Math.PI/2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-017.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-017.js new file mode 100644 index 000000000..d4589b444 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-99999999, -0) === -Math.PI/2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-018.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-018.js new file mode 100644 index 000000000..b9c2421cd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-018.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(1, Infinity) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-019.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-019.js new file mode 100644 index 000000000..531842f16 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Number.MAX_VALUE, -Infinity) === Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-020.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-020.js new file mode 100644 index 000000000..09b800e7e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-020.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Number.MAX_VALUE, Number.POSITIVE_INFINITY) === -0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-021.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-021.js new file mode 100644 index 000000000..6a43491e8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-021.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Number.MIN_VALUE, Number.NEGATIVE_INFINITY) === -Math.PI); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-022.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-022.js new file mode 100644 index 000000000..4096e56d0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-022.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Infinity, 1) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-023.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-023.js new file mode 100644 index 000000000..933e99763 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-023.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Infinity, -1) === Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-024.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-024.js new file mode 100644 index 000000000..8f0b49125 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-024.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Infinity, -1) === -Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-025.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-025.js new file mode 100644 index 000000000..40566e309 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-025.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Infinity, -999999999) === -Math.PI / 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-026.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-026.js new file mode 100644 index 000000000..0aad30b58 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-026.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Infinity, Infinity) === Math.PI / 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-027.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-027.js new file mode 100644 index 000000000..56674c540 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-027.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(Infinity, -Infinity) === 3*Math.PI / 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-028.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-028.js new file mode 100644 index 000000000..ff2f81038 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-028.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Infinity, +Infinity) === -Math.PI / 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-029.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-029.js new file mode 100644 index 000000000..697778405 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.05/15.08.02.05-029.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.atan2(-Infinity, -Infinity) === -3*Math.PI / 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-001.js new file mode 100644 index 000000000..5f29590eb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.ceil(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-002.js new file mode 100644 index 000000000..177127e53 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +var res = 1 / Math.ceil(+0) +assert(res === +Infinity && res !== -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-003.js new file mode 100644 index 000000000..453db0a88 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Math.ceil(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-004.js new file mode 100644 index 000000000..2898ed780 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.ceil(-Infinity) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-005.js new file mode 100644 index 000000000..3e174c8c5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.ceil(Infinity) === Number.POSITIVE_INFINITY); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-006.js new file mode 100644 index 000000000..bbb4727f6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Math.ceil(-0.3) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-007.js new file mode 100644 index 000000000..e7452e307 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.ceil(-1.3) === -1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-008.js new file mode 100644 index 000000000..065debd55 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.ceil(-1.9) === -1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-009.js new file mode 100644 index 000000000..076cc7417 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.ceil(1.9) === 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-010.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-010.js new file mode 100644 index 000000000..43aa80387 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.ceil(1.1) === 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-011.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-011.js new file mode 100644 index 000000000..5c76a81cd --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.ceil("NaN"))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-012.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-012.js new file mode 100644 index 000000000..8a5496e48 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.06/15.08.02.06-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.ceil(new Object()))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-001.js new file mode 100644 index 000000000..f19fac955 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.cos(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-002.js new file mode 100644 index 000000000..5d11c29c6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-002.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.cos(" NaN"))); + diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-003.js new file mode 100644 index 000000000..67776f1a3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.cos(+0) === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-004.js new file mode 100644 index 000000000..59d023168 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.cos(-0) === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-005.js new file mode 100644 index 000000000..61ede2b99 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.cos(Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-006.js new file mode 100644 index 000000000..73248e049 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.cos(-Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-007.js new file mode 100644 index 000000000..3833216f7 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.07/15.08.02.07-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.cos(Math.PI) === -1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-001.js new file mode 100644 index 000000000..41c785b50 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.exp(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-002.js new file mode 100644 index 000000000..c5b912fb0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.exp(+0) === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-003.js new file mode 100644 index 000000000..1fc8636a5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.exp(-0) === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-004.js new file mode 100644 index 000000000..028999073 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.exp(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-005.js new file mode 100644 index 000000000..028999073 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.exp(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-006.js new file mode 100644 index 000000000..de113564c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.08/15.08.02.08-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.exp(-Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-001.js new file mode 100644 index 000000000..697150e65 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.floor(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-002.js new file mode 100644 index 000000000..506b55c70 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.floor(+0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-003.js new file mode 100644 index 000000000..9a4db74af --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Math.floor(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-004.js new file mode 100644 index 000000000..68e980866 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.floor(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-005.js new file mode 100644 index 000000000..42987c6c9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.floor(-Infinity) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-006.js new file mode 100644 index 000000000..a9d03d1e9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.floor(0.2) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-007.js new file mode 100644 index 000000000..13f1bd35c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.floor(1.2) === -Math.ceil(-1.2)); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-008.js new file mode 100644 index 000000000..f49e6eb43 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.09/15.08.02.09-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.floor(1.9) === -Math.ceil(-1.9)); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-001.js new file mode 100644 index 000000000..f47c4ba90 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.log(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-002.js new file mode 100644 index 000000000..db17ede16 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.log(-0.00001))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-003.js new file mode 100644 index 000000000..10790f619 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.log(+0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-004.js new file mode 100644 index 000000000..692cd9e55 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.log(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-005.js new file mode 100644 index 000000000..185d488ee --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.log(1) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-006.js new file mode 100644 index 000000000..c07e70f82 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.10/15.08.02.10-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.log(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-001.js new file mode 100644 index 000000000..d7ee15965 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.max(undefined))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-002.js new file mode 100644 index 000000000..91ff80ec9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.max({}))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-003.js new file mode 100644 index 000000000..375849717 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.max(Object()))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-004.js new file mode 100644 index 000000000..3e3eff994 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +aseert(isNaN(Math.max(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-005.js new file mode 100644 index 000000000..4205603f3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.max(5, 7, NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-006.js new file mode 100644 index 000000000..a5d534cd2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.max(5, -7, NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-007.js new file mode 100644 index 000000000..846cbc4d0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.max(5, -7) === 5); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-008.js new file mode 100644 index 000000000..df1a797c0 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isFinite(Math.max())); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-009.js new file mode 100644 index 000000000..6a3cec1d3 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.max() === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-010.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-010.js new file mode 100644 index 000000000..1c1759cb4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.max() !== Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-011.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-011.js new file mode 100644 index 000000000..f9f4d2dcc --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.max(+0, -0) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-012.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-012.js new file mode 100644 index 000000000..b73697b13 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Math.max === "function"); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-013.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-013.js new file mode 100644 index 000000000..3a7c81729 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.max.length === 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-014.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-014.js new file mode 100644 index 000000000..d17818802 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.11/15.08.02.11-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Math.max(-0, +0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-001.js new file mode 100644 index 000000000..3a8b8a6df --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min(undefined))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-002.js new file mode 100644 index 000000000..7aa2a5c24 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min({}))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-003.js new file mode 100644 index 000000000..39e584e3c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min(Object()))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-004.js new file mode 100644 index 000000000..493ee89d8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-005.js new file mode 100644 index 000000000..2bd467f4a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min(5, 7, NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-006.js new file mode 100644 index 000000000..79032d6db --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.min(5, -7, NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-007.js new file mode 100644 index 000000000..fb111eb21 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.min(5, -7) === -7); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-008.js new file mode 100644 index 000000000..558202ca2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(!isFinite(Math.min())); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-009.js new file mode 100644 index 000000000..7b3273c21 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.min() === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-010.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-010.js new file mode 100644 index 000000000..fc0039636 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.min() !== Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-011.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-011.js new file mode 100644 index 000000000..f65adda0f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.min(+0, -0) === +0); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-012.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-012.js new file mode 100644 index 000000000..d85f5c910 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(typeof Math.min === "function"); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-013.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-013.js new file mode 100644 index 000000000..72379ccc9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.min.length === 2); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-014.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-014.js new file mode 100644 index 000000000..d38782c8d --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.12/15.08.02.12-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1/Math.min(+0, -0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-001.js new file mode 100644 index 000000000..3d2b8b273 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.pow(2, "NaN", 5))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-002.js new file mode 100644 index 000000000..bacdd3d3b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.pow(2, +0, 5, "qeqegfhb") === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-003.js new file mode 100644 index 000000000..235eb06b5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(NaN, +0, 5, "qeqegfhb") === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-004.js new file mode 100644 index 000000000..1b5035451 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow("qeqegfhb", -0) === 1); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-005.js new file mode 100644 index 000000000..d8ce34d4a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.pow("qeqegfhb", 1))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-006.js new file mode 100644 index 000000000..e10871e98 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(5, Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-007.js new file mode 100644 index 000000000..b9192dc62 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(5, -Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-008.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-008.js new file mode 100644 index 000000000..b7277a113 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-008.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(-5, -Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-009.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-009.js new file mode 100644 index 000000000..1490ac7da --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-009.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.pow(-5, Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-010.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-010.js new file mode 100644 index 000000000..807a37a9c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-010.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.pow(1, Infinity))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-011.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-011.js new file mode 100644 index 000000000..51326340b --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-011.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.pow(-1, Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-012.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-012.js new file mode 100644 index 000000000..e4f0ad666 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-012.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.pow(-1, -Infinity))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-013.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-013.js new file mode 100644 index 000000000..1e5beeccb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-013.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.pow(1, -Infinity))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-014.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-014.js new file mode 100644 index 000000000..99bbf1e5a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-014.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(1 / Math.pow(0.3, Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-015.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-015.js new file mode 100644 index 000000000..81aaaab08 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-015.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(-0.3, -Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-016.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-016.js new file mode 100644 index 000000000..7eb4f69e6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-016.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(Infinity, 3) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-017.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-017.js new file mode 100644 index 000000000..5709d47eb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-017.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(Infinity, -3) === Infinity); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-018.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-018.js new file mode 100644 index 000000000..76a9bcb8f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-018.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(-Infinity, 6) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-019.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-019.js new file mode 100644 index 000000000..5e67de668 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-019.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(-Infinity, 5) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-020.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-020.js new file mode 100644 index 000000000..b2c864889 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-020.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(-Infinity, -6) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-021.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-021.js new file mode 100644 index 000000000..7196a45a6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-021.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(-Infinity, -5) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-022.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-022.js new file mode 100644 index 000000000..7f3b2f67e --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-022.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(+0, 5.2) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-023.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-023.js new file mode 100644 index 000000000..4250433d5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-023.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(Math.pow(+0, -5.2) === Infinity); + \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-024.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-024.js new file mode 100644 index 000000000..336373598 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-024.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(-0, 12) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-025.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-025.js new file mode 100644 index 000000000..4c7d4d29c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-025.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.pow(-0, 7) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-026.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-026.js new file mode 100644 index 000000000..87e9e65a7 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-026.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(-0, -100) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-027.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-027.js new file mode 100644 index 000000000..9988daa4a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-027.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(-0, -1) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-028.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-028.js new file mode 100644 index 000000000..4a70cd004 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-028.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert(isNaN(Math.pow(-174, 1.78))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-029.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-029.js new file mode 100644 index 000000000..9e984ded2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-029.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow(2,2) === 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-030.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-030.js new file mode 100644 index 000000000..3838a25e9 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.13/15.08.02.13-030.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.pow("2 ","2.0") === 4); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-001.js new file mode 100644 index 000000000..fa02ee81a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-001.js @@ -0,0 +1,16 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.round(NaN))); + diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-002.js new file mode 100644 index 000000000..2b0e75a9f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.round(+0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-003.js new file mode 100644 index 000000000..8858bc2ec --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.round(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-004.js new file mode 100644 index 000000000..315e33bf2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.round(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-005.js new file mode 100644 index 000000000..9385acb8f --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.round(-Infinity) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-006.js new file mode 100644 index 000000000..aff79ac34 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.round(0.2) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-007.js new file mode 100644 index 000000000..f0d9bdbcb --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.15/15.08.02.15-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.round(-0.3) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-001.js new file mode 100644 index 000000000..ca731043c --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.sin(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-002.js new file mode 100644 index 000000000..710104bd5 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.sin(+0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-003.js new file mode 100644 index 000000000..5eec22c01 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.sin(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-004.js new file mode 100644 index 000000000..e958a1298 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.sin(Infinity))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-005.js new file mode 100644 index 000000000..9cf99fae2 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.16/15.08.02.16-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.sin(-Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-001.js new file mode 100644 index 000000000..2eb6ba191 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.sqrt(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-002.js new file mode 100644 index 000000000..8eae5d3a4 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.sqrt(-2))); \ No newline at end of file diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-003.js new file mode 100644 index 000000000..6c1b07aef --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.sqrt(+0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-004.js new file mode 100644 index 000000000..6f39bda35 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.sqrt(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-005.js new file mode 100644 index 000000000..2bb235294 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.17/15.08.02.17-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (Math.sqrt(Infinity) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-001.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-001.js new file mode 100644 index 000000000..b6181f438 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-001.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.tan(NaN))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-002.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-002.js new file mode 100644 index 000000000..a594dc6a6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-002.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.tan(Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-003.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-003.js new file mode 100644 index 000000000..72f72765a --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-003.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.tan(-Infinity))); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-004.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-004.js new file mode 100644 index 000000000..6150e39f8 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-004.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.tan(+0) === Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-005.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-005.js new file mode 100644 index 000000000..70cba4031 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-005.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.tan(-0) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-006.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-006.js new file mode 100644 index 000000000..386333dc6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-006.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (1/Math.tan(-0, NaN) === -Infinity); diff --git a/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-007.js b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-007.js new file mode 100644 index 000000000..089ce6fe6 --- /dev/null +++ b/tests/test-suite-compact-profile/15/15.08/15.08.02/15.08.02.18/15.08.02.18-007.js @@ -0,0 +1,15 @@ +// Copyright 2014 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +assert (isNaN(Math.tan(undefined)));