mirror of
https://github.com/google/pebble.git
synced 2025-05-29 14:33:12 +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
16
third_party/jerryscript/tests/jerry-test-suite/06/06-001.js
vendored
Normal file
16
third_party/jerryscript/tests/jerry-test-suite/06/06-001.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.
|
||||
|
||||
var str = "a\u000Ab";
|
||||
assert(str[1] === '\n');
|
29
third_party/jerryscript/tests/jerry-test-suite/06/06-002.js
vendored
Normal file
29
third_party/jerryscript/tests/jerry-test-suite/06/06-002.js
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// 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 c(arg)
|
||||
{
|
||||
var obj = new Object();
|
||||
obj.print = function () {
|
||||
f = arg;
|
||||
};
|
||||
return obj;
|
||||
}
|
||||
|
||||
a = c(5);
|
||||
b = c(6);
|
||||
|
||||
a.print.toString = 7;
|
||||
|
||||
assert(typeof a.print.toString !== typeof b.print.toString);
|
30
third_party/jerryscript/tests/jerry-test-suite/06/06-003.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/06/06-003.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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();
|
||||
|
||||
function c(arg)
|
||||
{
|
||||
var obj = new Object();
|
||||
obj.par = arg;
|
||||
obj.print = function () {
|
||||
return arg;
|
||||
};
|
||||
return obj;
|
||||
}
|
||||
|
||||
var a = c(5);
|
||||
var b = c(6);
|
||||
assert(a.print() + b.par === 11);
|
||||
|
30
third_party/jerryscript/tests/jerry-test-suite/06/06-004.js
vendored
Normal file
30
third_party/jerryscript/tests/jerry-test-suite/06/06-004.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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 arg = 3;
|
||||
function a() {
|
||||
return 5 + arg;
|
||||
}
|
||||
|
||||
arg = 4;
|
||||
var b = function () {
|
||||
return 6 + arg;
|
||||
};
|
||||
|
||||
arg = 5;
|
||||
c = function e() {
|
||||
return 7 + arg;
|
||||
};
|
||||
|
||||
assert(a() + b() + c() === 33);
|
18
third_party/jerryscript/tests/jerry-test-suite/06/06-005.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/06/06-005.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.
|
||||
|
||||
var a = "\u0410\u0411";
|
||||
var b = "\u0509\u0413";
|
||||
|
||||
assert(a < b);
|
Loading…
Add table
Add a link
Reference in a new issue