mirror of
https://github.com/google/pebble.git
synced 2025-07-26 09:14: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/12/12.06/12.06.01/12.06.01-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-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 cnt = 1;
|
||||
do
|
||||
cnt++;
|
||||
while (cnt < 10);
|
||||
|
||||
assert(cnt === 10);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-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.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
if (cnt === 42) {
|
||||
break;
|
||||
}
|
||||
} while (true);
|
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-003.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-003.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 cnt = 1;
|
||||
do {
|
||||
cnt++;
|
||||
|
||||
if (cnt === 10)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (0, 1);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-004.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-004.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// 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 obj = new Object();
|
||||
obj.x = "defined";
|
||||
do
|
||||
{
|
||||
delete obj.x;
|
||||
}
|
||||
while (obj.x !== undefined);
|
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-005.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-005.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
// 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 / 3;
|
||||
do
|
||||
{
|
||||
x = 1;
|
||||
}
|
||||
while (x === 3 / 9);
|
||||
assert (x === 1);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-006.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-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 cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (false);
|
||||
|
||||
assert(cnt === 2);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-007.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-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.
|
||||
|
||||
var cnt = 1;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (!"string");
|
||||
|
||||
assert(cnt === 2);
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-008.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-008.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 cnt = 0;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while (!(cnt & 0x8000));
|
||||
|
||||
assert(cnt == 32768);
|
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-009.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-009.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.
|
||||
|
||||
var cnt = 0;
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
}
|
||||
while
|
||||
(cnt < 10
|
||||
);
|
||||
|
||||
assert(cnt === 10);
|
||||
|
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-010.js
vendored
Normal file
32
third_party/jerryscript/tests/jerry-test-suite/12/12.06/12.06.01/12.06.01-010.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
// 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 cnt = 0;
|
||||
|
||||
function test()
|
||||
{
|
||||
do
|
||||
{
|
||||
cnt++;
|
||||
if (cnt === 8)
|
||||
return 1;
|
||||
}
|
||||
while (cnt < 10);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
var r = test();
|
||||
|
||||
assert(cnt === 8 && r === 1);
|
Loading…
Add table
Add a link
Reference in a new issue