mirror of
https://github.com/google/pebble.git
synced 2025-06-03 16:53:11 +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
19
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.01/11.13.01-001.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.01/11.13.01-001.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 = 5;
|
||||
var b;
|
||||
|
||||
b = a;
|
||||
assert(b == 5)
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-001.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-001.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 = 1;
|
||||
var b = 2;
|
||||
a += b;
|
||||
assert(a === 3);
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-002.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-002.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 = 1;
|
||||
var b = "2";
|
||||
a += b;
|
||||
assert(a === "12")
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-003.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 = "1";
|
||||
var b = 2;
|
||||
a += b;
|
||||
assert(a === "12")
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-004.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-004.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 = "1";
|
||||
var b = "2";
|
||||
a += b;
|
||||
assert(a === "12")
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-005.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-005.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;
|
||||
a += b;
|
||||
assert(a === 1)
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-006.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-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 = 1;
|
||||
var b = null;
|
||||
a += b;
|
||||
assert(a === 1)
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-007.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-007.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 = 3;
|
||||
var _a = a;
|
||||
var b = 7;
|
||||
assert((a += b) === (_a + b))
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-008.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-008.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 = 5;
|
||||
var _a = a;
|
||||
var b = 10;
|
||||
assert((a -= b) === (_a - b))
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-009.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-009.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 = 10;
|
||||
var _a = a;
|
||||
var b = 1.5;
|
||||
assert((a *= b) === (_a * b))
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-010.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-010.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 = 1;
|
||||
var _a = a;
|
||||
var b = 10.6;
|
||||
assert((a /= b) === (_a / b))
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-011.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-011.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 = 102;
|
||||
var _a = a;
|
||||
var b = 10;
|
||||
assert(((a %= b) === (_a % b)) && (a === (_a % b)))
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-012.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-012.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// 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 a = 0xffffffff;
|
||||
var _a = a;
|
||||
var b = 4;
|
||||
assert ((a >>= b) === (_a >> b));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-013.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-013.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// 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 a = 0xffffffff;
|
||||
var _a = a;
|
||||
var b = 4;
|
||||
assert ((a <<= b) === (_a << b));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-014.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-014.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
// 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 a = 0xffffffff;
|
||||
var _a = a;
|
||||
var b = 4;
|
||||
assert ((a >>>= b) === (_a >>> b));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-039.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-039.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 = 4;
|
||||
var _a = a;
|
||||
var b = 10;
|
||||
assert((a %= b) === (_a % b))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-040.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-040.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object *= 2) === (copyObject * 2)) && (object === (copyObject * 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-041.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-041.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object += 2) === (copyObject + 2)) && (object === (copyObject + 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-042.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-042.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 15
|
||||
},
|
||||
toString: function () {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object -= 2) === (copyObject - 2)) && (object === (copyObject - 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-043.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-043.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 178
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object /= 2) === (copyObject / 2)) && (object === (copyObject / 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-044.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-044.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 1345
|
||||
},
|
||||
toString: function () {
|
||||
return "foo"
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object %= 2) === (copyObject % 2)) && (object === (copyObject % 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-045.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-045.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 16
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object <<= 2) === (copyObject << 2)) && (object === (copyObject << 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-046.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-046.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 16
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object >>= 2) === (copyObject >> 2)) && (object === (copyObject >> 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-047.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-047.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 16
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object >>>= 2) === (copyObject >>> 2)) && (object === (copyObject >>> 2)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-048.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-048.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object &= 1) === (copyObject & 1)) && (object === (copyObject & 1)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-049.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-049.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object |= 1) === (copyObject | 1)) && (object === (copyObject | 1)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-050.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-050.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object ^= 1) === (copyObject ^ 1)) && (object === (copyObject ^ 1)))
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-051.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.13/11.13.02/11.13.02-051.js
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// 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 "12"
|
||||
},
|
||||
toString: function () {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
copyObject = object;
|
||||
assert(((object += 3) === (copyObject + 3)) && (object === (copyObject + 3)))
|
Loading…
Add table
Add a link
Reference in a new issue