mirror of
https://github.com/google/pebble.git
synced 2025-11-24 00:10:56 -05:00
Import of the watch repository from Pebble
This commit is contained in:
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-001.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-001.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 = "lirum ";
|
||||
var b = "ipsum";
|
||||
assert(a + b == "lirum ipsum")
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-002.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 12;
|
||||
var b = "3";
|
||||
assert(a + b === "123")
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-003.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-003.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 = "12";
|
||||
var b = 3;
|
||||
assert(a + b === "123")
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-004.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-004.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 123;
|
||||
var b = 456;
|
||||
assert(a + b == 579)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-005.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-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 x = 1;
|
||||
assert(x + 1 === 2)
|
||||
16
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-006.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-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 y = 1;
|
||||
assert(1 + y === 2)
|
||||
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-007.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-007.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(new Number(1) + 1 === 2)
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-008.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-008.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 objectx = new Object();
|
||||
var objecty = new Object();
|
||||
objectx.prop = 1;
|
||||
objecty.prop = 1;
|
||||
assert(objectx.prop + objecty.prop === 2)
|
||||
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-009.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-009.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(1 + new Number(1) === 2)
|
||||
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-010.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-010.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(new Number(1) + new Number(1) === 2)
|
||||
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-011.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-011.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
object = {
|
||||
valueOf: function () {
|
||||
return 1
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
assert(object + 1 === 2)
|
||||
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-012.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-012.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
object = {
|
||||
valueOf: function () {
|
||||
return 1
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
assert(1 + object === 2)
|
||||
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-013.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-013.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
object = {
|
||||
valueOf: function () {
|
||||
return 1
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
assert(object + "1" === "11")
|
||||
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-014.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-014.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
object = {
|
||||
valueOf: function () {
|
||||
return "1"
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
assert("1" + object === "11")
|
||||
33
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-015.js
vendored
Normal file
33
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-015.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// 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.
|
||||
|
||||
object1 = {
|
||||
valueOf: function () {
|
||||
return 1;
|
||||
},
|
||||
toString: function () {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
object2 = {
|
||||
valueOf: function () {
|
||||
return 1;
|
||||
},
|
||||
toString: function () {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
assert(object1 + object2 === 2)
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-016.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-016.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.
|
||||
|
||||
object = new Object()
|
||||
|
||||
var str = new String()
|
||||
|
||||
assert(object + str === "[object Object]")
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-017.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-017.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.
|
||||
|
||||
object = new Object()
|
||||
|
||||
var b = 1
|
||||
|
||||
assert(object + b === "[object Object]1")
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-018.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/11.06.01-018.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.
|
||||
|
||||
object = new String()
|
||||
|
||||
var b = 1
|
||||
|
||||
assert(object + b === "1")
|
||||
Reference in New Issue
Block a user