mirror of
https://github.com/google/pebble.git
synced 2025-05-29 14:33:12 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-001.js
vendored
Normal file
|
@ -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);
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-002.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-002.js
vendored
Normal file
|
@ -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);
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-003.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-003.js
vendored
Normal file
|
@ -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);
|
||||
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-004.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-004.js
vendored
Normal file
|
@ -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);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-005.js
vendored
Normal file
|
@ -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);
|
21
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-006.js
vendored
Normal file
|
@ -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);
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-007.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-007.js
vendored
Normal file
|
@ -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);
|
||||
|
29
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-008.js
vendored
Normal file
29
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-008.js
vendored
Normal file
|
@ -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);
|
||||
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-001.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-001.js
vendored
Normal file
|
@ -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);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-002.js
vendored
Normal file
|
@ -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));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-003.js
vendored
Normal file
|
@ -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));
|
28
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-004.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-004.js
vendored
Normal file
|
@ -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"));
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-005.js
vendored
Normal file
|
@ -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);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-006.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-006.js
vendored
Normal file
|
@ -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");
|
15
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-009.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-009.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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");
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-001.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-001.js
vendored
Normal file
|
@ -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");
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-002.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-002.js
vendored
Normal file
|
@ -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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-003.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-003.js
vendored
Normal file
|
@ -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[1] !== "nameeeeeeeeeee");
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-004.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-004.js
vendored
Normal file
|
@ -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 name = "name"
|
||||
var a = {name: "name", value: "1"};
|
||||
|
||||
assert(a[name] == "name");
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-007.js
vendored
Normal file
|
@ -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;
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-008.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-008.js
vendored
Normal file
|
@ -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;
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-009.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-009.js
vendored
Normal file
|
@ -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;
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-010.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-010.js
vendored
Normal file
|
@ -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;
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-011.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.01/11.02.01-011.js
vendored
Normal file
|
@ -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;
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-001.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-001.js
vendored
Normal file
|
@ -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");
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-002.js
vendored
Normal file
|
@ -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");
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-003.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-003.js
vendored
Normal file
|
@ -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");
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-004.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-004.js
vendored
Normal file
|
@ -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");
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-005.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-005.js
vendored
Normal file
|
@ -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");
|
27
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-006.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-006.js
vendored
Normal file
|
@ -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);
|
32
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-007.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-007.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
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.canWalk === true);
|
||||
assert(bird.canWalk === true);
|
||||
assert(animal.canFly === undefined);
|
||||
assert(bird.canFly === true);
|
||||
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-008.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-008.js
vendored
Normal file
|
@ -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 Animal(name)
|
||||
{
|
||||
this.name = name
|
||||
this.canWalk = true
|
||||
}
|
||||
|
||||
var animal = new Animal();
|
||||
|
||||
assert(animal.canWalk);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-009.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.02/11.02.02-009.js
vendored
Normal file
|
@ -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);
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-006.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-006.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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();
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-007.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-007.js
vendored
Normal file
|
@ -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);
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-008.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-008.js
vendored
Normal file
|
@ -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);
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-017.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-017.js
vendored
Normal file
|
@ -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);
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-021.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.03/11.02.03-021.js
vendored
Normal file
|
@ -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);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-001.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-001.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
assert(f_arg().length === 0);
|
||||
|
||||
function f_arg() {
|
||||
return arguments;
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-002.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-002.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
assert(f_arg()[0] === undefined);
|
||||
|
||||
function f_arg() {
|
||||
return arguments;
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-003.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-003.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
assert(f_arg().length === 0);
|
||||
|
||||
function f_arg(x, y) {
|
||||
return arguments;
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-004.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-004.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
assert(f_arg()[0] === undefined);
|
||||
|
||||
function f_arg(x,y) {
|
||||
return arguments;
|
||||
}
|
24
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-005.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-005.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function ()
|
||||
{
|
||||
return arguments
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2).length === 2);
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-006.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-006.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2, 3).length === 3);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-007.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-007.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2, 3)[0] === 1);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-008.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-008.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2, 3)[2] === 3);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-009.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-009.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2, 3)[3] === undefined);
|
26
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-010.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-010.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function () {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
var args = f_arg (1, 2, 3);
|
||||
|
||||
for (var i = 0; i < 3; i++)
|
||||
{
|
||||
assert(args[i] === i + 1);
|
||||
}
|
||||
|
||||
assert(args[3] === undefined);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-011.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-011.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function(x,y) {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1,2,3).length === 3);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-012.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-012.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function(x,y) {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1)[0] === 1);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-013.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-013.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function (x, y) {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1, 2, 3)[2] === 3);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-014.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-014.js
vendored
Normal file
|
@ -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.
|
||||
|
||||
f_arg = function(x,y) {
|
||||
return arguments;
|
||||
}
|
||||
|
||||
assert(f_arg(1,2,3)[3] === undefined);
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-016.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-016.js
vendored
Normal file
|
@ -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);
|
28
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-017.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-017.js
vendored
Normal file
|
@ -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 f_arg() {
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
f_arg(x, x = 1);
|
||||
}
|
||||
catch (e) {
|
||||
assert((e instanceof ReferenceError) === true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-018.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-018.js
vendored
Normal file
|
@ -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 f_arg(x, y, z) {
|
||||
return z;
|
||||
}
|
||||
|
||||
assert(f_arg(x = 1, y = x, x + y) === 2);
|
41
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-019.js
vendored
Normal file
41
third_party/jerryscript/tests/jerry-test-suite/11/11.02/11.02.04/11.02.04-019.js
vendored
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-005.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-005.js
vendored
Normal file
|
@ -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));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-006.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-006.js
vendored
Normal file
|
@ -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));
|
21
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-007.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-007.js
vendored
Normal file
|
@ -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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-008.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-008.js
vendored
Normal file
|
@ -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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-009.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-009.js
vendored
Normal file
|
@ -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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-010.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-010.js
vendored
Normal file
|
@ -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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-011.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-011.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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) );
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-012.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-012.js
vendored
Normal file
|
@ -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));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-013.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-013.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-014.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-014.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-015.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-015.js
vendored
Normal file
|
@ -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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-016.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-016.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-005.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-005.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-006.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-006.js
vendored
Normal file
|
@ -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));
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-007.js
vendored
Normal file
|
@ -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));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-008.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-008.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-009.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-009.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-010.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-010.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-011.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-011.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-012.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-012.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-013.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-013.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-014.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-014.js
vendored
Normal file
|
@ -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));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-015.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-015.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-016.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-016.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR 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));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-001.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-001.js
vendored
Normal file
|
@ -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);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-002.js
vendored
Normal file
|
@ -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);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-003.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-003.js
vendored
Normal file
|
@ -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);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-004.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-004.js
vendored
Normal file
|
@ -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);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-005.js
vendored
Normal file
|
@ -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);
|
26
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-006.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-006.js
vendored
Normal file
|
@ -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)
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-007.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-007.js
vendored
Normal file
|
@ -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);
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-008.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-008.js
vendored
Normal file
|
@ -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");
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-009.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-009.js
vendored
Normal file
|
@ -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);
|
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-010.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-010.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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 arguments) == true);
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-011.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-011.js
vendored
Normal file
|
@ -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"));
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-012.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-012.js
vendored
Normal file
|
@ -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);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-013.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-013.js
vendored
Normal file
|
@ -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");
|
||||
|
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-017.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-017.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.02/11.04.02-001.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.02/11.04.02-001.js
vendored
Normal file
|
@ -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);
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.02/11.04.02-002.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.02/11.04.02-002.js
vendored
Normal file
|
@ -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);
|
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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');
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-002.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-002.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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');
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-003.js
vendored
Normal file
|
@ -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');
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-004.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.03/11.04.03-004.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES 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');
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue