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
28
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-001.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-001.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// 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 r = test()
|
||||
|
||||
assert(typeof r == 'object' && r.prop1 === "property1" && r.prop2 === 2 && r.prop3 === false);
|
||||
|
||||
function test()
|
||||
{
|
||||
var o = {
|
||||
prop1: "property1",
|
||||
prop2: 2,
|
||||
prop3: false
|
||||
};
|
||||
|
||||
return o;
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-002.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-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 r = test()
|
||||
|
||||
assert(r === 1);
|
||||
|
||||
function test()
|
||||
{
|
||||
return ((23 << 2) + 8) / 100;
|
||||
}
|
22
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-003.js
vendored
Normal file
22
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-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.
|
||||
|
||||
var r = test()
|
||||
|
||||
assert(r === 33);
|
||||
|
||||
function test()
|
||||
{
|
||||
return 33;
|
||||
}
|
24
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-004.js
vendored
Normal file
24
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-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 r = test()
|
||||
|
||||
assert(r == undefined);
|
||||
|
||||
function test()
|
||||
{
|
||||
var r = 1;
|
||||
return
|
||||
r;
|
||||
}
|
27
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-005.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-005.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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 r = test()
|
||||
|
||||
assert(r === 100);
|
||||
|
||||
function test()
|
||||
{
|
||||
function internal()
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
||||
return internal();
|
||||
}
|
27
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-006.js
vendored
Normal file
27
third_party/jerryscript/tests/jerry-test-suite/12/12.09/12.09-006.js
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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 r = test()
|
||||
|
||||
assert(typeof r == 'function');
|
||||
|
||||
function test()
|
||||
{
|
||||
function internal()
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
|
||||
return internal;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue