mirror of
https://github.com/google/pebble.git
synced 2025-07-27 17:54:54 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04-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(Object.getPrototypeOf(Object.getPrototypeOf(Object())) === null);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04-002.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(Object.isExtensible(Object.getPrototypeOf(Object())));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.01/15.02.04.01-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.01/15.02.04.01-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(Object.getPrototypeOf(Object()).constructor === Object);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.01/15.02.04.01-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.01/15.02.04.01-002.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(Object.prototype.constructor === Object);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-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(Object.prototype.toString.call(undefined) === "[object Undefined]");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-002.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(Object.prototype.toString.call(null) === "[object Null]");
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-003.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-003.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 obj = {};
|
||||
assert(obj.toString() === "[object Object]");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-004.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.02/15.02.04.02-004.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(Object.prototype.toString.call(123) === "[object Number]");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.04.03-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.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 Object.prototype.toLocaleString === 'function');
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.04.03-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.04.03-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 o = new Object();
|
||||
assert(o.toLocaleString() === o.toString());
|
||||
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.04.03-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.03/15.02.04.03-003.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(Object.toLocaleString() === Object.toString());
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-001.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 = new Object();
|
||||
assert(a.valueOf() === a);
|
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-002.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = {
|
||||
n: Number(5)
|
||||
}
|
||||
assert(a.valueOf() === a);
|
20
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-003.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = {
|
||||
n: true,
|
||||
s: "qwerty"
|
||||
}
|
||||
|
||||
assert(a.valueOf() === a);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-004.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 = new Number(5);
|
||||
|
||||
assert(a.valueOf() === 5);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-005.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = 123;
|
||||
|
||||
assert(a.valueOf() === 123);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-006.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = new Boolean(true);
|
||||
|
||||
assert(a.valueOf() === true);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-007.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-007.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 = false;
|
||||
|
||||
assert(a.valueOf() === false);
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-008.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = new String("qwe");
|
||||
assert(a.valueOf() === "qwe");
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-009.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = "asdfgh";
|
||||
assert(a.valueOf() === "asdfgh");
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-010.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.04/15.02.04.04-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 = "123";
|
||||
assert(a.valueOf() === "123");
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-001.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-001.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 obj = {
|
||||
prop1: 5,
|
||||
prop2: "qwe",
|
||||
prop3: Boolean
|
||||
}
|
||||
|
||||
assert(obj.hasOwnProperty("prop1"));
|
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-002.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-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 obj = {
|
||||
prop1: 5
|
||||
}
|
||||
|
||||
assert(!obj.hasOwnProperty("prop5"));
|
27
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-003.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-003.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 Parent() {
|
||||
this.prop = 5;
|
||||
}
|
||||
|
||||
function Child() {
|
||||
this.prop2 = false;
|
||||
}
|
||||
|
||||
Child.prototype = Parent;
|
||||
|
||||
var obj = new Child();
|
||||
|
||||
assert(!obj.hasOwnProperty("prop"));
|
27
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-004.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.05/15.02.04.05-004.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 Parent() {
|
||||
this.prop = 5;
|
||||
}
|
||||
|
||||
function Child() {
|
||||
this.prop2 = false;
|
||||
}
|
||||
|
||||
Child.prototype = Parent;
|
||||
|
||||
var obj = new Child();
|
||||
|
||||
assert(obj.hasOwnProperty("prop2"));
|
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-001.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-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.
|
||||
|
||||
var a = new Object();
|
||||
var b = 123;
|
||||
|
||||
assert(!a.isPrototypeOf(b));
|
||||
|
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-002.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-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 object = new Object();
|
||||
var p = Object.getPrototypeOf(object);
|
||||
|
||||
assert(p.isPrototypeOf(object));
|
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.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 object = new Object();
|
||||
var otherObject = new Object();
|
||||
|
||||
assert(!otherObject.isPrototypeOf(object));
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-004.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-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.
|
||||
|
||||
var object = new Object();
|
||||
assert(!object.isPrototypeOf(object));
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-005.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-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 object = Object.create(null);
|
||||
var temp = new Object();
|
||||
assert(!temp.isPrototypeOf(object));
|
23
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-006.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.06/15.02.04.06-006.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.
|
||||
|
||||
try
|
||||
{
|
||||
Object.prototype.isPrototypeOf.call(undefined, {});
|
||||
|
||||
assert(false);
|
||||
} catch (e)
|
||||
{
|
||||
assert (e instanceof TypeError);
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-001.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-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.
|
||||
|
||||
var object = {
|
||||
prop: true
|
||||
}
|
||||
|
||||
assert(!object.propertyIsEnumerable('prop2'));
|
26
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-002.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-002.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.
|
||||
|
||||
var object = {}
|
||||
|
||||
var propertyDescriptor = {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
value: "qwe",
|
||||
writable: true
|
||||
}
|
||||
|
||||
Object.defineProperty(object, 'prop', propertyDescriptor);
|
||||
|
||||
assert(object.propertyIsEnumerable('prop'));
|
26
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-003.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.04/15.02.04.07/15.02.04.07-003.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.
|
||||
|
||||
var object = {}
|
||||
|
||||
var propertyDescriptor = {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
value: "qwe",
|
||||
writable: true
|
||||
}
|
||||
|
||||
Object.defineProperty(object, 'prop', propertyDescriptor);
|
||||
|
||||
assert(!object.propertyIsEnumerable('prop'));
|
Loading…
Add table
Add a link
Reference in a new issue