mirror of
https://github.com/google/pebble.git
synced 2025-11-23 16:01:02 -05:00
Import of the watch repository from Pebble
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user