mirror of
https://github.com/google/pebble.git
synced 2025-06-24 18:16:15 +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
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-001.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-001.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
switch (1) {
|
||||
case 0:
|
||||
assert(false);
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
32
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-002.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-002.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
// 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 matchesCount = 0;
|
||||
|
||||
switch ("key") {
|
||||
case "key":
|
||||
++matchesCount;
|
||||
break;
|
||||
case "key":
|
||||
++matchesCount;
|
||||
break;
|
||||
case "another key":
|
||||
++matchesCount;
|
||||
break;
|
||||
default:
|
||||
++matchesCount;
|
||||
break;
|
||||
}
|
||||
|
||||
assert (matchesCount === 1);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-003.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-003.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
switch (1) {
|
||||
case true:
|
||||
assert(false);
|
||||
case false:
|
||||
assert(false);
|
||||
default:
|
||||
assert(true);
|
||||
}
|
28
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-004.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-004.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// 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 counter = 0;
|
||||
|
||||
switch ("key") {
|
||||
case "key":
|
||||
++counter;
|
||||
case "another key":
|
||||
++counter;
|
||||
case "another key2":
|
||||
++counter;
|
||||
default:
|
||||
++counter;
|
||||
}
|
||||
|
||||
assert (counter == 4);
|
16
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-005.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-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.
|
||||
|
||||
switch (1) {
|
||||
}
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-006.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-006.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.
|
||||
|
||||
function fact(n)
|
||||
{
|
||||
return n < 2 ? 1 : n * fact(n - 1);
|
||||
}
|
||||
|
||||
switch (fact(5)) {
|
||||
case 5 * fact(4):
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.11/12.11-007.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
switch ("key") {
|
||||
case "another key":
|
||||
assert(false);
|
||||
default:
|
||||
break;
|
||||
case "another key2":
|
||||
assert(false);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue