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
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-001.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-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 a = {
|
||||
b: 5
|
||||
};
|
||||
|
||||
assert(a.b === 5);
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-002.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-002.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 a = {
|
||||
"b": 5
|
||||
};
|
||||
|
||||
assert(a.b === 5);
|
||||
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-003.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-003.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 a = {
|
||||
10: 5
|
||||
};
|
||||
|
||||
assert(a[10] === 5);
|
||||
|
19
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-004.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-004.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.
|
||||
|
||||
var a = {
|
||||
10.25: 5
|
||||
};
|
||||
|
||||
assert(a[10.25] === 5);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-005.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 a = {
|
||||
prop1: 1,
|
||||
prop2: 2
|
||||
};
|
||||
|
||||
assert(a.prop1 === 1 && a.prop2 === 2);
|
21
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-006.js
vendored
Normal file
21
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-006.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 a = {
|
||||
get a() {
|
||||
return 3;
|
||||
}
|
||||
};
|
||||
|
||||
assert(a.a === 3);
|
25
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-007.js
vendored
Normal file
25
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-007.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 a = {
|
||||
_a: 3,
|
||||
get a() {
|
||||
return this._a;
|
||||
}
|
||||
};
|
||||
|
||||
a._a = 5;
|
||||
|
||||
assert(a.a === 5);
|
||||
|
29
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-008.js
vendored
Normal file
29
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.05/11.01.05-008.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.
|
||||
|
||||
var a = {
|
||||
_a: 3,
|
||||
get a() {
|
||||
return this._a;
|
||||
},
|
||||
set a(newa) {
|
||||
this._a = newa;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
a.a = 5;
|
||||
|
||||
assert(a.a === 5);
|
||||
|
23
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-001.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-001.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.
|
||||
|
||||
var a = [1, 2, 4];
|
||||
var cnt = 0;
|
||||
|
||||
for (var i = (0 in a) ? 1 : 2; i < 10; ++i)
|
||||
{
|
||||
++cnt;
|
||||
}
|
||||
|
||||
assert(cnt == 9);
|
17
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-002.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
// 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 = 1;
|
||||
var b = 2;
|
||||
assert(a + b === (a + b));
|
18
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-003.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-003.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 = 2;
|
||||
var b = 3;
|
||||
|
||||
assert((a) + (b) === (a + b));
|
28
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-004.js
vendored
Normal file
28
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-004.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.
|
||||
|
||||
a = {
|
||||
n: Number,
|
||||
s: String
|
||||
};
|
||||
b = {
|
||||
n: Number,
|
||||
s: String
|
||||
};
|
||||
a.n = 1;
|
||||
b.n = 2;
|
||||
a.s = "qwe";
|
||||
b.s = "rty";
|
||||
|
||||
assert(((a).n + (b).n === 3) && ((a).s + (b).s === "qwerty"));
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-005.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.
|
||||
|
||||
a = {
|
||||
n: Number,
|
||||
s: String
|
||||
}
|
||||
|
||||
assert(delete(a.n) === true);
|
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-006.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-006.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.
|
||||
|
||||
a = {
|
||||
n: Number,
|
||||
s: String
|
||||
}
|
||||
|
||||
assert(typeof (a.property) === "undefined");
|
15
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-009.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.01/11.01.06/11.01.06-009.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
// 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.
|
||||
|
||||
assert(typeof (a) === "undefined");
|
Loading…
Add table
Add a link
Reference in a new issue