mirror of
https://github.com/google/pebble.git
synced 2025-07-26 01:04:53 -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.07/15.07.03/15.07.03-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.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(Number.constructor.prototype === Function.prototype);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03-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(Number.hasOwnProperty("length") && Number.length === 1);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.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(Function.prototype.isPrototypeOf(Number) === true);
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03-004.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.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.
|
||||
|
||||
var p = Object.getPrototypeOf(Number);
|
||||
assert(p === Function.prototype);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.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(Number.hasOwnProperty("prototype"));
|
19
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-002.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-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 a = Object.getOwnPropertyDescriptor(Number, 'prototype');
|
||||
|
||||
assert((a.writable === false &&
|
||||
a.enumerable === false &&
|
||||
a.configurable === false));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-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.getPrototypeOf(new Number()) === Number.prototype);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-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 b = Number.prototype
|
||||
Number.prototype = 4
|
||||
assert(Number.prototype != 4 && Number.prototype === b)
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-005.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 Number.prototype === false)
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-006.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-006.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(!Number.propertyIsEnumerable('prototype'));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-007.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "prototype")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-008.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-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.
|
||||
|
||||
delete Number.prototype.toString
|
||||
assert(Number.prototype.toString() === "[object Number]");
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-009.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-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.
|
||||
|
||||
Number.prototype.toString = Object.prototype.toString;
|
||||
assert(Number.prototype.toString() === "[object Number]");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-010.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.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(Number.prototype == +0);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-011.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.01/15.07.03.01-011.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(1/Number.prototype === Number.POSITIVE_INFINITY);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.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(Number.hasOwnProperty("MAX_VALUE"));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.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(Number.MAX_VALUE === 1.7976931348623157e308);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-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(Number.MAX_VALUE === 1.7976931348623157e308);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-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 b = Number.MAX_VALUE;
|
||||
Number.MAX_VALUE = 0;
|
||||
assert(Number.MAX_VALUE === b);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-005.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 Number.MAX_VALUE));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.02/15.07.03.02-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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "MAX_VALUE")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.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(Number.hasOwnProperty("MIN_VALUE"));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-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(Number.MIN_VALUE === 5e-324);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.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(Number.MIN_VALUE === 5e-324);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-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 b = Number.MIN_VALUE
|
||||
Number.MIN_VALUE = 0
|
||||
assert(Number.MIN_VALUE === b);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-005.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 Number.MIN_VALUE));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.03/15.07.03.03-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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "MIN_VALUE")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.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(Number.hasOwnProperty("NaN"));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.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(isNaN(Number.NaN));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-003.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-003.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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "NaN")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-004.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-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.
|
||||
|
||||
Number.NaN = 0;
|
||||
assert(isNaN(Number.NaN));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.04/15.07.03.04-005.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 Number.NaN));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-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(Number.hasOwnProperty("NEGATIVE_INFINITY"));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-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(!(isFinite(Number.NEGATIVE_INFINITY) && Number.NEGATIVE_INFINITY < 0));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-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(Number.NEGATIVE_INFINITY === -Infinity);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-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 b = Number.NEGATIVE_INFINITY;
|
||||
Number.NEGATIVE_INFINITY = 0;
|
||||
assert(Number.NEGATIVE_INFINITY === b);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-005.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 Number.NEGATIVE_INFINITY));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "NEGATIVE_INFINITY")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-007.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.05/15.07.03.05-007.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(!Number.propertyIsEnumerable('NEGATIVE_INFINITY'));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-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(Number.hasOwnProperty("POSITIVE_INFINITY"));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-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(!isFinite(Number.POSITIVE_INFINITY) && Number.POSITIVE_INFINITY > 0);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-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(Number.POSITIVE_INFINITY === Infinity);
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-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 b = Number.POSITIVE_INFINITY
|
||||
Number.POSITIVE_INFINITY = 0
|
||||
assert(Number.POSITIVE_INFINITY === b);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-005.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 Number.POSITIVE_INFINITY));
|
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-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.
|
||||
|
||||
for (x in Number)
|
||||
{
|
||||
if (x === "POSITIVE_INFINITY")
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
}
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-007.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.07/15.07.03/15.07.03.06/15.07.03.06-007.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(!Number.propertyIsEnumerable('POSITIVE_INFINITY'));
|
Loading…
Add table
Add a link
Reference in a new issue