mirror of
https://github.com/google/pebble.git
synced 2025-07-28 02: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.05/15.05.01/15.05.01.01/15.05.01.01-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String () === String (""));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-002.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (undefined) === "undefined");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-003.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (null) === "null");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-004.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-004.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (true) === "true");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-005.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-005.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (false) === "false");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-006.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.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(String(NaN) === "NaN");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-007.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-007.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (+0) === "0");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-008.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-008.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (-0) === "0");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-009.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-009.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (-1) === "-" + String (1));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-010.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-010.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (Infinity) === "Infinity");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-011.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-011.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (123000) === "123000");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-012.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-012.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (10000000000000000000) === "10000000000000000000");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-013.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-013.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (0.111111111111111) === "0.111111111111111");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-014.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-014.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (0.00000111111111111111) === "0.00000111111111111111");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-015.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.01/15.05.01.01/15.05.01.01-015.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String (0.000000111111111111111) === "1.11111111111111e-7");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.02/15.05.02.01/15.05.02.01-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.02/15.05.02.01/15.05.02.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(String.prototype.isPrototypeOf(new String("")));
|
17
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.02/15.05.02.01/15.05.02.01-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.02/15.05.02.01/15.05.02.01-002.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2014-2015 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 s = new String ("");
|
||||
s.x = 1;
|
||||
assert (s.x === 1);
|
16
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.01/15.05.03.01-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.01/15.05.03.01-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.
|
||||
|
||||
String.prototype = 1;
|
||||
assert(String.prototype !== 1);
|
19
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.01/15.05.03.01-002.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.01/15.05.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.
|
||||
|
||||
for (var p in String) {
|
||||
if (p === String.prototype) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.02/15.05.03.02-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.02/15.05.03.02-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String.fromCharCode () === "");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.02/15.05.03.02-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.03/15.05.03.02/15.05.03.02-002.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String.fromCharCode (65, 66, 67) === "ABC");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.01/15.05.04.01-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.01/15.05.04.01-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String.prototype.constructor === String);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.02/15.05.04.02-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.02/15.05.04.02-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String ("abc").toString () === "abc");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.02/15.05.04.02-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.02/15.05.04.02-002.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 ("abc".toString () === "abc");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.03/15.05.04.03-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.03/15.05.04.03-001.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String ("abc").valueOf () === "abc");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.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(String("abc").charAt(-1) === "");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.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(String("abc").charAt(3) === "");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-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(String("abc").charAt(0) === "a");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-004.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.04/15.05.04.04-004.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(String("abc").charAt("0") === "a");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.05-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.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(isNaN(String("abc").charCodeAt(-1)));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.05-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.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(isNaN(String("abc").charCodeAt(3)));
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.05-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.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(String("abc").charCodeAt(0) === 97);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.05-004.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.05/15.05.04.05-004.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(String("abc").charCodeAt("0") === 97);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.06-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.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(String("abc").concat("d") === "abcd");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.06-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.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(String().concat() === "");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.06-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.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(String().concat("a", "b", "c") === "abc");
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.06-004.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.06/15.05.04.06-004.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2014-2015 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 (String ().concat.length === 1);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-001.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-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(String("abcd").indexOf("ab") === 0);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-002.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-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(String("abcd").indexOf("ab", 0) === 0);
|
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-003.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/15/15.05/15.05.04/15.05.04.07/15.05.04.07-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(String("abcd").indexOf("ab", 1) === -1);
|
Loading…
Add table
Add a link
Reference in a new issue