mirror of
https://github.com/google/pebble.git
synced 2025-06-26 19:06:17 +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
18
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-001.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-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.
|
||||
|
||||
loop:
|
||||
while (true) {
|
||||
break loop;
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-002.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.
|
||||
|
||||
loop:
|
||||
while (true) {
|
||||
do {
|
||||
for (; true; ) {
|
||||
break loop;
|
||||
}
|
||||
} while (true);
|
||||
}
|
23
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-003.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.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.
|
||||
|
||||
switchMark:
|
||||
switch (1) {
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
break switchMark;
|
||||
case 2:
|
||||
assert(false);
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-004.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-004.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.
|
||||
|
||||
var i = 0;
|
||||
|
||||
whileMark:
|
||||
while (i < 10) {
|
||||
++i;
|
||||
continue whileMark;
|
||||
assert(false);
|
||||
}
|
19
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-005.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-005.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.
|
||||
|
||||
whileMark:
|
||||
for (i = 0; i < 10; ++i) {
|
||||
continue whileMark;
|
||||
assert(false);
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-006.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-006.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.
|
||||
|
||||
var x = 0;
|
||||
lablemark:
|
||||
if (x < 6) {
|
||||
++x;
|
||||
break lablemark;
|
||||
}
|
||||
|
||||
assert(x !== 6);
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-007.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-007.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// 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 = 0;
|
||||
for (i = 0; i < 10; ++i) {
|
||||
for (j = 0; j < 10; ++j) {
|
||||
lablemark:
|
||||
for (k = 0; k < 10; ++k) {
|
||||
++x;
|
||||
break lablemark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert(x == 100)
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-008.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-008.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// 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 = 0;
|
||||
for (i = 0; i < 10; ++i) {
|
||||
lablemark:
|
||||
for (j = 0; j < 10; ++j) {
|
||||
for (k = 0; k < 10; ++k) {
|
||||
++x;
|
||||
break lablemark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert(x == 10)
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-009.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-009.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// 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 = 0;
|
||||
lablemark:
|
||||
for (i = 0; i < 10; ++i) {
|
||||
for (j = 0; j < 10; ++j) {
|
||||
for (k = 0; k < 10; ++k) {
|
||||
++x;
|
||||
break lablemark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert(x == 1)
|
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-010.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/12/12.12/12.12-010.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// 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 = 0;
|
||||
for (i = 0; i < 10; ++i) {
|
||||
lablemark:
|
||||
for (j = 0; j < 10; ++j) {
|
||||
for (k = 0; k < 10; ++k) {
|
||||
++x;
|
||||
continue lablemark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert(x == 100)
|
Loading…
Add table
Add a link
Reference in a new issue