mirror of
https://github.com/google/pebble.git
synced 2025-11-26 17:22:23 -05:00
Import of the watch repository from Pebble
This commit is contained in:
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = 1;
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-002.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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.
|
||||
|
||||
var a = -1;
|
||||
assert(-a === 1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-003.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 a = "1";
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-004.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 a = "-1";
|
||||
assert(-a === 1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-005.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = 0;
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-006.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = "0";
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-007.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-007.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)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-008.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = true;
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-009.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = false;
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-010.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = Infinity;
|
||||
assert(-a === -Infinity)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-011.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = -Infinity;
|
||||
assert(-a === Infinity)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-012.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = undefined;
|
||||
assert(isNaN(-a))
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-013.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = null;
|
||||
assert(-a === -0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-014.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = new Number(1);
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-015.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = new Number(-1);
|
||||
assert(-a === 1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-016.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-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 = new Number(0);
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-017.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-017.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("1");
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-018.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-018.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("-1");
|
||||
assert(-a === 1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-019.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-019.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("");
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-020.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-020.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 Boolean(true);
|
||||
assert(-a === -1)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-021.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-021.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 Boolean(false);
|
||||
assert(-a === 0)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-022.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-022.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, 2, 3, 4, 5];
|
||||
assert(isNaN(-a))
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-023.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-023.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 = {
|
||||
valueOf: function () {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
assert(-a === -1)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-024.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-024.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 = {
|
||||
valueOf: function () {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
assert(-a === 1)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-025.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-025.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 = {
|
||||
valueOf: function () {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
assert(-a === -1)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-026.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-026.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 = {
|
||||
valueOf: function () {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
assert(-a === 0)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-027.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-027.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 = {
|
||||
valueOf: function () {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
assert(-a === -0)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-028.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-028.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 = {
|
||||
valueOf: function () {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
assert(isNaN(-a))
|
||||
22
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-029.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-029.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 = {
|
||||
member: 1,
|
||||
valueOf: function () {
|
||||
return this.member;
|
||||
}
|
||||
}
|
||||
|
||||
assert(-a === -1)
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-030.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-030.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 = {
|
||||
member: 1,
|
||||
}
|
||||
|
||||
assert(isNaN(-a))
|
||||
21
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-031.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-031.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 "qwerty";
|
||||
}
|
||||
}
|
||||
|
||||
assert(isNaN(-a))
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-032.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-032.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 = +0;
|
||||
|
||||
assert(-a === -0)
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-033.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.07/11.04.07-033.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 = new Object;
|
||||
a.toString = function () {
|
||||
return "1";
|
||||
}
|
||||
|
||||
assert(-a === -1)
|
||||
Reference in New Issue
Block a user