mirror of
https://github.com/google/pebble.git
synced 2025-06-23 09:36:17 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-005.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-005.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1;
|
||||
|
||||
assert((a++ === 1) && (a === 2));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-006.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-006.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = true;
|
||||
var b = false;
|
||||
|
||||
assert((a++ === 1) && (b++ === +0) && (a === 2) && (b === 1));
|
21
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-007.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-007.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = {
|
||||
valueOf: function () {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
assert((a++ === 1) && (a === 2));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-008.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-008.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = null;
|
||||
|
||||
assert((a++ == +0) && (a === 1));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-009.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-009.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = undefined;
|
||||
|
||||
assert(isNaN(a++) && isNaN(a));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-010.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-010.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "1";
|
||||
|
||||
assert((a++ === 1) && (a === 2));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-011.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-011.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "blah";
|
||||
assert ( isNaN(a++) && isNaN(a) );
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-012.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-012.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "1e3";
|
||||
|
||||
assert((a++ === 1e3) && (a === 1001));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-013.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-013.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "";
|
||||
assert((a++ === 0) && (a === 1));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-014.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-014.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = " ";
|
||||
assert((a++ === 0) && (a === 1));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-015.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-015.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "Infinity";
|
||||
|
||||
assert((a++ === Infinity) && (a === Infinity));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-016.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.01/11.03.01-016.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "0xa";
|
||||
assert((a++ === 0xa) && (a === 0xb));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-005.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-005.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 1;
|
||||
assert((a-- === 1) && (a === 0));
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-006.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-006.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = true;
|
||||
var b = false;
|
||||
assert((a-- === 1) && (b-- === +0) && (a === 0) && (b === -1));
|
22
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-007.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = {
|
||||
valueOf: function () {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
assert((a-- === 1) && (a === 0));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-008.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-008.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = null;
|
||||
assert((a-- == +0) && (a === -1));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-009.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-009.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = undefined;
|
||||
assert(isNaN(a--) && isNaN(a));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-010.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-010.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "1";
|
||||
assert((a-- === 1) && (a === 0));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-011.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-011.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "blah";
|
||||
assert(isNaN(a--) && isNaN(a));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-012.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-012.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "1e3";
|
||||
assert((a-- === 1e3) && (a === 999));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-013.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-013.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "";
|
||||
assert((a-- === 0) && (a === -1));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-014.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-014.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = " ";
|
||||
|
||||
assert((a-- === 0) && (a === -1));
|
||||
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-015.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-015.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "Infinity";
|
||||
assert((a-- === Infinity) && (a === Infinity));
|
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-016.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.03/11.03.02/11.03.02-016.js
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = "0xa";
|
||||
assert((a-- === 0xa) && (a === 9));
|
Loading…
Add table
Add a link
Reference in a new issue