mirror of
https://github.com/google/pebble.git
synced 2025-07-26 01: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
20
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-001.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var a = 5;
|
||||
var b = 3;
|
||||
|
||||
var c = (a > b) ? 12 : 14;
|
||||
|
||||
assert(c == 12)
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-002.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-002.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.
|
||||
|
||||
var a = 1;
|
||||
var b = 2;
|
||||
var c = 3;
|
||||
|
||||
var d;
|
||||
|
||||
d = a < b ? b < c ? 5 : 10 : 15;
|
||||
|
||||
assert(d == 5)
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-003.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-003.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.
|
||||
|
||||
var a = 1;
|
||||
var b = 2;
|
||||
var c = 3;
|
||||
|
||||
var d;
|
||||
|
||||
d = a > b ? 5 : b < c ? 10 : 15;
|
||||
|
||||
assert(d == 10)
|
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-004.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-004.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// 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;
|
||||
var c = 1;
|
||||
var d = 1;
|
||||
|
||||
var e;
|
||||
|
||||
e = (a < b) ? (c = 100) : (d = 10);
|
||||
|
||||
assert(c == 100 && e == 100 && d == 1)
|
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-005.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-005.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// 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;
|
||||
var c = 1;
|
||||
var d = 1;
|
||||
|
||||
var e;
|
||||
|
||||
e = (a > b) ? (c = 100) : (d = 10);
|
||||
|
||||
assert(c == 1 && e == 10 && d == 10)
|
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-008.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-008.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// 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 cond = 23;
|
||||
var a = [1, 2, 4];
|
||||
var cnt = 0;
|
||||
|
||||
for (var i = (cond < 24) ? 0 in a : 2; i < 10; ++i)
|
||||
{
|
||||
++cnt;
|
||||
}
|
||||
|
||||
assert(cnt == 9)
|
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-012.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/11/11.12/11.12-012.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// 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 cond = 12;
|
||||
var res;
|
||||
|
||||
res = (cond < 13)
|
||||
?
|
||||
1
|
||||
:
|
||||
2;
|
||||
|
||||
assert(res == 1)
|
Loading…
Add table
Add a link
Reference in a new issue