mirror of
https://github.com/google/pebble.git
synced 2025-11-28 18:22:24 -05:00
Import of the watch repository from Pebble
This commit is contained in:
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-001.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-001.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.
|
||||
|
||||
x = 42;
|
||||
|
||||
assert ((delete x) == true);
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-002.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-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 y = 43;
|
||||
|
||||
assert((delete y) == false && y == 43);
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-003.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-003.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 y = 43;
|
||||
|
||||
assert((delete Math.PI) == false);
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-004.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-004.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 myobj = {
|
||||
h: 4,
|
||||
k: 5
|
||||
};
|
||||
|
||||
assert((delete myobj.h) == true && myobj.h == undefined);
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-005.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-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.
|
||||
|
||||
myobj = {
|
||||
h: 4,
|
||||
k: 5
|
||||
};
|
||||
|
||||
assert ((delete myobj) == true);
|
||||
26
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-006.js
vendored
Normal file
26
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-006.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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 Foo() {
|
||||
}
|
||||
Foo.prototype.bar = 42;
|
||||
var foo = new Foo();
|
||||
if (!(delete foo.bar))
|
||||
assert(false)
|
||||
|
||||
if (foo.bar != 42)
|
||||
assert(false)
|
||||
|
||||
if (!(delete Foo.prototype.bar))
|
||||
assert(false)
|
||||
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-007.js
vendored
Normal file
19
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-007.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 fruits = ['apple', 'banana', 'kiwi', 'pineapple'];
|
||||
|
||||
delete fruits[3];
|
||||
|
||||
assert(!(3 in fruits) && fruits.length == 4);
|
||||
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-008.js
vendored
Normal file
18
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-008.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.
|
||||
|
||||
function x() {
|
||||
}
|
||||
|
||||
assert((delete x) == false && typeof x == "function");
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-009.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-009.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.
|
||||
|
||||
this.prop = "prop";
|
||||
|
||||
assert((delete this.prop) == true);
|
||||
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-010.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-010.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((delete arguments) == true);
|
||||
23
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-011.js
vendored
Normal file
23
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-011.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.
|
||||
|
||||
function test(arg)
|
||||
{
|
||||
if ((delete arg) == false)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
assert(!test("str"));
|
||||
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-012.js
vendored
Normal file
20
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-012.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.
|
||||
|
||||
this.test = function (arg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
assert((delete test) == true);
|
||||
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-013.js
vendored
Normal file
17
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-013.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.
|
||||
|
||||
eval('var foo = 1;');
|
||||
assert((delete foo) == true && typeof foo == "undefined");
|
||||
|
||||
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-017.js
vendored
Normal file
15
third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.01/11.04.01-017.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((delete i_dont_exist) == true);
|
||||
Reference in New Issue
Block a user